| Metric | Tag | Overall | Per Function |
|---|---|---|---|
| Lines of Code | LOC | 85 | ****** |
| McCabe's Cyclomatic Number | MVG | 19 | ****** |
| Lines of Comment | COM | 32 | ******** |
| LOC/COM | L_C | 2.656 | |
| MVG/COM | M_C | 0.594 | |
| Weighted Methods per Class ( weighting = unity ) | WMC1 | 5 | |
| Weighted Methods per Class ( weighting = visible ) | WMCv | 5 | |
| Depth of Inheritance Tree | DIT | 1 | |
| Number of Children | NOC | 0 | |
| Coupling between objects | CBO | 4 | |
| Information Flow measure ( inclusive ) | IF4 | 0 | ******** |
| Information Flow measure ( visible ) | IF4v | 0 | ******** |
| Information Flow measure ( concrete ) | IF4c | 0 | ******** |
| Description | LOC | MVG | COM | L_C | M_C |
|---|---|---|---|---|---|
definition
./services/input/InputDevice.h:288 |
7 | 0 | 13 | ------ | ------ |
| Function prototype | LOC | MVG | COM | L_C | M_C |
|---|---|---|---|---|---|
| MouseDevice( ) definition ./services/input/InputDevice.cpp:182declaration ./services/input/InputDevice.h:309 | 7 | 0 | 7 | ------ | ------ |
| getKeyState( SDLKey ) definition ./services/input/InputDevice.cpp:195declaration ./services/input/InputDevice.h:319 | 19 | 12 | 2 | ------ | 6.000 |
| handleEvent( SDL_Event & ) definition ./services/input/InputDevice.cpp:255declaration ./services/input/InputDevice.h:327 | 24 | 6 | 2 | 12.000 | 3.000 |
| initAxis( ) definition ./services/input/InputDevice.cpp:218declaration ./services/input/InputDevice.h:328 | 24 | 1 | 5 | 4.800 | ------ |
| ~MouseDevice( ) definition ./services/input/InputDevice.cpp:191declaration ./services/input/InputDevice.h:314 | 4 | 0 | 3 | ------ | ------ |
| Clients | Suppliers |
|---|---|
|
InputDevice [CV] inheritance ./services/input/InputDevice.h:288SDLKey [CV] pass by value ./services/input/InputDevice.cpp:195pass by value ./services/input/InputDevice.h:319SDL_Event [V] pass by reference ./services/input/InputDevice.cpp:255pass by reference ./services/input/InputDevice.h:327bool [C] has by value ./services/input/InputDevice.h:294 |