| Metric | Tag | Overall | Per Function |
|---|---|---|---|
| Lines of Code | LOC | 255 | ****** |
| McCabe's Cyclomatic Number | MVG | 52 | ****** |
| Lines of Comment | COM | 44 | ******** |
| LOC/COM | L_C | 5.795 | |
| MVG/COM | M_C | 1.182 | |
| Weighted Methods per Class ( weighting = unity ) | WMC1 | 23 | |
| Weighted Methods per Class ( weighting = visible ) | WMCv | 3 | |
| Depth of Inheritance Tree | DIT | 0 | |
| Number of Children | NOC | 0 | |
| Coupling between objects | CBO | 25 | |
| Information Flow measure ( inclusive ) | IF4 | 20736 | ******** |
| Information Flow measure ( visible ) | IF4v | 18225 | ******** |
| Information Flow measure ( concrete ) | IF4c | 0 | ******** |
| Description | LOC | MVG | COM | L_C | M_C |
|---|---|---|---|---|---|
declaration
./src/Constraint.h:17 |
1 | 0 | 0 | ------ | ------ |
declaration
./src/Force.h:10 |
1 | 0 | 0 | ------ | ------ |
definition
./src/Particle.h:54 |
15 | 0 | 0 | ------ | ------ |
| Function prototype | LOC | MVG | COM | L_C | M_C |
|---|---|---|---|---|---|
| ParticleSystem( int ) definition ./src/Particle.cpp:153declaration ./src/Particle.h:57 | 11 | 1 | 3 | ------ | ------ |
| addCollider( D2_Collider * ) definition ./src/Particle.cpp:197declaration ./src/Particle.h:65 | 4 | 0 | 2 | ------ | ------ |
| addForce( Force * ) definition ./src/Particle.cpp:192declaration ./src/Particle.h:61 | 4 | 0 | 0 | ------ | ------ |
| addParticle( float, float, float ) definition ./src/Particle.cpp:203declaration ./src/Particle.h:71 | 10 | 1 | 2 | ------ | ------ |
| calculateForces( ) definition ./src/Particle.cpp:258declaration ./src/Particle.h:66 | 13 | 3 | 1 | ------ | ------ |
| clear( ) definition ./src/Particle.cpp:225declaration ./src/Particle.h:73 | 12 | 1 | 0 | ------ | ------ |
| clearAllForces( ) definition ./src/Particle.cpp:359declaration ./src/Particle.h:125 | 8 | 1 | 1 | ------ | ------ |
| clearSprings( ) definition ./src/Particle.cpp:237declaration ./src/Particle.h:74 | 11 | 2 | 0 | ------ | ------ |
| doCollisions( ) definition ./src/Particle.cpp:276declaration ./src/Particle.h:67 | 6 | 3 | 0 | ------ | ------ |
| enableConstraints( bool ) definition ./src/Particle.cpp:291declaration ./src/Particle.h:93 | 9 | 3 | 7 | ------ | ------ |
| getCS( ) definition ./src/Particle.cpp:302declaration ./src/Particle.h:97 | 4 | 1 | 2 | ------ | ------ |
| getForce( int ) definition ./src/Particle.cpp:254declaration ./src/Particle.h:83 | 4 | 1 | 0 | ------ | ------ |
| getParticle( int ) definition ./src/Particle.cpp:216declaration ./src/Particle.h:72 | 4 | 1 | 0 | ------ | ------ |
| getSystem( ) definition ./src/Particle.cpp:187declaration ./src/Particle.h:60 | 4 | 1 | 0 | ------ | ------ |
| isChanged( ) definition ./src/Particle.cpp:352declaration ./src/Particle.h:80 | 6 | 1 | 4 | ------ | ------ |
| load( QDataStream &, Global_Drag *&, Const_Field *& ) definition ./src/Particle.cpp:367declaration ./src/Particle.h:113 | 63 | 16 | 9 | 7.000 | 1.778 |
| numForces( ) definition ./src/Particle.cpp:250declaration ./src/Particle.h:82 | 4 | 1 | 0 | ------ | ------ |
| operator <<( QDataStream &, const ParticleSystem & ) declaration ./src/Particle.h:106 | 2 | 0 | 0 | ------ | ------ |
| operator []( int ) definition ./src/Particle.cpp:221declaration ./src/Particle.h:81 | 4 | 1 | 0 | ------ | ------ |
| removeParticle( Particle * ) definition ./src/Particle.cpp:307declaration ./src/Particle.h:99 | 33 | 9 | 7 | 4.714 | 1.286 |
| renumber( ) definition ./src/Particle.cpp:285declaration ./src/Particle.h:123 | 5 | 1 | 3 | ------ | ------ |
| size( ) definition ./src/Particle.cpp:183declaration ./src/Particle.h:59 | 4 | 1 | 0 | ------ | ------ |
| ~ParticleSystem( ) definition ./src/Particle.cpp:164declaration ./src/Particle.h:58 | 13 | 3 | 3 | ------ | ------ |
| Clients | Suppliers |
|---|---|
|
Circle pass by reference ./src/Constraint.h:106pass by reference ./src/Constraint.cpp:213Const_Field [V] has by reference ./src/Force.h:30pass by reference ./src/Force.h:35pass by reference ./src/Force.h:38pass by reference ./src/Force.cpp:5pass by reference ./src/Force.cpp:15Constant [V] pass by reference ./src/Force.h:130pass by reference ./src/Force.cpp:273ConstraintSystem [V] pass by reference ./src/Constraint.h:176has by reference ./src/Constraint.h:204pass by reference ./src/Constraint.cpp:322D2_Collider [V] pass by reference ./src/Plane.cpp:4pass by reference ./src/Plane.h:13has by reference ./src/Plane.h:20D2_Plane [V] pass by reference ./src/Plane.cpp:26pass by reference ./src/Plane.h:28Dimension [V] pass by reference ./src/Constraint.h:153pass by reference ./src/Constraint.cpp:307Distance [V] pass by reference ./src/Constraint.h:67pass by reference ./src/Constraint.cpp:67Drag [V] pass by reference ./src/Force.h:113pass by reference ./src/Force.cpp:223Euler [V] pass by reference ./src/Euler.cpp:4pass by reference ./src/ODESolver.h:23Global_Drag [V] has by reference ./src/Force.h:94pass by reference ./src/Force.h:97pass by reference ./src/Force.h:98pass by reference ./src/Force.cpp:187pass by reference ./src/Force.cpp:191MidPoint [V] pass by reference ./src/ODESolver.h:35pass by reference ./src/MidPoint.cpp:4Mouse_Spring [V] has by reference ./src/Mouse_Spring.h:15pass by reference ./src/Mouse_Spring.h:23pass by reference ./src/Mouse_Spring.cpp:3ODESolver [V] pass by reference ./src/ODESolver.h:10has by reference ./src/ODESolver.h:16RungeKutta4 [V] pass by reference ./src/RungeKutta4.cpp:6pass by reference ./src/ODESolver.h:49Spring [V] pass by reference ./src/Force.h:68pass by reference ./src/Force.cpp:76 |
Const_Field [V] pass by reference ./src/Particle.cpp:368pass by reference ./src/Particle.h:113ConstraintSystem [V] has by reference ./src/Particle.h:119D2_Collider [V] pass by reference ./src/Particle.cpp:197pass by reference ./src/Particle.h:65Force [V] pass by reference ./src/Particle.cpp:192pass by reference ./src/Particle.h:61Global_Drag [V] pass by reference ./src/Particle.cpp:368pass by reference ./src/Particle.h:113Particle [V] pass by reference ./src/Particle.cpp:307pass by reference ./src/Particle.h:99QDataStream [V] pass by reference ./src/Particle.cpp:367pass by reference ./src/Particle.h:106pass by reference ./src/Particle.h:113bool [CV] pass by value ./src/Particle.cpp:291pass by value ./src/Particle.h:93has by value ./src/Particle.h:124vector [V] has by reference ./src/Particle.h:116has by reference ./src/Particle.h:117has by reference ./src/Particle.h:118 |