| Metric | Tag | Overall | Per Function |
|---|---|---|---|
| Lines of Code | LOC | 107 | ****** |
| McCabe's Cyclomatic Number | MVG | 13 | ****** |
| Lines of Comment | COM | 14 | ******** |
| LOC/COM | L_C | 7.643 | |
| MVG/COM | M_C | 0.929 | |
| Weighted Methods per Class ( weighting = unity ) | WMC1 | 19 | |
| Weighted Methods per Class ( weighting = visible ) | WMCv | 19 | |
| 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/Force.h:53 |
10 | 0 | 3 | ------ | ------ |
| Function prototype | LOC | MVG | COM | L_C | M_C |
|---|---|---|---|---|---|
| Spring( ) definition ./src/Force.h:62 | 1 | 0 | 1 | ------ | ------ |
| Spring( Particle *, Particle *, float, float, float ) declaration ./src/Force.h:65definition ./src/Force.cpp:70 | 7 | 0 | 3 | ------ | ------ |
| Spring( ParticleSystem *, QDataStream & ) declaration ./src/Force.h:68definition ./src/Force.cpp:76 | 8 | 0 | 0 | ------ | ------ |
| Spring( const Spring & ) declaration ./src/Force.h:69definition ./src/Force.cpp:85 | 4 | 0 | 0 | ------ | ------ |
| applyForce( ) declaration ./src/Force.h:81definition ./src/Force.cpp:134 | 22 | 0 | 7 | 3.143 | ------ |
| getColor( ) declaration ./src/Force.h:83definition ./src/Force.cpp:124 | 4 | 1 | 0 | ------ | ------ |
| getDampingFactor( ) declaration ./src/Force.h:76definition ./src/Force.cpp:111 | 4 | 1 | 0 | ------ | ------ |
| getParticle1( ) definition ./src/Force.h:79 | 1 | 1 | 0 | ------ | ------ |
| getParticle2( ) definition ./src/Force.h:80 | 1 | 1 | 0 | ------ | ------ |
| getSpringConstant( ) declaration ./src/Force.h:74definition ./src/Force.cpp:103 | 4 | 1 | 0 | ------ | ------ |
| getrestLength( ) declaration ./src/Force.h:78definition ./src/Force.cpp:119 | 4 | 1 | 0 | ------ | ------ |
| operator <<( QDataStream & ) declaration ./src/Force.h:86definition ./src/Force.cpp:175 | 7 | 1 | 0 | ------ | ------ |
| operator =( const Spring & ) declaration ./src/Force.h:70definition ./src/Force.cpp:90 | 8 | 2 | 0 | ------ | ------ |
| setColor( const QColor & ) declaration ./src/Force.h:84definition ./src/Force.cpp:129 | 4 | 0 | 0 | ------ | ------ |
| setDampingFactor( float ) declaration ./src/Force.h:75definition ./src/Force.cpp:107 | 4 | 0 | 0 | ------ | ------ |
| setSpringConstant( float ) declaration ./src/Force.h:73definition ./src/Force.cpp:99 | 4 | 0 | 0 | ------ | ------ |
| setrestLength( float ) declaration ./src/Force.h:77definition ./src/Force.cpp:115 | 4 | 0 | 0 | ------ | ------ |
| usesParticle( const Particle * ) declaration ./src/Force.h:85definition ./src/Force.cpp:168 | 5 | 4 | 0 | ------ | ------ |
| ~Spring( ) definition ./src/Force.h:71 | 1 | 0 | 0 | ------ | ------ |
| Clients | Suppliers |
|---|---|
|
Force [CV] inheritance ./src/Force.h:53Particle [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:168ParticleSystem [V] pass by reference ./src/Force.h:68pass by reference ./src/Force.cpp:76QColor [CV] has by value ./src/Force.h:61pass by reference ./src/Force.h:84pass by reference ./src/Force.cpp:129QDataStream [V] pass by reference ./src/Force.h:68pass by reference ./src/Force.h:86pass by reference ./src/Force.cpp:76pass by reference ./src/Force.cpp:175 |