| Metric | Tag | Overall | Per Function |
|---|---|---|---|
| Lines of Code | LOC | 40 | ****** |
| McCabe's Cyclomatic Number | MVG | 5 | ****** |
| Lines of Comment | COM | 3 | ******** |
| LOC/COM | L_C | 13.333 | |
| MVG/COM | M_C | 1.667 | |
| Weighted Methods per Class ( weighting = unity ) | WMC1 | 7 | |
| Weighted Methods per Class ( weighting = visible ) | WMCv | 7 | |
| 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/Force.h:106 |
5 | 0 | 0 | ------ | ------ |
| Function prototype | LOC | MVG | COM | L_C | M_C |
|---|---|---|---|---|---|
| Drag( Particle *, float ) declaration ./src/Force.h:112definition ./src/Force.cpp:219 | 3 | 0 | 3 | ------ | ------ |
| Drag( ParticleSystem *, QDataStream & ) declaration ./src/Force.h:113definition ./src/Force.cpp:223 | 6 | 0 | 0 | ------ | ------ |
| applyForce( ) declaration ./src/Force.h:116definition ./src/Force.cpp:240 | 6 | 0 | 0 | ------ | ------ |
| getCoeff( ) declaration ./src/Force.h:114definition ./src/Force.cpp:230 | 4 | 1 | 0 | ------ | ------ |
| operator <<( QDataStream & ) declaration ./src/Force.h:118definition ./src/Force.cpp:253 | 7 | 1 | 0 | ------ | ------ |
| setCoeff( float ) declaration ./src/Force.h:115definition ./src/Force.cpp:235 | 4 | 0 | 0 | ------ | ------ |
| usesParticle( const Particle * ) declaration ./src/Force.h:117definition ./src/Force.cpp:247 | 5 | 3 | 0 | ------ | ------ |
| Clients | Suppliers |
|---|---|
|
Force [CV] inheritance ./src/Force.h:106Particle [V] has by reference ./src/Force.h:108pass by reference ./src/Force.h:112pass by reference ./src/Force.h:117pass by reference ./src/Force.cpp:219pass by reference ./src/Force.cpp:247ParticleSystem [V] pass by reference ./src/Force.h:113pass by reference ./src/Force.cpp:223QDataStream [V] pass by reference ./src/Force.h:113pass by reference ./src/Force.h:118pass by reference ./src/Force.cpp:223pass by reference ./src/Force.cpp:253 |