| 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:26declaration ./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:70declaration ./services/input/InputDevice.h:189 | 5 | 1 | 0 | ------ | ------ |
| getAxisPosition( int ) definition ./services/input/InputDevice.cpp:75declaration ./services/input/InputDevice.h:191 | 5 | 1 | 0 | ------ | ------ |
| getAxisScaledPosition( int ) definition ./services/input/InputDevice.cpp:80declaration ./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:92declaration ./services/input/InputDevice.h:194 | 5 | 1 | 1 | ------ | ------ |
| getType( ) definition ./services/input/InputDevice.cpp:65declaration ./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:86declaration ./services/input/InputDevice.h:214 | 4 | 0 | 9 | ------ | ------ |
| keyPressed( DimeKey & ) definition ./services/input/InputDevice.cpp:98declaration ./services/input/InputDevice.h:231 | 9 | 1 | 3 | ------ | ------ |
| keyReleased( DimeKey & ) definition ./services/input/InputDevice.cpp:108declaration ./services/input/InputDevice.h:232 | 8 | 1 | 0 | ------ | ------ |
| motion( ) definition ./services/input/InputDevice.cpp:116declaration ./services/input/InputDevice.h:233 | 8 | 1 | 0 | ------ | ------ |
| ~InputDevice( ) definition ./services/input/InputDevice.cpp:38declaration ./services/input/InputDevice.h:183 | 22 | 5 | 4 | 5.500 | 1.250 |