| Metric | Tag | Overall | Per Function |
|---|---|---|---|
| Lines of Code | LOC | 74 | ****** |
| McCabe's Cyclomatic Number | MVG | 9 | ****** |
| Lines of Comment | COM | 7 | ******** |
| LOC/COM | L_C | 10.571 | |
| MVG/COM | M_C | 1.286 | |
| Weighted Methods per Class ( weighting = unity ) | WMC1 | 12 | |
| Weighted Methods per Class ( weighting = visible ) | WMCv | 9 | |
| Depth of Inheritance Tree | DIT | 0 | |
| Number of Children | NOC | 0 | |
| Coupling between objects | CBO | 14 | |
| Information Flow measure ( inclusive ) | IF4 | 1089 | ******** |
| Information Flow measure ( visible ) | IF4v | 729 | ******** |
| Information Flow measure ( concrete ) | IF4c | 0 | ******** |
| Description | LOC | MVG | COM | L_C | M_C |
|---|---|---|---|---|---|
declaration
./src/Constraint.h:16 |
1 | 0 | 0 | ------ | ------ |
declaration
./src/Force.h:9 |
1 | 0 | 0 | ------ | ------ |
definition
./src/Particle.h:12 |
14 | 0 | 1 | ------ | ------ |
| Function prototype | LOC | MVG | COM | L_C | M_C |
|---|---|---|---|---|---|
| Particle( Particle & ) definition ./src/Particle.cpp:24declaration ./src/Particle.h:16 | 5 | 0 | 0 | ------ | ------ |
| Particle( int ) definition ./src/Particle.cpp:13declaration ./src/Particle.h:15 | 9 | 2 | 5 | ------ | ------ |
| id( ) definition ./src/Particle.cpp:65declaration ./src/Particle.h:25 | 4 | 1 | 0 | ------ | ------ |
| id( int ) definition ./src/Particle.cpp:69declaration ./src/Particle.h:26 | 4 | 0 | 0 | ------ | ------ |
| isFixed( ) definition ./src/Particle.cpp:46declaration ./src/Particle.h:24 | 4 | 1 | 0 | ------ | ------ |
| operator <<( QDataStream &, const Particle & ) declaration ./src/Particle.h:29 | 1 | 0 | 0 | ------ | ------ |
| operator <<( ostream &, const Particle * ) declaration ./src/Particle.h:28 | 1 | 0 | 0 | ------ | ------ |
| operator =( Particle & ) definition ./src/Particle.cpp:29declaration ./src/Particle.h:17 | 8 | 4 | 0 | ------ | ------ |
| operator >>( QDataStream &, Particle & ) declaration ./src/Particle.h:30 | 1 | 0 | 0 | ------ | ------ |
| pickColor( ) definition ./src/Particle.cpp:50declaration ./src/Particle.h:22 | 13 | 1 | 1 | ------ | ------ |
| setFixed( bool ) definition ./src/Particle.cpp:42declaration ./src/Particle.h:23 | 4 | 0 | 0 | ------ | ------ |
| ~Particle( ) definition ./src/Particle.cpp:38declaration ./src/Particle.h:18 | 4 | 0 | 0 | ------ | ------ |
| Clients | Suppliers |
|---|---|
|
Circle pass by reference ./src/Constraint.h:102pass by reference ./src/Constraint.h:112has by reference ./src/Constraint.h:129pass by reference ./src/Constraint.cpp:201pass by reference ./src/Constraint.cpp:260Constant [V] has by reference ./src/Force.h:124pass by reference ./src/Force.h:134pass by reference ./src/Force.cpp:265pass by reference ./src/Force.cpp:300Constraint [V] pass by reference ./src/Constraint.h:42ConstraintSystem pass by reference ./src/Constraint.h:183pass by reference ./src/Constraint.h:183pass by reference ./src/Constraint.h:184pass by reference ./src/Constraint.h:185pass by reference ./src/Constraint.h:186pass by reference ./src/Constraint.h:188pass by reference ./src/Constraint.cpp:348pass by reference ./src/Constraint.cpp:350pass by reference ./src/Constraint.cpp:359pass by reference ./src/Constraint.cpp:367pass by reference ./src/Constraint.cpp:375pass by reference ./src/Constraint.cpp:392Dimension [V] pass by reference ./src/Constraint.h:144pass by reference ./src/Constraint.h:151has by reference ./src/Constraint.h:159pass by reference ./src/Constraint.cpp:269pass by reference ./src/Constraint.cpp:294Distance [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:173Drag [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:247Force [V] pass by reference ./src/Force.h:20Mouse_Spring [V] has by reference ./src/Mouse_Spring.h:20ParticleSystem [V] pass by reference ./src/Particle.cpp:307pass by reference ./src/Particle.h:99Spring [V] has by reference ./src/Force.h:56has by reference ./src/Force.h:57pass by reference ./src/Force.h:65pass by reference ./src/Force.h:65pass by reference ./src/Force.h:85pass by reference ./src/Force.cpp:70pass by reference ./src/Force.cpp:70pass by reference ./src/Force.cpp:168 |
QDataStream [V] pass by reference ./src/Particle.h:29pass by reference ./src/Particle.h:30bool [CV] pass by value ./src/Particle.cpp:42pass by value ./src/Particle.h:23has by value ./src/Particle.h:39ostream [V] pass by reference ./src/Particle.h:28 |