| Metric | Tag | Overall | Per Function |
|---|---|---|---|
| Lines of Code | LOC | 64 | ****** |
| McCabe's Cyclomatic Number | MVG | 8 | ****** |
| Lines of Comment | COM | 6 | ******** |
| LOC/COM | L_C | 10.667 | |
| MVG/COM | M_C | 1.333 | |
| Weighted Methods per Class ( weighting = unity ) | WMC1 | 18 | |
| Weighted Methods per Class ( weighting = visible ) | WMCv | 17 | |
| Depth of Inheritance Tree | DIT | 0 | |
| Number of Children | NOC | 0 | |
| Coupling between objects | CBO | 5 | |
| Information Flow measure ( inclusive ) | IF4 | 16 | ******** |
| Information Flow measure ( visible ) | IF4v | 16 | ******** |
| Information Flow measure ( concrete ) | IF4c | 0 | ******** |
| Description | LOC | MVG | COM | L_C | M_C |
|---|---|---|---|---|---|
definition
./src/SpringType.h:24 |
9 | 0 | 0 | ------ | ------ |
| Function prototype | LOC | MVG | COM | L_C | M_C |
|---|---|---|---|---|---|
| SpringType( const QString &, const QColor &, float, float, float ) declaration ./src/SpringType.h:27definition ./src/SpringType.cpp:3 | 5 | 0 | 0 | ------ | ------ |
| SpringType( const QString &, float, float, float ) declaration ./src/SpringType.h:29definition ./src/SpringType.cpp:9 | 5 | 0 | 1 | ------ | ------ |
| getCoeffs( float *, float *, float * ) declaration ./src/SpringType.h:44definition ./src/SpringType.cpp:43 | 8 | 0 | 0 | ------ | ------ |
| getColor( ) declaration ./src/SpringType.h:35definition ./src/SpringType.cpp:24 | 4 | 1 | 0 | ------ | ------ |
| getKd( ) definition ./src/SpringType.h:48 | 1 | 1 | 0 | ------ | ------ |
| getKs( ) definition ./src/SpringType.h:47 | 1 | 1 | 0 | ------ | ------ |
| getLen( ) definition ./src/SpringType.h:49 | 1 | 1 | 0 | ------ | ------ |
| getName( ) declaration ./src/SpringType.h:38definition ./src/SpringType.cpp:33 | 4 | 1 | 0 | ------ | ------ |
| operator <<( QDataStream &, const SpringType & ) declaration ./src/SpringType.h:56 | 2 | 0 | 1 | ------ | ------ |
| operator <<( ostream &, const SpringType & ) declaration ./src/SpringType.h:60 | 1 | 0 | 0 | ------ | ------ |
| operator >>( QDataStream &, SpringType & ) declaration ./src/SpringType.h:58 | 2 | 0 | 0 | ------ | ------ |
| setCoeffs( float * ) declaration ./src/SpringType.h:43definition ./src/SpringType.cpp:37 | 6 | 3 | 3 | ------ | ------ |
| setColor( QColor & ) declaration ./src/SpringType.h:32definition ./src/SpringType.cpp:14 | 4 | 0 | 0 | ------ | ------ |
| setColor( int, int, int ) declaration ./src/SpringType.h:34definition ./src/SpringType.cpp:19 | 4 | 0 | 1 | ------ | ------ |
| setKd( float ) definition ./src/SpringType.h:52 | 1 | 0 | 0 | ------ | ------ |
| setKs( float ) definition ./src/SpringType.h:51 | 1 | 0 | 0 | ------ | ------ |
| setLen( float ) definition ./src/SpringType.h:53 | 1 | 0 | 0 | ------ | ------ |
| setName( const QString & ) declaration ./src/SpringType.h:37definition ./src/SpringType.cpp:29 | 4 | 0 | 0 | ------ | ------ |
| Clients | Suppliers |
|---|---|
|
ParticleField [V] pass by reference ./src/ParticleField.cpp:500 |
QColor [CV] pass by reference ./src/SpringType.h:27pass by reference ./src/SpringType.h:32has by value ./src/SpringType.h:63pass by reference ./src/SpringType.cpp:3pass by reference ./src/SpringType.cpp:14QDataStream [V] pass by reference ./src/SpringType.h:56pass by reference ./src/SpringType.h:58QString [CV] pass by reference ./src/SpringType.h:27pass by reference ./src/SpringType.h:29pass by reference ./src/SpringType.h:37has by value ./src/SpringType.h:64pass by reference ./src/SpringType.cpp:3pass by reference ./src/SpringType.cpp:9pass by reference ./src/SpringType.cpp:29ostream [V] pass by reference ./src/SpringType.h:60 |