CodeQL library for C/C++
Search

Member predicate MetricClass::getSpecialisationIndex

Gets the specialization index of this class.

The specialization index metric measures the extent to which derived classes override (replace) the behavior of their base classes. If they override many methods, it is an indication that the original abstraction in the base classes may have been inappropriate. On the whole, derived classes should add behavior to their base classes, but not alter that behavior dramatically.

float getSpecialisationIndex()