| Metric | Tag | Overall | Per Function |
|---|---|---|---|
| Lines of Code | LOC | 66 | ****** |
| McCabe's Cyclomatic Number | MVG | 7 | ****** |
| Lines of Comment | COM | 17 | ******** |
| LOC/COM | L_C | 3.882 | |
| MVG/COM | M_C | 0.412 | |
| Weighted Methods per Class ( weighting = unity ) | WMC1 | 8 | |
| Weighted Methods per Class ( weighting = visible ) | WMCv | 8 | |
| 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
./src/Mouse_Spring.h:14 |
9 | 0 | 6 | ------ | ------ |
| Function prototype | LOC | MVG | COM | L_C | M_C |
|---|---|---|---|---|---|
| Mouse_Spring( ParticleSystem * ) declaration ./src/Mouse_Spring.h:23definition ./src/Mouse_Spring.cpp:3 | 8 | 0 | 0 | ------ | ------ |
| applyForce( ) declaration ./src/Mouse_Spring.h:26definition ./src/Mouse_Spring.cpp:50 | 17 | 2 | 8 | ------ | ------ |
| getTarget( ) definition ./src/Mouse_Spring.h:30 | 1 | 1 | 0 | ------ | ------ |
| isActive( ) declaration ./src/Mouse_Spring.h:25definition ./src/Mouse_Spring.cpp:14 | 4 | 1 | 0 | ------ | ------ |
| pickParticle( int, int ) declaration ./src/Mouse_Spring.h:27definition ./src/Mouse_Spring.cpp:19 | 16 | 3 | 1 | ------ | ------ |
| releaseParticle( ) declaration ./src/Mouse_Spring.h:29definition ./src/Mouse_Spring.cpp:46 | 4 | 0 | 0 | ------ | ------ |
| update_posn( int, int ) declaration ./src/Mouse_Spring.h:28definition ./src/Mouse_Spring.cpp:37 | 5 | 0 | 2 | ------ | ------ |
| ~Mouse_Spring( ) declaration ./src/Mouse_Spring.h:24definition ./src/Mouse_Spring.cpp:12 | 2 | 0 | 0 | ------ | ------ |
| Clients | Suppliers |
|---|---|
|
Force [CV] inheritance ./src/Mouse_Spring.h:14Particle [V] has by reference ./src/Mouse_Spring.h:20ParticleSystem [V] has by reference ./src/Mouse_Spring.h:15pass by reference ./src/Mouse_Spring.h:23pass by reference ./src/Mouse_Spring.cpp:3bool [CV] has by value ./src/Mouse_Spring.h:16 |