| Metric | Tag | Overall | Per Function |
|---|---|---|---|
| Lines of Code | LOC | 208 | ****** |
| McCabe's Cyclomatic Number | MVG | 31 | ****** |
| Lines of Comment | COM | 30 | ******** |
| LOC/COM | L_C | 6.933 | |
| MVG/COM | M_C | 1.033 | |
| Weighted Methods per Class ( weighting = unity ) | WMC1 | 14 | |
| Weighted Methods per Class ( weighting = visible ) | WMCv | 2 | |
| Depth of Inheritance Tree | DIT | 0 | |
| Number of Children | NOC | 0 | |
| Coupling between objects | CBO | 13 | |
| Information Flow measure ( inclusive ) | IF4 | 1600 | ******** |
| Information Flow measure ( visible ) | IF4v | 576 | ******** |
| Information Flow measure ( concrete ) | IF4c | 0 | ******** |
| Description | LOC | MVG | COM | L_C | M_C |
|---|---|---|---|---|---|
declaration
./src/Constraint.h:15 |
1 | 0 | 0 | ------ | ------ |
definition
./src/Constraint.h:172 |
26 | 0 | 7 | 3.714 | ------ |
declaration
./src/Particle.h:52 |
1 | 0 | 0 | ------ | ------ |
| Function prototype | LOC | MVG | COM | L_C | M_C |
|---|---|---|---|---|---|
| ConstraintSystem( ParticleSystem & ) declaration ./src/Constraint.h:176definition ./src/Constraint.cpp:322 | 10 | 0 | 2 | ------ | ------ |
| addCircleConstraint( Particle &, Data & ) declaration ./src/Constraint.h:185definition ./src/Constraint.cpp:366 | 7 | 0 | 0 | ------ | ------ |
| addDimensionConstraint( Particle &, int ) declaration ./src/Constraint.h:184definition ./src/Constraint.cpp:359 | 6 | 0 | 0 | ------ | ------ |
| addDistConstraint( Particle &, Particle &, float ) declaration ./src/Constraint.h:183definition ./src/Constraint.cpp:348 | 8 | 0 | 0 | ------ | ------ |
| adjustForces( ) declaration ./src/Constraint.h:191definition ./src/Constraint.cpp:417 | 42 | 8 | 7 | 6.000 | 1.143 |
| clear( ) declaration ./src/Constraint.h:187definition ./src/Constraint.cpp:382 | 8 | 1 | 0 | ------ | ------ |
| fixParticle( Particle & ) declaration ./src/Constraint.h:186definition ./src/Constraint.cpp:375 | 4 | 1 | 0 | ------ | ------ |
| getConstraint( int ) declaration ./src/Constraint.h:189definition ./src/Constraint.cpp:533 | 5 | 3 | 0 | ------ | ------ |
| initialize( bool ) declaration ./src/Constraint.h:201definition ./src/Constraint.cpp:492 | 22 | 2 | 11 | 2.000 | ------ |
| loadFromFile( QDataStream & ) declaration ./src/Constraint.h:199definition ./src/Constraint.cpp:546 | 29 | 7 | 2 | 14.500 | 3.500 |
| operator <<( QDataStream &, const ConstraintSystem & ) declaration ./src/Constraint.h:197 | 2 | 0 | 0 | ------ | ------ |
| removeParticleRefs( const Particle * ) declaration ./src/Constraint.h:188definition ./src/Constraint.cpp:392 | 21 | 7 | 1 | 21.000 | 7.000 |
| size( ) declaration ./src/Constraint.h:190definition ./src/Constraint.cpp:540 | 4 | 1 | 0 | ------ | ------ |
| ~ConstraintSystem( ) declaration ./src/Constraint.h:177definition ./src/Constraint.cpp:333 | 12 | 1 | 0 | ------ | ------ |