| Metric | Tag | Overall | Per Function |
|---|---|---|---|
| Lines of Code | LOC | 31 | ****** |
| McCabe's Cyclomatic Number | MVG | 3 | ****** |
| Lines of Comment | COM | 13 | ******** |
| LOC/COM | L_C | 2.385 | |
| MVG/COM | M_C | ------ | |
| Weighted Methods per Class ( weighting = unity ) | WMC1 | 9 | |
| Weighted Methods per Class ( weighting = visible ) | WMCv | 9 | |
| Depth of Inheritance Tree | DIT | 0 | |
| Number of Children | NOC | 3 | |
| Coupling between objects | CBO | 7 | |
| Information Flow measure ( inclusive ) | IF4 | 144 | ******** |
| Information Flow measure ( visible ) | IF4v | 144 | ******** |
| Information Flow measure ( concrete ) | IF4c | 9 | ******** |
| Description | LOC | MVG | COM | L_C | M_C |
|---|---|---|---|---|---|
definition
./src/Constraint.h:20 |
6 | 0 | 5 | ------ | ------ |
declaration
./src/Constraint.h:179 |
1 | 0 | 0 | ------ | ------ |
| Function prototype | LOC | MVG | COM | L_C | M_C |
|---|---|---|---|---|---|
| Constraint( ConstraintSystem &, int ) declaration ./src/Constraint.h:30definition ./src/Constraint.cpp:15 | 3 | 0 | 4 | ------ | ------ |
| Constraint( const Constraint & ) declaration ./src/Constraint.h:31definition ./src/Constraint.cpp:18 | 3 | 0 | 0 | ------ | ------ |
| calculate( ) declaration ./src/Constraint.h:38 | 1 | 0 | 2 | ------ | ------ |
| id( ) declaration ./src/Constraint.h:44definition ./src/Constraint.cpp:29 | 4 | 1 | 0 | ------ | ------ |
| id( USHORT ) declaration ./src/Constraint.h:45definition ./src/Constraint.cpp:33 | 4 | 0 | 0 | ------ | ------ |
| operator <<( QDataStream & ) declaration ./src/Constraint.h:34 | 1 | 0 | 0 | ------ | ------ |
| operator =( const Constraint & ) declaration ./src/Constraint.h:32definition ./src/Constraint.cpp:22 | 5 | 2 | 0 | ------ | ------ |
| usesParticle( const Particle * ) declaration ./src/Constraint.h:42 | 1 | 0 | 2 | ------ | ------ |
| ~Constraint( ) declaration ./src/Constraint.h:33definition ./src/Constraint.cpp:27 | 2 | 0 | 0 | ------ | ------ |
| Clients | Suppliers |
|---|---|
|
Circle [CV] inheritance ./src/Constraint.h:98pass by reference ./src/Constraint.h:106pass by reference ./src/Constraint.cpp:213Dimension [CV] inheritance ./src/Constraint.h:141pass by reference ./src/Constraint.h:153pass by reference ./src/Constraint.cpp:307Distance [CV] inheritance ./src/Constraint.h:55pass by reference ./src/Constraint.h:67pass by reference ./src/Constraint.cpp:67 |
ConstraintSystem [V] pass by reference ./src/Constraint.h:30has by reference ./src/Constraint.h:48pass by reference ./src/Constraint.cpp:15Particle [V] pass by reference ./src/Constraint.h:42QDataStream [V] pass by reference ./src/Constraint.h:34USHORT [CV] pass by value ./src/Constraint.h:45has by value ./src/Constraint.h:49pass by value ./src/Constraint.cpp:33 |