Metric | Tag | Overall | Per Function |
---|---|---|---|
Lines of Code | LOC | 131 | ****** |
McCabe's Cyclomatic Number | MVG | 15 | ****** |
Lines of Comment | COM | 58 | ******** |
LOC/COM | L_C | 2.259 | |
MVG/COM | M_C | 0.259 | |
Weighted Methods per Class ( weighting = unity ) | WMC1 | 14 | |
Weighted Methods per Class ( weighting = visible ) | WMCv | 14 | |
Depth of Inheritance Tree | DIT | 0 | |
Number of Children | NOC | 3 | |
Coupling between objects | CBO | 9 | |
Information Flow measure ( inclusive ) | IF4 | 400 | ******** |
Information Flow measure ( visible ) | IF4v | 400 | ******** |
Information Flow measure ( concrete ) | IF4c | 144 | ******** |
Description | LOC | MVG | COM | L_C | M_C |
---|---|---|---|---|---|
declaration
./services/input/InputService.h:60 |
1 | 0 | 0 | ------ | ------ |
declaration
./services/input/InputMapping.h:119 |
1 | 0 | 0 | ------ | ------ |
definition
./services/input/InputDevice.h:100 |
34 | 0 | 22 | 1.545 | ------ |
Function prototype | LOC | MVG | COM | L_C | M_C |
---|---|---|---|---|---|
InputDevice( DeviceType, int, int ) definition ./services/input/InputDevice.cpp:26 declaration ./services/input/InputDevice.h:178 | 9 | 0 | 11 | ------ | ------ |
getAxis( int ) declaration ./services/input/InputDevice.h:190 | 1 | 0 | 0 | ------ | ------ |
getAxisCount( ) definition ./services/input/InputDevice.cpp:70 declaration ./services/input/InputDevice.h:189 | 5 | 1 | 0 | ------ | ------ |
getAxisPosition( int ) definition ./services/input/InputDevice.cpp:75 declaration ./services/input/InputDevice.h:191 | 5 | 1 | 0 | ------ | ------ |
getAxisScaledPosition( int ) definition ./services/input/InputDevice.cpp:80 declaration ./services/input/InputDevice.h:192 | 6 | 1 | 0 | ------ | ------ |
getKeyState( DimeKey ) definition ./services/input/InputDevice.h:195 | 4 | 1 | 0 | ------ | ------ |
getKeyState( SDLKey ) definition ./services/input/InputDevice.cpp:92 declaration ./services/input/InputDevice.h:194 | 5 | 1 | 1 | ------ | ------ |
getType( ) definition ./services/input/InputDevice.cpp:65 declaration ./services/input/InputDevice.h:188 | 5 | 1 | 2 | ------ | ------ |
handleEvent( SDL_Event & ) definition ./services/input/InputDevice.h:221 | 4 | 1 | 6 | ------ | ------ |
initAxis( ) definition ./services/input/InputDevice.cpp:86 declaration ./services/input/InputDevice.h:214 | 4 | 0 | 9 | ------ | ------ |
keyPressed( DimeKey & ) definition ./services/input/InputDevice.cpp:98 declaration ./services/input/InputDevice.h:231 | 9 | 1 | 3 | ------ | ------ |
keyReleased( DimeKey & ) definition ./services/input/InputDevice.cpp:108 declaration ./services/input/InputDevice.h:232 | 8 | 1 | 0 | ------ | ------ |
motion( ) definition ./services/input/InputDevice.cpp:116 declaration ./services/input/InputDevice.h:233 | 8 | 1 | 0 | ------ | ------ |
~InputDevice( ) definition ./services/input/InputDevice.cpp:38 declaration ./services/input/InputDevice.h:183 | 22 | 5 | 4 | 5.500 | 1.250 |