| Metric | Tag | Overall | Per Function |
|---|---|---|---|
| Lines of Code | LOC | 120 | ****** |
| McCabe's Cyclomatic Number | MVG | 14 | ****** |
| Lines of Comment | COM | 18 | ******** |
| LOC/COM | L_C | 6.667 | |
| MVG/COM | M_C | 0.778 | |
| Weighted Methods per Class ( weighting = unity ) | WMC1 | 17 | |
| Weighted Methods per Class ( weighting = visible ) | WMCv | 11 | |
| Depth of Inheritance Tree | DIT | 1 | |
| Number of Children | NOC | 0 | |
| Coupling between objects | CBO | 5 | |
| 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/Constraint.h:55 |
7 | 0 | 0 | ------ | ------ |
declaration
./src/Constraint.h:180 |
1 | 0 | 0 | ------ | ------ |
| Function prototype | LOC | MVG | COM | L_C | M_C |
|---|---|---|---|---|---|
| Distance( Distance & ) declaration ./src/Constraint.h:61definition ./src/Constraint.cpp:51 | 4 | 0 | 0 | ------ | ------ |
| Distance( Particle &, Particle &, ConstraintSystem &, int, float ) declaration ./src/Constraint.h:58definition ./src/Constraint.cpp:44 | 8 | 0 | 3 | ------ | ------ |
| U( ) declaration ./src/Constraint.h:88definition ./src/Constraint.cpp:88 | 7 | 1 | 1 | ------ | ------ |
| buildFromFile( ParticleSystem *, Constraint *&, ConstraintSystem &, QDataStream & ) declaration ./src/Constraint.h:67definition ./src/Constraint.cpp:67 | 11 | 0 | 2 | ------ | ------ |
| c_func( ) declaration ./src/Constraint.h:84definition ./src/Constraint.cpp:96 | 4 | 1 | 0 | ------ | ------ |
| c_func_dot( ) declaration ./src/Constraint.h:85definition ./src/Constraint.cpp:101 | 8 | 1 | 0 | ------ | ------ |
| calculate( ) declaration ./src/Constraint.h:72definition ./src/Constraint.cpp:147 | 17 | 0 | 3 | ------ | ------ |
| fill_J( ) declaration ./src/Constraint.h:86definition ./src/Constraint.cpp:110 | 15 | 1 | 7 | ------ | ------ |
| fill_J_dot( ) declaration ./src/Constraint.h:87definition ./src/Constraint.cpp:132 | 12 | 1 | 2 | ------ | ------ |
| getParticle1( ) definition ./src/Constraint.h:73 | 1 | 1 | 0 | ------ | ------ |
| getParticle2( ) definition ./src/Constraint.h:74 | 1 | 1 | 0 | ------ | ------ |
| length( ) declaration ./src/Constraint.h:69definition ./src/Constraint.cpp:79 | 4 | 1 | 0 | ------ | ------ |
| length( float ) declaration ./src/Constraint.h:70definition ./src/Constraint.cpp:83 | 4 | 0 | 0 | ------ | ------ |
| operator <<( QDataStream & ) declaration ./src/Constraint.h:63definition ./src/Constraint.cpp:61 | 6 | 1 | 0 | ------ | ------ |
| operator =( const Distance & ) declaration ./src/Constraint.h:79definition ./src/Constraint.cpp:56 | 4 | 1 | 0 | ------ | ------ |
| usesParticle( const Particle * ) declaration ./src/Constraint.h:75definition ./src/Constraint.cpp:173 | 5 | 4 | 0 | ------ | ------ |
| ~Distance( ) definition ./src/Constraint.h:62 | 1 | 0 | 0 | ------ | ------ |
| Clients | Suppliers |
|---|---|
|
Constraint [CV] inheritance ./src/Constraint.h:55pass by reference ./src/Constraint.h:67pass by reference ./src/Constraint.cpp:67ConstraintSystem [V] pass by reference ./src/Constraint.h:59pass by reference ./src/Constraint.h:68pass by reference ./src/Constraint.cpp:45pass by reference ./src/Constraint.cpp:68Particle [V] pass by reference ./src/Constraint.h:58pass by reference ./src/Constraint.h:59pass by reference ./src/Constraint.h:75has by reference ./src/Constraint.h:80has by reference ./src/Constraint.h:81pass by reference ./src/Constraint.cpp:44pass by reference ./src/Constraint.cpp:44pass by reference ./src/Constraint.cpp:173ParticleSystem [V] pass by reference ./src/Constraint.h:67pass by reference ./src/Constraint.cpp:67QDataStream [V] pass by reference ./src/Constraint.h:63pass by reference ./src/Constraint.h:68pass by reference ./src/Constraint.cpp:61pass by reference ./src/Constraint.cpp:68 |