Resource Standard Metrics for C, C++ and Java
Visual Metrics Version 5.53
License Type: Site Multi-Network License - 10000 Users
Licensed To : M Squared Technologies
License No. : ST1000 License Date: Fri Jun 25 06:09:01 1999
(C) 2000 M Squared Technologies Run Date: Tue Oct 10 21:45:38 2000
________________________________________________________________________
~~ Function Metrics ~~
~~ Class Metrics ~~
~~ Complexity Analysis ~~
~~ Quality Analysis ~~
~~ Memory Allocation/De-allocation Metrics ~~
File: cell.cpp
Date: Tue Oct 10 21:45:28 2000 File Size: 2636 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------ Function Begin Line: 14 -----------------------
Function: Seahunt::Cell::Cell
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Cell::Cell
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 7 eLOC 5 lLOC 5 Comment 0 Lines 7
------------------------- Function End Line: 20 ------------------------
------------------------ Function Begin Line: 23 -----------------------
Function: Seahunt::Cell::Cell
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Cell::Cell
Complexity Param 1 Return 1 Cyclo Vg 1 Total 3
LOC 7 eLOC 5 lLOC 5 Comment 0 Lines 7
------------------------- Function End Line: 29 ------------------------
------------------------ Function Begin Line: 32 -----------------------
Function: Seahunt::Cell::~Cell
Function: Seahunt::Cell::~Cell
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 2 eLOC 0 lLOC 0 Comment 1 Lines 3
------------------------- Function End Line: 34 ------------------------
------------------------ Function Begin Line: 38 -----------------------
Function: Seahunt::Cell::Set_xyz
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Cell::Set_xyz
Complexity Param 3 Return 1 Cyclo Vg 1 Total 5
LOC 3 eLOC 1 lLOC 3 Comment 0 Lines 3
------------------------- Function End Line: 40 ------------------------
------------------------ Function Begin Line: 45 -----------------------
Function: Seahunt::Cell::Get_x
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Cell::Get_x
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
------------------------- Function End Line: 47 ------------------------
------------------------ Function Begin Line: 52 -----------------------
Function: Seahunt::Cell::Get_y
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Cell::Get_y
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
------------------------- Function End Line: 54 ------------------------
------------------------ Function Begin Line: 59 -----------------------
Function: Seahunt::Cell::Get_z
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Cell::Get_z
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
------------------------- Function End Line: 61 ------------------------
------------------------ Function Begin Line: 65 -----------------------
Function: Seahunt::Cell::Set_target
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Cell::Set_target
Complexity Param 1 Return 1 Cyclo Vg 2 Total 4
LOC 9 eLOC 5 lLOC 4 Comment 0 Lines 9
------------------------- Function End Line: 73 ------------------------
------------------------ Function Begin Line: 77 -----------------------
Function: Seahunt::Cell::Get_target
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Cell::Get_target
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
------------------------- Function End Line: 79 ------------------------
------------------------ Function Begin Line: 83 -----------------------
Function: Seahunt::Cell::Hit
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Cell::Hit
Complexity Param 0 Return 1 Cyclo Vg 4 Total 5
LOC 27 eLOC 15 lLOC 9 Comment 0 Lines 27
------------------------ Function End Line: 109 ------------------------
Namespace End: Seahunt
----------------------- Function Begin Line: 119 -----------------------
Function: main
Function: main
Complexity Param 0 Return 1 Cyclo Vg 5 Total 6
LOC 31 eLOC 21 lLOC 19 Comment 4 Lines 44
------------------------ Function End Line: 162 ------------------------
NOTICE #20: File comment line percentage, 9.3% is less than 10.0%
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 127 eLOC 84 lLOC 49 Comment 13 Lines 167
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count ...: 11 Total LOC Lines LOC ...: 98
Total eLOC Lines ......: 56 Total lLOC Lines ......: 49
Total Function Params .: 5 Total Function Return .: 11
Total Cyclo Complexity : 19 Total Function Complex.: 35
------ ----- ----- ------ ------ -----
Max Function LOC ......: 31 Average Function LOC ..: 8.91
Max Function eLOC .....: 21 Average Function eLOC .: 5.09
Max Function lLOC .....: 19 Average Function lLOC .: 4.45
------ ----- ----- ------ ------ -----
Max Function Parameters: 3 Avg Function Parameters: 0.45
Max Function Returns ..: 1 Avg Function Returns ..: 1.00
Max Interface Complex. : 4 Avg Interface Complex. : 1.45
Max Cyclomatic Complex.: 5 Avg Cyclomatic Complex.: 1.73
Max Total Complexity ..: 6 Avg Total Complexity ..: 3.18
------------------------------------------------------------------------
~~ File Keywords and Metrics ~~
--------------- LOC --------------- case, break .........: 0, 0
Lines of Code (LOC) .: 127 if, else ............: 5, 2
Lines of just { or } : 43 goto, return ........: 0, 7
Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0
Effective LOC (eLOC) : 84 macros, struct, union: 0, 0, 0
Code Statement (lLOC): 49 class, interface ....: 0, 0
-------------- Lines -------------- template, friend ....: 0, 0
Blank Lines .........: 28 namespace, package ..: 1, 0
Comment Lines .......: 13 func, virtual, inline: 11, 0, 3
Total Logical Lines .: 168 Memory alloc, free ..: 0, 0
Total Physical Lines : 167 Memory new, delete ..: 0, 0
------------ Key Words ------------ ------------- Analysis ------------
Literal Strings .....: 11 Paren Count (,) .....: 43, 43
#include, import ....: 2, 0 Brace Count {,} .....: 22, 22
#define, typedef ....: 0, 0 Bracket Count [,] ...: 33, 33
const, enum .........: 5, 0 Chars/NBLine, Notices: 12, 10
do, while ...........: 0, 0 Code, eCode Lines ...: 75.6%, 50.0%
switch, default .....: 0, 0 Comment, Blank Lines : 7.7%, 16.7%
for .................: 3 Characters, Spaces ..: 72.1%, 27.9%
________________________________________________________________________
End of File: cell.cpp
File: cell.h
Date: Tue Oct 10 21:45:28 2000 File Size: 829 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 15 -------------------------
Class: Seahunt::Cell
NOTICE #34: Line 31, A pointer to a data object has been detected
within the specification for a class. This class must
be inspected to insure proper memory allocation and
de-allocation. This class must implement a public copy
constructor or a private copy constructor where by the
compiler will enforce no pass-by-value.
Class: Seahunt::Cell
Attributes Publ 0 Prot 0 Private 5 Total 5
Methods Publ 9 Prot 0 Private 1 Total 10
LOC 20 eLOC 18 lLOC 15 Comment 6 Lines 21
-------------------------- Class End Line: 35 --------------------------
Namespace End: Seahunt
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 27 eLOC 24 lLOC 16 Comment 13 Lines 41
------------------------------------------------------------------------
~~ File Keywords and Metrics ~~
--------------- LOC --------------- case, break .........: 0, 0
Lines of Code (LOC) .: 27 if, else ............: 0, 0
Lines of just { or } : 3 goto, return ........: 0, 0
Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0
Effective LOC (eLOC) : 24 macros, struct, union: 0, 0, 0
Code Statement (lLOC): 16 class, interface ....: 0, 0
-------------- Lines -------------- template, friend ....: 0, 0
Blank Lines .........: 9 namespace, package ..: 0, 0
Comment Lines .......: 13 inline ..............: 0
Total Logical Lines .: 49 Memory alloc, free ..: 0, 0
Total Physical Lines : 41 Memory new, delete ..: 0, 0
------------ Key Words ------------ ------------- Analysis ------------
Literal Strings .....: 1 Paren Count (,) .....: 10, 10
#include, import ....: 1, 0 Brace Count {,} .....: 2, 2
#define, typedef ....: 1, 0 Bracket Count [,] ...: 0, 0
const, enum .........: 1, 0 Chars/NBLine, Notices: 13, 1
do, while ...........: 0, 0 Code, eCode Lines ...: 55.1%, 49.0%
switch, default .....: 0, 0 Comment, Blank Lines : 26.5%, 18.4%
for .................: 0 Characters, Spaces ..: 66.0%, 34.0%
________________________________________________________________________
End of File: cell.h
File: game.cpp
Date: Tue Oct 10 21:45:28 2000 File Size: 1604 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------ Function Begin Line: 9 ------------------------
Function: Seahunt::Game::Game
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Game::Game
Complexity Param 0 Return 1 Cyclo Vg 3 Total 4
LOC 15 eLOC 9 lLOC 7 Comment 0 Lines 15
------------------------- Function End Line: 23 ------------------------
------------------------ Function Begin Line: 26 -----------------------
Function: Seahunt::Game::~Game
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Game::~Game
Complexity Param 0 Return 1 Cyclo Vg 3 Total 4
LOC 12 eLOC 6 lLOC 4 Comment 0 Lines 12
------------------------- Function End Line: 37 ------------------------
------------------------ Function Begin Line: 41 -----------------------
Function: Seahunt::Game::Play
NOTICE #43: Line 63, The keyword 'continue' has been found.
The use of 'continue' can create code which is difficult
to maintain where the logic flow jumps to the beginning
of the framing control structure.
NOTICE #43: Line 69, The keyword 'continue' has been found.
The use of 'continue' can create code which is difficult
to maintain where the logic flow jumps to the beginning
of the framing control structure.
NOTICE #43: Line 79, The keyword 'continue' has been found.
The use of 'continue' can create code which is difficult
to maintain where the logic flow jumps to the beginning
of the framing control structure.
NOTICE #17: Function comments, 3.6% are less than 10%.
Function: Seahunt::Game::Play
Complexity Param 0 Return 1 Cyclo Vg 10 Total 11
LOC 53 eLOC 31 lLOC 21 Comment 2 Lines 65
------------------------ Function End Line: 105 ------------------------
Namespace End: Seahunt
NOTICE #20: File comment line percentage, 4.3% is less than 10.0%
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 88 eLOC 53 lLOC 32 Comment 4 Lines 107
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count ...: 3 Total LOC Lines LOC ...: 80
Total eLOC Lines ......: 46 Total lLOC Lines ......: 32
Total Function Params .: 0 Total Function Return .: 3
Total Cyclo Complexity : 16 Total Function Complex.: 19
------ ----- ----- ------ ------ -----
Max Function LOC ......: 53 Average Function LOC ..: 26.67
Max Function eLOC .....: 31 Average Function eLOC .: 15.33
Max Function lLOC .....: 21 Average Function lLOC .: 10.67
------ ----- ----- ------ ------ -----
Max Function Parameters: 0 Avg Function Parameters: 0.00
Max Function Returns ..: 1 Avg Function Returns ..: 1.00
Max Interface Complex. : 1 Avg Interface Complex. : 1.00
Max Cyclomatic Complex.: 10 Avg Cyclomatic Complex.: 5.33
Max Total Complexity ..: 11 Avg Total Complexity ..: 6.33
------------------------------------------------------------------------
~~ Memory Allocation/De-allocation Summary ~~
Memory alloc count ....: 0 Memory free count .....: 0
Memory new count ......: 2 Memory delete count ...: 2
------------------------------------------------------------------------
~~ File Keywords and Metrics ~~
--------------- LOC --------------- case, break .........: 4, 3
Lines of Code (LOC) .: 88 if, else ............: 7, 1
Lines of just { or } : 35 goto, return ........: 0, 0
Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0
Effective LOC (eLOC) : 53 macros, struct, union: 0, 0, 0
Code Statement (lLOC): 32 class, interface ....: 0, 0
-------------- Lines -------------- template, friend ....: 0, 0
Blank Lines .........: 17 namespace, package ..: 0, 0
Comment Lines .......: 4 func, virtual, inline: 3, 0, 0
Total Logical Lines .: 109 Memory alloc, free ..: 0, 0
Total Physical Lines : 107 Memory new, delete ..: 2, 2
------------ Key Words ------------ ------------- Analysis ------------
Literal Strings .....: 6 Paren Count (,) .....: 26, 26
#include, import ....: 1, 0 Brace Count {,} .....: 18, 18
#define, typedef ....: 0, 0 Bracket Count [,] ...: 0, 0
const, enum .........: 0, 0 Chars/NBLine, Notices: 11, 7
do, while ...........: 0, 1 Code, eCode Lines ...: 80.7%, 48.6%
switch, default .....: 1, 1 Comment, Blank Lines : 3.7%, 15.6%
for .................: 1 Characters, Spaces ..: 67.8%, 32.2%
________________________________________________________________________
End of File: game.cpp
File: game.h
Date: Tue Oct 10 21:45:28 2000 File Size: 400 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 14 -------------------------
Class: Seahunt::Game
NOTICE #34: Line 22, A pointer to a data object has been detected
within the specification for a class. This class must
be inspected to insure proper memory allocation and
de-allocation. This class must implement a public copy
constructor or a private copy constructor where by the
compiler will enforce no pass-by-value.
NOTICE #34: Line 23, A pointer to a data object has been detected
within the specification for a class. This class must
be inspected to insure proper memory allocation and
de-allocation. This class must implement a public copy
constructor or a private copy constructor where by the
compiler will enforce no pass-by-value.
NOTICE #31: Class comments, 0.0% are less than 10%.
Class: Seahunt::Game
Attributes Publ 0 Prot 0 Private 3 Total 3
Methods Publ 4 Prot 0 Private 0 Total 4
LOC 14 eLOC 12 lLOC 8 Comment 0 Lines 14
-------------------------- Class End Line: 27 --------------------------
Namespace End: Seahunt
NOTICE #20: File comment line percentage, 4.2% is less than 10.0%
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 23 eLOC 19 lLOC 9 Comment 1 Lines 31
------------------------------------------------------------------------
~~ File Keywords and Metrics ~~
--------------- LOC --------------- case, break .........: 0, 0
Lines of Code (LOC) .: 23 if, else ............: 0, 0
Lines of just { or } : 4 goto, return ........: 0, 0
Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0
Effective LOC (eLOC) : 19 macros, struct, union: 0, 0, 0
Code Statement (lLOC): 9 class, interface ....: 0, 0
-------------- Lines -------------- template, friend ....: 0, 0
Blank Lines .........: 7 namespace, package ..: 0, 0
Comment Lines .......: 1 inline ..............: 0
Total Logical Lines .: 31 Memory alloc, free ..: 0, 0
Total Physical Lines : 31 Memory new, delete ..: 0, 0
------------ Key Words ------------ ------------- Analysis ------------
Literal Strings .....: 2 Paren Count (,) .....: 4, 4
#include, import ....: 3, 0 Brace Count {,} .....: 3, 3
#define, typedef ....: 1, 0 Bracket Count [,] ...: 0, 0
const, enum .........: 0, 1 Chars/NBLine, Notices: 11, 4
do, while ...........: 0, 0 Code, eCode Lines ...: 74.2%, 61.3%
switch, default .....: 0, 0 Comment, Blank Lines : 3.2%, 22.6%
for .................: 0 Characters, Spaces ..: 77.5%, 22.5%
________________________________________________________________________
End of File: game.h
File: ocean.cpp
Date: Tue Oct 10 21:45:28 2000 File Size: 5088 Bytes
________________________________________________________________________
Namespace Begin: Anonymous - File Scope
NOTICE #1: Line 20, Line character length = 81. This width
exceeds the standard terminal width of 80 characters.
Namespace End: Anonymous - File Scope
Namespace Begin: Seahunt
------------------------ Function Begin Line: 28 -----------------------
Function: Seahunt::Ocean::Ocean
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Ocean::Ocean
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 8 eLOC 6 lLOC 4 Comment 0 Lines 8
------------------------- Function End Line: 35 ------------------------
------------------------ Function Begin Line: 39 -----------------------
Function: Seahunt::Ocean::Init
NOTICE #7: Line 44, pre-increment '++ operator' identified.
This can be a problematic construct in compound statements.
NOTICE #17: Function comments, 5.3% are less than 10%.
Function: Seahunt::Ocean::Init
Complexity Param 0 Return 1 Cyclo Vg 5 Total 6
LOC 18 eLOC 8 lLOC 8 Comment 1 Lines 20
------------------------- Function End Line: 58 ------------------------
------------------------ Function Begin Line: 61 -----------------------
Function: Seahunt::Ocean::~Ocean
NOTICE #7: Line 63, pre-increment '++ operator' identified.
This can be a problematic construct in compound statements.
NOTICE #17: Function comments, 7.1% are less than 10%.
Function: Seahunt::Ocean::~Ocean
Complexity Param 0 Return 1 Cyclo Vg 3 Total 4
LOC 13 eLOC 7 lLOC 4 Comment 1 Lines 14
------------------------- Function End Line: 74 ------------------------
------------------------ Function Begin Line: 78 -----------------------
Function: Seahunt::Ocean::PlaceTarget
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Ocean::PlaceTarget
Complexity Param 0 Return 1 Cyclo Vg 3 Total 4
LOC 13 eLOC 7 lLOC 4 Comment 0 Lines 13
------------------------- Function End Line: 90 ------------------------
------------------------ Function Begin Line: 94 -----------------------
Function: Seahunt::Ocean::TargetPlacement
NOTICE #1: Line 107, Line character length = 83. This width
exceeds the standard terminal width of 80 characters.
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Ocean::TargetPlacement
Complexity Param 1 Return 1 Cyclo Vg 4 Total 6
LOC 28 eLOC 18 lLOC 13 Comment 0 Lines 28
------------------------ Function End Line: 121 ------------------------
----------------------- Function Begin Line: 125 -----------------------
Function: Seahunt::Ocean::Hit
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Ocean::Hit
Complexity Param 0 Return 1 Cyclo Vg 3 Total 4
LOC 21 eLOC 15 lLOC 13 Comment 0 Lines 21
------------------------ Function End Line: 145 ------------------------
----------------------- Function Begin Line: 149 -----------------------
Function: Seahunt::Ocean::Show
NOTICE #7: Line 153, pre-increment '++ operator' identified.
This can be a problematic construct in compound statements.
NOTICE #7: Line 158, pre-increment '++ operator' identified.
This can be a problematic construct in compound statements.
NOTICE #7: Line 169, pre-increment '++ operator' identified.
This can be a problematic construct in compound statements.
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Ocean::Show
Complexity Param 0 Return 1 Cyclo Vg 6 Total 7
LOC 36 eLOC 20 lLOC 16 Comment 0 Lines 37
------------------------ Function End Line: 185 ------------------------
----------------------- Function Begin Line: 189 -----------------------
Function: Seahunt::Ocean::ShowTargets
NOTICE #7: Line 196, pre-increment '++ operator' identified.
This can be a problematic construct in compound statements.
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Ocean::ShowTargets
Complexity Param 0 Return 1 Cyclo Vg 3 Total 4
LOC 17 eLOC 11 lLOC 5 Comment 0 Lines 17
------------------------ Function End Line: 205 ------------------------
----------------------- Function Begin Line: 209 -----------------------
Function: Seahunt::Ocean::Get_target_count
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Ocean::Get_target_count
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
------------------------ Function End Line: 211 ------------------------
----------------------- Function Begin Line: 215 -----------------------
Function: Seahunt::Ocean::Get_active_targets
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Ocean::Get_active_targets
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
------------------------ Function End Line: 217 ------------------------
----------------------- Function Begin Line: 221 -----------------------
Function: Seahunt::Ocean::Get_destroyed_targets
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Ocean::Get_destroyed_targets
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
------------------------ Function End Line: 223 ------------------------
Namespace End: Seahunt
----------------------- Function Begin Line: 231 -----------------------
Function: main
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: main
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 12 eLOC 10 lLOC 10 Comment 0 Lines 20
------------------------ Function End Line: 250 ------------------------
NOTICE #20: File comment line percentage, 3.1% is less than 10.0%
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 217 eLOC 144 lLOC 83 Comment 7 Lines 252
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count ...: 12 Total LOC Lines LOC ...: 175
Total eLOC Lines ......: 105 Total lLOC Lines ......: 80
Total Function Params .: 1 Total Function Return .: 12
Total Cyclo Complexity : 32 Total Function Complex.: 45
------ ----- ----- ------ ------ -----
Max Function LOC ......: 36 Average Function LOC ..: 14.58
Max Function eLOC .....: 20 Average Function eLOC .: 8.75
Max Function lLOC .....: 16 Average Function lLOC .: 6.67
------ ----- ----- ------ ------ -----
Max Function Parameters: 1 Avg Function Parameters: 0.08
Max Function Returns ..: 1 Avg Function Returns ..: 1.00
Max Interface Complex. : 2 Avg Interface Complex. : 1.08
Max Cyclomatic Complex.: 6 Avg Cyclomatic Complex.: 2.67
Max Total Complexity ..: 7 Avg Total Complexity ..: 3.75
------------------------------------------------------------------------
~~ Memory Allocation/De-allocation Summary ~~
Memory alloc count ....: 0 Memory free count .....: 0
Memory new count ......: 0 Memory delete count ...: 1
------------------------------------------------------------------------
~~ File Keywords and Metrics ~~
--------------- LOC --------------- case, break .........: 0, 0
Lines of Code (LOC) .: 217 if, else ............: 9, 3
Lines of just { or } : 73 goto, return ........: 0, 5
Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0
Effective LOC (eLOC) : 144 macros, struct, union: 0, 0, 0
Code Statement (lLOC): 83 class, interface ....: 0, 0
-------------- Lines -------------- template, friend ....: 0, 0
Blank Lines .........: 29 namespace, package ..: 0, 0
Comment Lines .......: 7 func, virtual, inline: 12, 0, 0
Total Logical Lines .: 253 Memory alloc, free ..: 0, 0
Total Physical Lines : 252 Memory new, delete ..: 0, 1
------------ Key Words ------------ ------------- Analysis ------------
Literal Strings .....: 43 Paren Count (,) .....: 71, 71
#include, import ....: 4, 0 Brace Count {,} .....: 40, 40
#define, typedef ....: 0, 0 Bracket Count [,] ...: 36, 36
const, enum .........: 3, 0 Chars/NBLine, Notices: 16, 21
do, while ...........: 0, 1 Code, eCode Lines ...: 85.8%, 56.9%
switch, default .....: 0, 0 Comment, Blank Lines : 2.8%, 11.5%
for .................: 10 Characters, Spaces ..: 74.6%, 25.4%
________________________________________________________________________
End of File: ocean.cpp
File: ocean.h
Date: Tue Oct 10 21:45:28 2000 File Size: 825 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 18 -------------------------
Class: Seahunt::Ocean
NOTICE #34: Line 38, A pointer to a data object has been detected
within the specification for a class. This class must
be inspected to insure proper memory allocation and
de-allocation. This class must implement a public copy
constructor or a private copy constructor where by the
compiler will enforce no pass-by-value.
NOTICE #31: Class comments, 0.0% are less than 10%.
Class: Seahunt::Ocean
Attributes Publ 0 Prot 0 Private 6 Total 6
Methods Publ 9 Prot 0 Private 2 Total 11
LOC 24 eLOC 22 lLOC 19 Comment 0 Lines 24
-------------------------- Class End Line: 41 --------------------------
Namespace End: Seahunt
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 34 eLOC 30 lLOC 20 Comment 5 Lines 47
------------------------------------------------------------------------
~~ File Keywords and Metrics ~~
--------------- LOC --------------- case, break .........: 0, 0
Lines of Code (LOC) .: 34 if, else ............: 0, 0
Lines of just { or } : 4 goto, return ........: 0, 0
Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0
Effective LOC (eLOC) : 30 macros, struct, union: 0, 0, 0
Code Statement (lLOC): 20 class, interface ....: 0, 0
-------------- Lines -------------- template, friend ....: 0, 0
Blank Lines .........: 9 namespace, package ..: 0, 0
Comment Lines .......: 5 inline ..............: 0
Total Logical Lines .: 48 Memory alloc, free ..: 0, 0
Total Physical Lines : 47 Memory new, delete ..: 0, 0
------------ Key Words ------------ ------------- Analysis ------------
Literal Strings .....: 3 Paren Count (,) .....: 11, 11
#include, import ....: 4, 0 Brace Count {,} .....: 4, 4
#define, typedef ....: 1, 0 Bracket Count [,] ...: 4, 4
const, enum .........: 0, 2 Chars/NBLine, Notices: 16, 2
do, while ...........: 0, 0 Code, eCode Lines ...: 70.8%, 62.5%
switch, default .....: 0, 0 Comment, Blank Lines : 10.4%, 18.8%
for .................: 0 Characters, Spaces ..: 80.8%, 19.2%
________________________________________________________________________
End of File: ocean.h
File: player.cpp
Date: Tue Oct 10 21:45:28 2000 File Size: 1922 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------ Function Begin Line: 9 ------------------------
Function: Seahunt::Player::Player
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Player::Player
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 7 eLOC 5 lLOC 5 Comment 0 Lines 7
------------------------- Function End Line: 15 ------------------------
------------------------ Function Begin Line: 18 -----------------------
Function: Seahunt::Player::Player
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Player::Player
Complexity Param 1 Return 1 Cyclo Vg 1 Total 3
LOC 7 eLOC 5 lLOC 5 Comment 0 Lines 7
------------------------- Function End Line: 24 ------------------------
------------------------ Function Begin Line: 27 -----------------------
Function: Seahunt::Player::~Player
Function: Seahunt::Player::~Player
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 2 eLOC 0 lLOC 0 Comment 1 Lines 3
------------------------- Function End Line: 29 ------------------------
------------------------ Function Begin Line: 33 -----------------------
Function: Seahunt::Player::Hit
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Player::Hit
Complexity Param 1 Return 1 Cyclo Vg 2 Total 4
LOC 10 eLOC 6 lLOC 5 Comment 0 Lines 10
------------------------- Function End Line: 42 ------------------------
------------------------ Function Begin Line: 46 -----------------------
Function: Seahunt::Player::Score
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Player::Score
Complexity Param 1 Return 1 Cyclo Vg 1 Total 3
LOC 6 eLOC 4 lLOC 2 Comment 0 Lines 6
------------------------- Function End Line: 51 ------------------------
------------------------ Function Begin Line: 55 -----------------------
Function: Seahunt::Player::Show
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Player::Show
Complexity Param 0 Return 1 Cyclo Vg 2 Total 3
LOC 18 eLOC 14 lLOC 10 Comment 0 Lines 18
------------------------- Function End Line: 72 ------------------------
------------------------ Function Begin Line: 76 -----------------------
Function: Seahunt::Player::Get_score
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Player::Get_score
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
------------------------- Function End Line: 78 ------------------------
------------------------ Function Begin Line: 82 -----------------------
Function: Seahunt::Player::Get_number_hits
NOTICE #17: Function comments, 0.0% are less than 10%.
NOTICE #16: Function white space, 8.7% is less than 10%.
Function: Seahunt::Player::Get_number_hits
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
------------------------- Function End Line: 84 ------------------------
------------------------ Function Begin Line: 88 -----------------------
Function: Seahunt::Player::Get_number_tries
NOTICE #17: Function comments, 0.0% are less than 10%.
NOTICE #16: Function white space, 8.3% is less than 10%.
Function: Seahunt::Player::Get_number_tries
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
------------------------- Function End Line: 90 ------------------------
------------------------ Function Begin Line: 94 -----------------------
Function: Seahunt::Player::Get_name
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Player::Get_name
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
------------------------- Function End Line: 96 ------------------------
----------------------- Function Begin Line: 100 -----------------------
Function: Seahunt::Player::Set_name
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Player::Set_name
Complexity Param 1 Return 1 Cyclo Vg 1 Total 3
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
------------------------ Function End Line: 102 ------------------------
Namespace End: Seahunt
----------------------- Function Begin Line: 109 -----------------------
Function: main
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: main
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 8 eLOC 6 lLOC 6 Comment 0 Lines 10
------------------------ Function End Line: 118 ------------------------
NOTICE #20: File comment line percentage, 2.9% is less than 10.0%
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 100 eLOC 71 lLOC 38 Comment 3 Lines 126
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count ...: 12 Total LOC Lines LOC ...: 73
Total eLOC Lines ......: 45 Total lLOC Lines ......: 38
Total Function Params .: 4 Total Function Return .: 12
Total Cyclo Complexity : 14 Total Function Complex.: 30
------ ----- ----- ------ ------ -----
Max Function LOC ......: 18 Average Function LOC ..: 6.08
Max Function eLOC .....: 14 Average Function eLOC .: 3.75
Max Function lLOC .....: 10 Average Function lLOC .: 3.17
------ ----- ----- ------ ------ -----
Max Function Parameters: 1 Avg Function Parameters: 0.33
Max Function Returns ..: 1 Avg Function Returns ..: 1.00
Max Interface Complex. : 2 Avg Interface Complex. : 1.33
Max Cyclomatic Complex.: 2 Avg Cyclomatic Complex.: 1.17
Max Total Complexity ..: 4 Avg Total Complexity ..: 2.50
------------------------------------------------------------------------
~~ File Keywords and Metrics ~~
--------------- LOC --------------- case, break .........: 0, 0
Lines of Code (LOC) .: 100 if, else ............: 2, 0
Lines of just { or } : 29 goto, return ........: 0, 7
Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0
Effective LOC (eLOC) : 71 macros, struct, union: 0, 0, 0
Code Statement (lLOC): 38 class, interface ....: 0, 0
-------------- Lines -------------- template, friend ....: 0, 0
Blank Lines .........: 24 namespace, package ..: 0, 0
Comment Lines .......: 3 func, virtual, inline: 12, 0, 0
Total Logical Lines .: 127 Memory alloc, free ..: 0, 0
Total Physical Lines : 126 Memory new, delete ..: 0, 0
------------ Key Words ------------ ------------- Analysis ------------
Literal Strings .....: 9 Paren Count (,) .....: 45, 45
#include, import ....: 1, 0 Brace Count {,} .....: 15, 15
#define, typedef ....: 0, 0 Bracket Count [,] ...: 0, 0
const, enum .........: 5, 0 Chars/NBLine, Notices: 14, 14
do, while ...........: 0, 0 Code, eCode Lines ...: 78.7%, 55.9%
switch, default .....: 0, 0 Comment, Blank Lines : 2.4%, 18.9%
for .................: 0 Characters, Spaces ..: 82.2%, 17.8%
________________________________________________________________________
End of File: player.cpp
File: player.h
Date: Tue Oct 10 21:45:28 2000 File Size: 666 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 16 -------------------------
Class: Seahunt::Player
NOTICE #31: Class comments, 0.0% are less than 10%.
Class: Seahunt::Player
Attributes Publ 0 Prot 0 Private 5 Total 5
Methods Publ 11 Prot 0 Private 0 Total 11
LOC 21 eLOC 19 lLOC 16 Comment 0 Lines 22
-------------------------- Class End Line: 37 --------------------------
Namespace End: Seahunt
NOTICE #20: File comment line percentage, 3.0% is less than 10.0%
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 32 eLOC 28 lLOC 17 Comment 1 Lines 41
------------------------------------------------------------------------
~~ File Keywords and Metrics ~~
--------------- LOC --------------- case, break .........: 0, 0
Lines of Code (LOC) .: 32 if, else ............: 0, 0
Lines of just { or } : 4 goto, return ........: 0, 0
Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0
Effective LOC (eLOC) : 28 macros, struct, union: 0, 0, 0
Code Statement (lLOC): 17 class, interface ....: 0, 0
-------------- Lines -------------- template, friend ....: 0, 0
Blank Lines .........: 8 namespace, package ..: 0, 0
Comment Lines .......: 1 inline ..............: 0
Total Logical Lines .: 41 Memory alloc, free ..: 0, 0
Total Physical Lines : 41 Memory new, delete ..: 0, 0
------------ Key Words ------------ ------------- Analysis ------------
Literal Strings .....: 1 Paren Count (,) .....: 11, 11
#include, import ....: 5, 0 Brace Count {,} .....: 2, 2
#define, typedef ....: 1, 0 Bracket Count [,] ...: 0, 0
const, enum .........: 0, 0 Chars/NBLine, Notices: 15, 2
do, while ...........: 0, 0 Code, eCode Lines ...: 78.0%, 68.3%
switch, default .....: 0, 0 Comment, Blank Lines : 2.4%, 19.5%
for .................: 0 Characters, Spaces ..: 79.4%, 20.6%
________________________________________________________________________
End of File: player.h
File: seahunt.cpp
Date: Tue Oct 10 21:45:28 2000 File Size: 201 Bytes
________________________________________________________________________
------------------------ Function Begin Line: 11 -----------------------
Function: main
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: main
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 6 eLOC 4 lLOC 4 Comment 0 Lines 6
------------------------- Function End Line: 16 ------------------------
NOTICE #20: File comment line percentage, 7.7% is less than 10.0%
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 12 eLOC 10 lLOC 4 Comment 1 Lines 18
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count ...: 1 Total LOC Lines LOC ...: 6
Total eLOC Lines ......: 4 Total lLOC Lines ......: 4
Total Function Params .: 0 Total Function Return .: 1
Total Cyclo Complexity : 1 Total Function Complex.: 2
------ ----- ----- ------ ------ -----
Max Function LOC ......: 6 Average Function LOC ..: 6.00
Max Function eLOC .....: 4 Average Function eLOC .: 4.00
Max Function lLOC .....: 4 Average Function lLOC .: 4.00
------ ----- ----- ------ ------ -----
Max Function Parameters: 0 Avg Function Parameters: 0.00
Max Function Returns ..: 1 Avg Function Returns ..: 1.00
Max Interface Complex. : 1 Avg Interface Complex. : 1.00
Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00
Max Total Complexity ..: 2 Avg Total Complexity ..: 2.00
------------------------------------------------------------------------
~~ File Keywords and Metrics ~~
--------------- LOC --------------- case, break .........: 0, 0
Lines of Code (LOC) .: 12 if, else ............: 0, 0
Lines of just { or } : 2 goto, return ........: 0, 1
Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0
Effective LOC (eLOC) : 10 macros, struct, union: 0, 0, 0
Code Statement (lLOC): 4 class, interface ....: 0, 0
-------------- Lines -------------- template, friend ....: 0, 0
Blank Lines .........: 5 namespace, package ..: 0, 0
Comment Lines .......: 1 func, virtual, inline: 1, 0, 0
Total Logical Lines .: 18 Memory alloc, free ..: 0, 0
Total Physical Lines : 18 Memory new, delete ..: 0, 0
------------ Key Words ------------ ------------- Analysis ------------
Literal Strings .....: 2 Paren Count (,) .....: 3, 3
#include, import ....: 2, 0 Brace Count {,} .....: 1, 1
#define, typedef ....: 0, 0 Bracket Count [,] ...: 0, 0
const, enum .........: 0, 0 Chars/NBLine, Notices: 12, 2
do, while ...........: 0, 0 Code, eCode Lines ...: 66.7%, 55.6%
switch, default .....: 0, 0 Comment, Blank Lines : 5.6%, 27.8%
for .................: 0 Characters, Spaces ..: 89.1%, 10.9%
________________________________________________________________________
End of File: seahunt.cpp
File: sub.cpp
Date: Tue Oct 10 21:45:28 2000 File Size: 1418 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------ Function Begin Line: 12 -----------------------
Function: Seahunt::Sub::Create
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Sub::Create
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 11 eLOC 9 lLOC 9 Comment 0 Lines 11
------------------------- Function End Line: 22 ------------------------
------------------------ Function Begin Line: 26 -----------------------
Function: Seahunt::Sub::Create
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Sub::Create
Complexity Param 3 Return 1 Cyclo Vg 1 Total 5
LOC 4 eLOC 2 lLOC 2 Comment 0 Lines 4
------------------------- Function End Line: 29 ------------------------
------------------------ Function Begin Line: 33 -----------------------
Function: Seahunt::Sub::Sub
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Sub::Sub
Complexity Param 3 Return 1 Cyclo Vg 1 Total 5
LOC 5 eLOC 3 lLOC 1 Comment 0 Lines 5
------------------------- Function End Line: 37 ------------------------
------------------------ Function Begin Line: 40 -----------------------
Function: Seahunt::Sub::~Sub
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Sub::~Sub
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 5 eLOC 3 lLOC 1 Comment 0 Lines 5
------------------------- Function End Line: 44 ------------------------
------------------------ Function Begin Line: 48 -----------------------
Function: Seahunt::Sub::Show
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Sub::Show
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 5 eLOC 3 lLOC 3 Comment 0 Lines 5
------------------------- Function End Line: 52 ------------------------
------------------------ Function Begin Line: 56 -----------------------
Function: Seahunt::Sub::Hit
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Sub::Hit
Complexity Param 0 Return 1 Cyclo Vg 3 Total 4
LOC 11 eLOC 5 lLOC 3 Comment 0 Lines 11
------------------------- Function End Line: 66 ------------------------
Namespace End: Seahunt
------------------------ Function Begin Line: 73 -----------------------
Function: main
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: main
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 11 eLOC 9 lLOC 9 Comment 0 Lines 15
------------------------- Function End Line: 87 ------------------------
NOTICE #20: File comment line percentage, 4.0% is less than 10.0%
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 72 eLOC 53 lLOC 28 Comment 3 Lines 91
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count ...: 7 Total LOC Lines LOC ...: 52
Total eLOC Lines ......: 34 Total lLOC Lines ......: 28
Total Function Params .: 6 Total Function Return .: 7
Total Cyclo Complexity : 9 Total Function Complex.: 22
------ ----- ----- ------ ------ -----
Max Function LOC ......: 11 Average Function LOC ..: 7.43
Max Function eLOC .....: 9 Average Function eLOC .: 4.86
Max Function lLOC .....: 9 Average Function lLOC .: 4.00
------ ----- ----- ------ ------ -----
Max Function Parameters: 3 Avg Function Parameters: 0.86
Max Function Returns ..: 1 Avg Function Returns ..: 1.00
Max Interface Complex. : 4 Avg Interface Complex. : 1.86
Max Cyclomatic Complex.: 3 Avg Cyclomatic Complex.: 1.29
Max Total Complexity ..: 5 Avg Total Complexity ..: 3.14
------------------------------------------------------------------------
~~ Memory Allocation/De-allocation Summary ~~
Memory alloc count ....: 0 Memory free count .....: 0
Memory new count ......: 2 Memory delete count ...: 0
------------------------------------------------------------------------
~~ File Keywords and Metrics ~~
--------------- LOC --------------- case, break .........: 0, 0
Lines of Code (LOC) .: 72 if, else ............: 2, 0
Lines of just { or } : 19 goto, return ........: 0, 4
Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0
Effective LOC (eLOC) : 53 macros, struct, union: 0, 0, 0
Code Statement (lLOC): 28 class, interface ....: 0, 0
-------------- Lines -------------- template, friend ....: 0, 0
Blank Lines .........: 18 namespace, package ..: 0, 0
Comment Lines .......: 3 func, virtual, inline: 7, 0, 0
Total Logical Lines .: 93 Memory alloc, free ..: 0, 0
Total Physical Lines : 91 Memory new, delete ..: 2, 0
------------ Key Words ------------ ------------- Analysis ------------
Literal Strings .....: 10 Paren Count (,) .....: 31, 31
#include, import ....: 2, 0 Brace Count {,} .....: 10, 10
#define, typedef ....: 0, 0 Bracket Count [,] ...: 0, 0
const, enum .........: 1, 0 Chars/NBLine, Notices: 14, 8
do, while ...........: 0, 0 Code, eCode Lines ...: 77.4%, 57.0%
switch, default .....: 0, 0 Comment, Blank Lines : 3.2%, 19.4%
for .................: 0 Characters, Spaces ..: 81.5%, 18.5%
________________________________________________________________________
End of File: sub.cpp
File: sub.h
Date: Tue Oct 10 21:45:28 2000 File Size: 456 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 14 -------------------------
Class: Seahunt::Sub
Inheritance: Target
------------------------ Function Begin Line: 22 -----------------------
Function: Seahunt::Sub::Abstract
NOTICE #17: Function comments, 0.0% are less than 10%.
NOTICE #16: Function white space, 0.0% is less than 10%.
Function: Seahunt::Sub::Abstract
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 1 eLOC 1 lLOC 0 Comment 0 Lines 1
------------------------- Function End Line: 22 ------------------------
NOTICE #31: Class comments, 0.0% are less than 10%.
Class: Seahunt::Sub
Attributes Publ 0 Prot 0 Private 0 Total 0
Methods Publ 6 Prot 0 Private 1 Total 7
LOC 12 eLOC 10 lLOC 6 Comment 0 Lines 12
-------------------------- Class End Line: 25 --------------------------
Namespace End: Seahunt
NOTICE #20: File comment line percentage, 8.7% is less than 10.0%
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 21 eLOC 18 lLOC 7 Comment 2 Lines 29
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count ...: 1 Total LOC Lines LOC ...: 1
Total eLOC Lines ......: 1 Total lLOC Lines ......: 0
Total Function Params .: 0 Total Function Return .: 1
Total Cyclo Complexity : 1 Total Function Complex.: 2
------ ----- ----- ------ ------ -----
Max Function LOC ......: 1 Average Function LOC ..: 1.00
Max Function eLOC .....: 1 Average Function eLOC .: 1.00
Max Function lLOC .....: 0 Average Function lLOC .: 0.00
------ ----- ----- ------ ------ -----
Max Function Parameters: 0 Avg Function Parameters: 0.00
Max Function Returns ..: 1 Avg Function Returns ..: 1.00
Max Interface Complex. : 1 Avg Interface Complex. : 1.00
Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00
Max Total Complexity ..: 2 Avg Total Complexity ..: 2.00
------------------------------------------------------------------------
~~ File Keywords and Metrics ~~
--------------- LOC --------------- case, break .........: 0, 0
Lines of Code (LOC) .: 21 if, else ............: 0, 0
Lines of just { or } : 3 goto, return ........: 0, 0
Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0
Effective LOC (eLOC) : 18 macros, struct, union: 0, 0, 0
Code Statement (lLOC): 7 class, interface ....: 0, 0
-------------- Lines -------------- template, friend ....: 0, 0
Blank Lines .........: 7 namespace, package ..: 0, 0
Comment Lines .......: 2 func, virtual, inline: 1, 0, 0
Total Logical Lines .: 30 Memory alloc, free ..: 0, 0
Total Physical Lines : 29 Memory new, delete ..: 0, 0
------------ Key Words ------------ ------------- Analysis ------------
Literal Strings .....: 2 Paren Count (,) .....: 7, 7
#include, import ....: 3, 0 Brace Count {,} .....: 3, 3
#define, typedef ....: 1, 0 Bracket Count [,] ...: 0, 0
const, enum .........: 0, 0 Chars/NBLine, Notices: 15, 4
do, while ...........: 0, 0 Code, eCode Lines ...: 70.0%, 60.0%
switch, default .....: 0, 0 Comment, Blank Lines : 6.7%, 23.3%
for .................: 0 Characters, Spaces ..: 80.8%, 19.2%
________________________________________________________________________
End of File: sub.h
File: target.cpp
Date: Tue Oct 10 21:45:28 2000 File Size: 1580 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------ Function Begin Line: 17 -----------------------
Function: Seahunt::Target::Target
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Target::Target
Complexity Param 3 Return 1 Cyclo Vg 1 Total 5
LOC 11 eLOC 9 lLOC 7 Comment 0 Lines 11
------------------------- Function End Line: 27 ------------------------
------------------------ Function Begin Line: 30 -----------------------
Function: Seahunt::Target::~Target
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Target::~Target
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 6 eLOC 4 lLOC 2 Comment 0 Lines 6
------------------------- Function End Line: 35 ------------------------
------------------------ Function Begin Line: 39 -----------------------
Function: Seahunt::Target::Get_status
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Target::Get_status
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
------------------------- Function End Line: 41 ------------------------
------------------------ Function Begin Line: 45 -----------------------
Function: Seahunt::Target::Get_depth_limit
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Target::Get_depth_limit
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
------------------------- Function End Line: 47 ------------------------
------------------------ Function Begin Line: 51 -----------------------
Function: Seahunt::Target::Get_name
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Target::Get_name
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
------------------------- Function End Line: 53 ------------------------
------------------------ Function Begin Line: 57 -----------------------
Function: Seahunt::Target::Hit
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Target::Hit
Complexity Param 0 Return 1 Cyclo Vg 3 Total 4
LOC 21 eLOC 11 lLOC 7 Comment 0 Lines 21
------------------------- Function End Line: 77 ------------------------
------------------------ Function Begin Line: 81 -----------------------
Function: Seahunt::Target::Reset
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Target::Reset
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 4 eLOC 2 lLOC 2 Comment 0 Lines 4
------------------------- Function End Line: 84 ------------------------
------------------------ Function Begin Line: 88 -----------------------
Function: Seahunt::Target::Show
NOTICE #1: Line 92, Line character length = 84. This width
exceeds the standard terminal width of 80 characters.
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Target::Show
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 6 eLOC 4 lLOC 1 Comment 0 Lines 6
------------------------- Function End Line: 93 ------------------------
Namespace End: Seahunt
----------------------- Function Begin Line: 100 -----------------------
Function: main
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: main
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 12 eLOC 10 lLOC 10 Comment 0 Lines 16
------------------------ Function End Line: 115 ------------------------
NOTICE #20: File comment line percentage, 3.9% is less than 10.0%
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 98 eLOC 69 lLOC 33 Comment 4 Lines 119
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count ...: 9 Total LOC Lines LOC ...: 69
Total eLOC Lines ......: 43 Total lLOC Lines ......: 32
Total Function Params .: 3 Total Function Return .: 9
Total Cyclo Complexity : 11 Total Function Complex.: 23
------ ----- ----- ------ ------ -----
Max Function LOC ......: 21 Average Function LOC ..: 7.67
Max Function eLOC .....: 11 Average Function eLOC .: 4.78
Max Function lLOC .....: 10 Average Function lLOC .: 3.56
------ ----- ----- ------ ------ -----
Max Function Parameters: 3 Avg Function Parameters: 0.33
Max Function Returns ..: 1 Avg Function Returns ..: 1.00
Max Interface Complex. : 4 Avg Interface Complex. : 1.33
Max Cyclomatic Complex.: 3 Avg Cyclomatic Complex.: 1.22
Max Total Complexity ..: 5 Avg Total Complexity ..: 2.56
------------------------------------------------------------------------
~~ File Keywords and Metrics ~~
--------------- LOC --------------- case, break .........: 0, 0
Lines of Code (LOC) .: 98 if, else ............: 2, 2
Lines of just { or } : 29 goto, return ........: 0, 5
Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0
Effective LOC (eLOC) : 69 macros, struct, union: 0, 0, 0
Code Statement (lLOC): 33 class, interface ....: 0, 0
-------------- Lines -------------- template, friend ....: 0, 0
Blank Lines .........: 19 namespace, package ..: 0, 0
Comment Lines .......: 4 func, virtual, inline: 9, 0, 0
Total Logical Lines .: 121 Memory alloc, free ..: 0, 0
Total Physical Lines : 119 Memory new, delete ..: 0, 0
------------ Key Words ------------ ------------- Analysis ------------
Literal Strings .....: 11 Paren Count (,) .....: 28, 28
#include, import ....: 1, 0 Brace Count {,} .....: 15, 15
#define, typedef ....: 0, 0 Bracket Count [,] ...: 2, 2
const, enum .........: 4, 0 Chars/NBLine, Notices: 11, 11
do, while ...........: 0, 0 Code, eCode Lines ...: 81.0%, 57.0%
switch, default .....: 0, 0 Comment, Blank Lines : 3.3%, 15.7%
for .................: 0 Characters, Spaces ..: 78.2%, 21.8%
________________________________________________________________________
End of File: target.cpp
File: target.h
Date: Tue Oct 10 21:45:28 2000 File Size: 1474 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 28 -------------------------
Class: Seahunt::Target
------------------------ Function Begin Line: 47 -----------------------
Function: Seahunt::Target::Get_armor
NOTICE #16: Function white space, 0.0% is less than 10%.
Function: Seahunt::Target::Get_armor
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1
------------------------- Function End Line: 47 ------------------------
NOTICE #36: Line 58, Protected data has been identified with a class
specification. This design allows the protected data
to be freely access down the inheritance tree.
NOTICE #36: Line 59, Protected data has been identified with a class
specification. This design allows the protected data
to be freely access down the inheritance tree.
NOTICE #36: Line 60, Protected data has been identified with a class
specification. This design allows the protected data
to be freely access down the inheritance tree.
NOTICE #36: Line 61, Protected data has been identified with a class
specification. This design allows the protected data
to be freely access down the inheritance tree.
NOTICE #36: Line 62, Protected data has been identified with a class
specification. This design allows the protected data
to be freely access down the inheritance tree.
------------------------ Function Begin Line: 66 -----------------------
Function: Seahunt::Target::Target
Function: Seahunt::Target::Target
Complexity Param 1 Return 1 Cyclo Vg 1 Total 3
LOC 2 eLOC 0 lLOC 0 Comment 2 Lines 4
------------------------- Function End Line: 69 ------------------------
Class: Seahunt::Target
Attributes Publ 0 Prot 5 Private 0 Total 5
Methods Publ 10 Prot 0 Private 1 Total 11
LOC 30 eLOC 26 lLOC 16 Comment 8 Lines 44
-------------------------- Class End Line: 71 --------------------------
Namespace End: Seahunt
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 46 eLOC 39 lLOC 18 Comment 17 Lines 78
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count ...: 2 Total LOC Lines LOC ...: 3
Total eLOC Lines ......: 1 Total lLOC Lines ......: 1
Total Function Params .: 1 Total Function Return .: 2
Total Cyclo Complexity : 2 Total Function Complex.: 5
------ ----- ----- ------ ------ -----
Max Function LOC ......: 2 Average Function LOC ..: 1.50
Max Function eLOC .....: 1 Average Function eLOC .: 0.50
Max Function lLOC .....: 1 Average Function lLOC .: 0.50
------ ----- ----- ------ ------ -----
Max Function Parameters: 1 Avg Function Parameters: 0.50
Max Function Returns ..: 1 Avg Function Returns ..: 1.00
Max Interface Complex. : 2 Avg Interface Complex. : 1.50
Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00
Max Total Complexity ..: 3 Avg Total Complexity ..: 2.50
------------------------------------------------------------------------
~~ File Keywords and Metrics ~~
--------------- LOC --------------- case, break .........: 0, 0
Lines of Code (LOC) .: 46 if, else ............: 0, 0
Lines of just { or } : 7 goto, return ........: 0, 1
Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0
Effective LOC (eLOC) : 39 macros, struct, union: 0, 0, 0
Code Statement (lLOC): 18 class, interface ....: 0, 0
-------------- Lines -------------- template, friend ....: 0, 0
Blank Lines .........: 17 namespace, package ..: 0, 0
Comment Lines .......: 17 func, virtual, inline: 2, 4, 0
Total Logical Lines .: 80 Memory alloc, free ..: 0, 0
Total Physical Lines : 78 Memory new, delete ..: 0, 0
------------ Key Words ------------ ------------- Analysis ------------
Literal Strings .....: 1 Paren Count (,) .....: 12, 12
#include, import ....: 2, 0 Brace Count {,} .....: 6, 6
#define, typedef ....: 1, 0 Bracket Count [,] ...: 0, 0
const, enum .........: 1, 2 Chars/NBLine, Notices: 17, 6
do, while ...........: 0, 0 Code, eCode Lines ...: 57.5%, 48.8%
switch, default .....: 0, 0 Comment, Blank Lines : 21.3%, 21.3%
for .................: 0 Characters, Spaces ..: 76.9%, 23.1%
________________________________________________________________________
End of File: target.h
File: utility.cpp
Date: Tue Oct 10 21:45:28 2000 File Size: 1778 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------ Function Begin Line: 15 -----------------------
Function: Seahunt::Utility::itos
Function: Seahunt::Utility::itos
Complexity Param 1 Return 1 Cyclo Vg 1 Total 3
LOC 7 eLOC 5 lLOC 5 Comment 1 Lines 7
------------------------- Function End Line: 21 ------------------------
------------------------ Function Begin Line: 26 -----------------------
Function: Seahunt::Utility::dtos
Function: Seahunt::Utility::dtos
Complexity Param 1 Return 1 Cyclo Vg 1 Total 3
LOC 7 eLOC 5 lLOC 5 Comment 1 Lines 7
------------------------- Function End Line: 32 ------------------------
------------------------ Function Begin Line: 36 -----------------------
Function: Seahunt::Utility::UserEntry
NOTICE #7: Line 46, pre-increment '++ operator' identified.
This can be a problematic construct in compound statements.
NOTICE #44: Line 55, The keyword 'break' has been identified
outside a 'switch' logic control structure. The use
of 'break' interrupts the linear logic flow and can create
source code which is difficult to maintain.
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Utility::UserEntry
Complexity Param 4 Return 1 Cyclo Vg 8 Total 13
LOC 37 eLOC 21 lLOC 15 Comment 0 Lines 37
------------------------- Function End Line: 72 ------------------------
------------------------ Function Begin Line: 76 -----------------------
Function: Seahunt::Utility::UserEntry
Function: Seahunt::Utility::UserEntry
Complexity Param 3 Return 1 Cyclo Vg 1 Total 5
LOC 6 eLOC 4 lLOC 4 Comment 1 Lines 6
------------------------- Function End Line: 81 ------------------------
------------------------ Function Begin Line: 85 -----------------------
Function: Seahunt::Utility::WaitKey
NOTICE #17: Function comments, 0.0% are less than 10%.
Function: Seahunt::Utility::WaitKey
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 5 eLOC 3 lLOC 3 Comment 0 Lines 5
------------------------- Function End Line: 89 ------------------------
------------------------ Function Begin Line: 93 -----------------------
Function: Seahunt::Utility::ClearScreen
NOTICE #17: Function comments, 0.0% are less than 10%.
NOTICE #16: Function white space, 7.5% is less than 10%.
Function: Seahunt::Utility::ClearScreen
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
------------------------- Function End Line: 95 ------------------------
Namespace End: Seahunt
NOTICE #20: File comment line percentage, 4.5% is less than 10.0%
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 84 eLOC 56 lLOC 33 Comment 4 Lines 98
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count ...: 6 Total LOC Lines LOC ...: 65
Total eLOC Lines ......: 39 Total lLOC Lines ......: 33
Total Function Params .: 9 Total Function Return .: 6
Total Cyclo Complexity : 13 Total Function Complex.: 28
------ ----- ----- ------ ------ -----
Max Function LOC ......: 37 Average Function LOC ..: 10.83
Max Function eLOC .....: 21 Average Function eLOC .: 6.50
Max Function lLOC .....: 15 Average Function lLOC .: 5.50
------ ----- ----- ------ ------ -----
Max Function Parameters: 4 Avg Function Parameters: 1.50
Max Function Returns ..: 1 Avg Function Returns ..: 1.00
Max Interface Complex. : 5 Avg Interface Complex. : 2.50
Max Cyclomatic Complex.: 8 Avg Cyclomatic Complex.: 2.17
Max Total Complexity ..: 13 Avg Total Complexity ..: 4.67
------------------------------------------------------------------------
~~ File Keywords and Metrics ~~
--------------- LOC --------------- case, break .........: 0, 1
Lines of Code (LOC) .: 84 if, else ............: 3, 2
Lines of just { or } : 28 goto, return ........: 0, 2
Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0
Effective LOC (eLOC) : 56 macros, struct, union: 0, 0, 0
Code Statement (lLOC): 33 class, interface ....: 0, 0
-------------- Lines -------------- template, friend ....: 0, 0
Blank Lines .........: 11 namespace, package ..: 0, 0
Comment Lines .......: 4 func, virtual, inline: 6, 0, 0
Total Logical Lines .: 99 Memory alloc, free ..: 0, 0
Total Physical Lines : 98 Memory new, delete ..: 0, 0
------------ Key Words ------------ ------------- Analysis ------------
Literal Strings .....: 12 Paren Count (,) .....: 19, 19
#include, import ....: 4, 0 Brace Count {,} .....: 17, 17
#define, typedef ....: 0, 0 Bracket Count [,] ...: 4, 4
const, enum .........: 0, 0 Chars/NBLine, Notices: 14, 7
do, while ...........: 1, 1 Code, eCode Lines ...: 84.8%, 56.6%
switch, default .....: 0, 0 Comment, Blank Lines : 4.0%, 11.1%
for .................: 1 Characters, Spaces ..: 75.7%, 24.3%
________________________________________________________________________
End of File: utility.cpp
File: utility.h
Date: Tue Oct 10 21:45:28 2000 File Size: 566 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 12 -------------------------
Class: Seahunt::Utility
Class: Seahunt::Utility
Attributes Publ 0 Prot 0 Private 0 Total 0
Methods Publ 6 Prot 0 Private 0 Total 6
LOC 12 eLOC 10 lLOC 7 Comment 2 Lines 14
-------------------------- Class End Line: 25 --------------------------
Namespace End: Seahunt
~~ Total File Summary ~~
LOC 20 eLOC 16 lLOC 8 Comment 3 Lines 30
------------------------------------------------------------------------
~~ File Keywords and Metrics ~~
--------------- LOC --------------- case, break .........: 0, 0
Lines of Code (LOC) .: 20 if, else ............: 0, 0
Lines of just { or } : 4 goto, return ........: 0, 0
Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0
Effective LOC (eLOC) : 16 macros, struct, union: 0, 0, 0
Code Statement (lLOC): 8 class, interface ....: 0, 0
-------------- Lines -------------- template, friend ....: 0, 0
Blank Lines .........: 7 namespace, package ..: 0, 0
Comment Lines .......: 3 inline ..............: 0
Total Logical Lines .: 30 Memory alloc, free ..: 0, 0
Total Physical Lines : 30 Memory new, delete ..: 0, 0
------------ Key Words ------------ ------------- Analysis ------------
Literal Strings .....: 0 Paren Count (,) .....: 6, 6
#include, import ....: 2, 0 Brace Count {,} .....: 3, 3
#define, typedef ....: 1, 0 Bracket Count [,] ...: 0, 0
const, enum .........: 0, 1 Chars/NBLine, Notices: 18, 0
do, while ...........: 0, 0 Code, eCode Lines ...: 66.7%, 53.3%
switch, default .....: 0, 0 Comment, Blank Lines : 10.0%, 23.3%
for .................: 0 Characters, Spaces ..: 81.0%, 19.0%
________________________________________________________________________
End of File: utility.h
~~ Total Metrics For 15 Files ~~
------------------------------------------------------------------------
~~ Total Project Summary ~~
LOC 1001 eLOC 714 lLOC 395 Comment 81 Lines 1275
------------------------------------------------------------------------
~~ Project Functional Metrics ~~
Sorted By Cyclomatic Complexity
Function: Seahunt::Game::Play
Complexity Param 0 Return 1 Cyclo Vg 10 Total 11
LOC 53 eLOC 31 lLOC 21 Comment 2 Lines 65
Function: Seahunt::Utility::UserEntry
Complexity Param 4 Return 1 Cyclo Vg 8 Total 13
LOC 37 eLOC 21 lLOC 15 Comment 0 Lines 37
Function: Seahunt::Ocean::Show
Complexity Param 0 Return 1 Cyclo Vg 6 Total 7
LOC 36 eLOC 20 lLOC 16 Comment 0 Lines 37
Function: main
Complexity Param 0 Return 1 Cyclo Vg 5 Total 6
LOC 31 eLOC 21 lLOC 19 Comment 4 Lines 44
Function: Seahunt::Ocean::Init
Complexity Param 0 Return 1 Cyclo Vg 5 Total 6
LOC 18 eLOC 8 lLOC 8 Comment 1 Lines 20
Function: Seahunt::Cell::Hit
Complexity Param 0 Return 1 Cyclo Vg 4 Total 5
LOC 27 eLOC 15 lLOC 9 Comment 0 Lines 27
Function: Seahunt::Ocean::TargetPlacement
Complexity Param 1 Return 1 Cyclo Vg 4 Total 6
LOC 28 eLOC 18 lLOC 13 Comment 0 Lines 28
Function: Seahunt::Game::Game
Complexity Param 0 Return 1 Cyclo Vg 3 Total 4
LOC 15 eLOC 9 lLOC 7 Comment 0 Lines 15
Function: Seahunt::Game::~Game
Complexity Param 0 Return 1 Cyclo Vg 3 Total 4
LOC 12 eLOC 6 lLOC 4 Comment 0 Lines 12
Function: Seahunt::Ocean::~Ocean
Complexity Param 0 Return 1 Cyclo Vg 3 Total 4
LOC 13 eLOC 7 lLOC 4 Comment 1 Lines 14
Function: Seahunt::Ocean::PlaceTarget
Complexity Param 0 Return 1 Cyclo Vg 3 Total 4
LOC 13 eLOC 7 lLOC 4 Comment 0 Lines 13
Function: Seahunt::Ocean::Hit
Complexity Param 0 Return 1 Cyclo Vg 3 Total 4
LOC 21 eLOC 15 lLOC 13 Comment 0 Lines 21
Function: Seahunt::Ocean::ShowTargets
Complexity Param 0 Return 1 Cyclo Vg 3 Total 4
LOC 17 eLOC 11 lLOC 5 Comment 0 Lines 17
Function: Seahunt::Sub::Hit
Complexity Param 0 Return 1 Cyclo Vg 3 Total 4
LOC 11 eLOC 5 lLOC 3 Comment 0 Lines 11
Function: Seahunt::Target::Hit
Complexity Param 0 Return 1 Cyclo Vg 3 Total 4
LOC 21 eLOC 11 lLOC 7 Comment 0 Lines 21
Function: Seahunt::Cell::Set_target
Complexity Param 1 Return 1 Cyclo Vg 2 Total 4
LOC 9 eLOC 5 lLOC 4 Comment 0 Lines 9
Function: Seahunt::Player::Hit
Complexity Param 1 Return 1 Cyclo Vg 2 Total 4
LOC 10 eLOC 6 lLOC 5 Comment 0 Lines 10
Function: Seahunt::Player::Show
Complexity Param 0 Return 1 Cyclo Vg 2 Total 3
LOC 18 eLOC 14 lLOC 10 Comment 0 Lines 18
Function: Seahunt::Cell::Cell
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 7 eLOC 5 lLOC 5 Comment 0 Lines 7
Function: Seahunt::Cell::Cell
Complexity Param 1 Return 1 Cyclo Vg 1 Total 3
LOC 7 eLOC 5 lLOC 5 Comment 0 Lines 7
Function: Seahunt::Cell::~Cell
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 2 eLOC 0 lLOC 0 Comment 1 Lines 3
Function: Seahunt::Cell::Set_xyz
Complexity Param 3 Return 1 Cyclo Vg 1 Total 5
LOC 3 eLOC 1 lLOC 3 Comment 0 Lines 3
Function: Seahunt::Cell::Get_x
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Cell::Get_y
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Cell::Get_z
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Cell::Get_target
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Ocean::Ocean
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 8 eLOC 6 lLOC 4 Comment 0 Lines 8
Function: Seahunt::Ocean::Get_target_count
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Ocean::Get_active_targets
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Ocean::Get_destroyed_targets
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: main
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 12 eLOC 10 lLOC 10 Comment 0 Lines 20
Function: Seahunt::Player::Player
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 7 eLOC 5 lLOC 5 Comment 0 Lines 7
Function: Seahunt::Player::Player
Complexity Param 1 Return 1 Cyclo Vg 1 Total 3
LOC 7 eLOC 5 lLOC 5 Comment 0 Lines 7
Function: Seahunt::Player::~Player
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 2 eLOC 0 lLOC 0 Comment 1 Lines 3
Function: Seahunt::Player::Score
Complexity Param 1 Return 1 Cyclo Vg 1 Total 3
LOC 6 eLOC 4 lLOC 2 Comment 0 Lines 6
Function: Seahunt::Player::Get_score
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Player::Get_number_hits
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Player::Get_number_tries
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Player::Get_name
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Player::Set_name
Complexity Param 1 Return 1 Cyclo Vg 1 Total 3
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: main
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 8 eLOC 6 lLOC 6 Comment 0 Lines 10
Function: main
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 6 eLOC 4 lLOC 4 Comment 0 Lines 6
Function: Seahunt::Sub::Create
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 11 eLOC 9 lLOC 9 Comment 0 Lines 11
Function: Seahunt::Sub::Create
Complexity Param 3 Return 1 Cyclo Vg 1 Total 5
LOC 4 eLOC 2 lLOC 2 Comment 0 Lines 4
Function: Seahunt::Sub::Sub
Complexity Param 3 Return 1 Cyclo Vg 1 Total 5
LOC 5 eLOC 3 lLOC 1 Comment 0 Lines 5
Function: Seahunt::Sub::~Sub
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 5 eLOC 3 lLOC 1 Comment 0 Lines 5
Function: Seahunt::Sub::Show
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 5 eLOC 3 lLOC 3 Comment 0 Lines 5
Function: main
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 11 eLOC 9 lLOC 9 Comment 0 Lines 15
Function: Seahunt::Sub::Abstract
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 1 eLOC 1 lLOC 0 Comment 0 Lines 1
Function: Seahunt::Target::Target
Complexity Param 3 Return 1 Cyclo Vg 1 Total 5
LOC 11 eLOC 9 lLOC 7 Comment 0 Lines 11
Function: Seahunt::Target::~Target
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 6 eLOC 4 lLOC 2 Comment 0 Lines 6
Function: Seahunt::Target::Get_status
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Target::Get_depth_limit
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Target::Get_name
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Target::Reset
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 4 eLOC 2 lLOC 2 Comment 0 Lines 4
Function: Seahunt::Target::Show
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 6 eLOC 4 lLOC 1 Comment 0 Lines 6
Function: main
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 12 eLOC 10 lLOC 10 Comment 0 Lines 16
Function: Seahunt::Target::Get_armor
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1
Function: Seahunt::Target::Target
Complexity Param 1 Return 1 Cyclo Vg 1 Total 3
LOC 2 eLOC 0 lLOC 0 Comment 2 Lines 4
Function: Seahunt::Utility::itos
Complexity Param 1 Return 1 Cyclo Vg 1 Total 3
LOC 7 eLOC 5 lLOC 5 Comment 1 Lines 7
Function: Seahunt::Utility::dtos
Complexity Param 1 Return 1 Cyclo Vg 1 Total 3
LOC 7 eLOC 5 lLOC 5 Comment 1 Lines 7
Function: Seahunt::Utility::UserEntry
Complexity Param 3 Return 1 Cyclo Vg 1 Total 5
LOC 6 eLOC 4 lLOC 4 Comment 1 Lines 6
Function: Seahunt::Utility::WaitKey
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 5 eLOC 3 lLOC 3 Comment 0 Lines 5
Function: Seahunt::Utility::ClearScreen
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Total: Functions
LOC 622 eLOC 374 lLOC 297 InCmp 93 CycloCmp 118
------------------------------------------------------------------------
~~ Project Functional Analysis ~~
Total Functions .......: 64
Total Physical Lines ..: 673 Total LOC .............: 622
Total eLOC ............: 374 Total lLOC ............: 297
Total Cyclomatic Comp. : 118 Total Interface Comp. .: 93
Total Parameters ......: 29 Total Return Points ...: 64
Total Comment Lines ...: 16 Total Blank Lines .....: 40
------ ----- ----- ------ ------ -----
Avg Physical Lines ....: 10.52
Avg LOC ...............: 9.72 Avg eLOC ..............: 5.84
Avg lLOC ..............: 4.64 Avg Cyclomatic Comp. ..: 1.84
Avg Interface Comp. ...: 1.45 Avg Parameters ........: 0.45
Avg Return Points .....: 1.00 Avg Comment Lines .....: 0.25
------ ----- ----- ------ ------ -----
Max LOC ...............: 53
Max eLOC ..............: 31 Max lLOC ..............: 21
Max Cyclomatic Comp. ..: 10 Max Interface Comp. ...: 5
Max Parameters ........: 4 Max Return Points .....: 1
Max Comment Lines .....: 4 Max Total Lines .......: 65
------ ----- ----- ------ ------ -----
Min LOC ...............: 1
Min eLOC ..............: 0 Min lLOC ..............: 0
Min Cyclomatic Comp. ..: 1 Min Interface Comp. ...: 1
Min Parameters ........: 0 Min Return Points .....: 1
Min Comment Lines .....: 0 Min Total Lines .......: 1
------------------------------------------------------------------------
~~ Project Class Metrics ~~
Sorted By Cyclomatic Complexity
Class: Seahunt::Ocean
Attributes Publ 0 Prot 0 Private 6 Total 6
Methods Publ 9 Prot 0 Private 2 Total 11
Complexity Param 1 Return 11 Cyclo Vg 31 Total 43
LOC 187 eLOC 117 lLOC 89 Comment 2 Lines 191
Class: Seahunt::Game
Attributes Publ 0 Prot 0 Private 3 Total 3
Methods Publ 4 Prot 0 Private 0 Total 4
Complexity Param 0 Return 3 Cyclo Vg 16 Total 19
LOC 94 eLOC 58 lLOC 40 Comment 2 Lines 106
Class: Seahunt::Cell
Attributes Publ 0 Prot 0 Private 5 Total 5
Methods Publ 9 Prot 0 Private 1 Total 10
Complexity Param 5 Return 10 Cyclo Vg 14 Total 29
LOC 87 eLOC 53 lLOC 45 Comment 7 Lines 89
Class: Seahunt::Player
Attributes Publ 0 Prot 0 Private 5 Total 5
Methods Publ 11 Prot 0 Private 0 Total 11
Complexity Param 4 Return 11 Cyclo Vg 13 Total 28
LOC 86 eLOC 58 lLOC 48 Comment 1 Lines 88
Class: Seahunt::Utility
Attributes Publ 0 Prot 0 Private 0 Total 0
Methods Publ 6 Prot 0 Private 0 Total 6
Complexity Param 9 Return 6 Cyclo Vg 13 Total 28
LOC 77 eLOC 49 lLOC 40 Comment 5 Lines 79
Class: Seahunt::Target
Attributes Publ 0 Prot 5 Private 0 Total 5
Methods Publ 10 Prot 0 Private 1 Total 11
Complexity Param 4 Return 10 Cyclo Vg 12 Total 26
LOC 87 eLOC 59 lLOC 38 Comment 8 Lines 101
Class: Seahunt::Sub
Inheritance: Target
Attributes Publ 0 Prot 0 Private 0 Total 0
Methods Publ 6 Prot 0 Private 1 Total 7
Complexity Param 6 Return 7 Cyclo Vg 9 Total 22
LOC 53 eLOC 35 lLOC 25 Comment 0 Lines 53
Total: All Classes
Attributes Publ 0 Prot 5 Private 19 Total 24
Methods Publ 55 Prot 0 Private 5 Total 60
Complexity Param 29 Return 58 Cyclo Vg 108 Total 195
LOC 671 eLOC 429 lLOC 325 Comment 25 Lines 707
------------------------------------------------------------------------
~~ Project Class Analysis ~~
Total Classes .........: 7 Total Methods .........: 60
Total Public Methods ..: 55 Total Public Attributes: 0
Total Protected Methods: 0 Total Protected Attrib.: 5
Total Private Methods .: 5 Total Private Attrib. .: 19
Total Physical Lines ..: 707 Total LOC .............: 671
Total eLOC ............: 429 Total lLOC ............: 325
Total Cyclomatic Comp. : 108 Total Interface Comp. .: 87
Total Parameters ......: 29 Total Return Points ...: 58
Total Comment Lines ...: 25 Total Blank Lines .....: 22
------ ----- ----- ------ ------ -----
Avg Physical Lines ....: 101.00 Avg Methods ...........: 8.57
Avg Public Methods ....: 7.86 Avg Public Attributes .: 0.00
Avg Protected Methods .: 0.00 Avg Protected Arrtib. .: 0.71
Avg Private Methods ...: 0.71 Avg Private Attributes : 2.71
Avg LOC ...............: 95.86 Avg eLOC ..............: 61.29
Avg lLOC ..............: 46.43 Avg Cyclomatic Comp. ..: 15.43
Avg Interface Comp. ...: 12.43 Avg Parameters ........: 4.14
Avg Return Points .....: 8.29 Avg Comment Lines .....: 3.57
------ ----- ----- ------ ------ -----
Max Physical Lines ....: 191 Max Methods ...........: 11
Max Public Methods ....: 11 Max Public Attributes .: 0
Max Protected Methods .: 0 Max Protected Arrtib. .: 5
Max Private Methods ...: 2 Max Private Attributes : 6
Max LOC ...............: 187 Max eLOC ..............: 117
Max lLOC ..............: 89 Max Cyclomatic Comp. ..: 31
Max Interface Comp. ...: 15 Max Parameters ........: 9
Max Return Points .....: 11 Max Comment Lines .....: 8
------ ----- ----- ------ ------ -----
Min Physical Lines ....: 53 Min Methods ...........: 4
Min Public Methods ....: 4 Min Public Attributes .: 0
Min Protected Methods .: 0 Min Protected Arrtib. .: 0
Min Private Methods ...: 0 Min Private Attributes : 0
Min LOC ...............: 53 Min eLOC ..............: 35
Min lLOC ..............: 25 Min Cyclomatic Comp. ..: 9
Min Interface Comp. ...: 3 Min Parameters ........: 0
Min Return Points .....: 3 Min Comment Lines .....: 0
------------------------------------------------------------------------
~~ Project Namespace/Package Metrics ~~
Sorted By Cyclomatic Complexity
Namespace/Package: Seahunt
Total Classses 7 Total Functions 60 Avg Func/Class 8.57
Attributes Publ 0 Prot 5 Private 19 Total 24
Methods Publ 55 Prot 0 Private 5 Total 60
Complexity Param 29 Return 58 Cyclo Vg 108 Total 195
LOC 671 eLOC 429 lLOC 325 Comment 25 Lines 707
Total: All Namespaces/Packages
Total Classses 7 Total Functions 60 Avg Func/Class 8.57
Attributes Publ 0 Prot 5 Private 19 Total 24
Methods Publ 55 Prot 0 Private 5 Total 60
Complexity Param 29 Return 58 Cyclo Vg 108 Total 195
LOC 671 eLOC 429 lLOC 325 Comment 25 Lines 707
------------------------------------------------------------------------
~~ Project Namespace/Package Analysis ~~
Total Namespace/Package: 1
Total Classes .........: 7 Total Methods .........: 60
Total Public Methods ..: 55 Total Public Attributes: 0
Total Protected Methods: 0 Total Protected Attrib.: 5
Total Private Methods .: 5 Total Private Attrib. .: 19
Total Physical Lines ..: 707 Total LOC .............: 671
Total eLOC ............: 429 Total lLOC ............: 325
Total Cyclomatic Comp. : 108 Total Interface Comp. .: 87
Total Parameters ......: 29 Total Return Points ...: 58
Total Comment Lines ...: 25 Total Blank Lines .....: 22
------ ----- ----- ------ ------ -----
Avg Classes ...........: 7.00 Avg Methods ...........: 60.00
Avg Public Methods ....: 55.00 Avg Public Attributes .: 0.00
Avg Protected Methods .: 0.00 Avg Protected Arrtib. .: 5.00
Avg Private Methods ...: 5.00 Avg Private Attributes : 19.00
Avg LOC ...............: 671.00 Avg eLOC ..............: 429.00
Avg lLOC ..............: 325.00 Avg Cyclomatic Comp. ..: 108.00
Avg Interface Comp. ...: 87.00 Avg Parameters ........: 29.00
Avg Return Points .....: 58.00 Avg Comment Lines .....: 25.00
------ ----- ----- ------ ------ -----
Max Classes ...........: 7 Max Methods ...........: 60
Max Public Methods ....: 55 Max Public Attributes .: 0
Max Protected Methods .: 0 Max Protected Arrtib. .: 5
Max Private Methods ...: 5 Max Private Attributes : 19
Max LOC ...............: 671 Max eLOC ..............: 429
Max lLOC ..............: 325 Max Cyclomatic Comp. ..: 108
Max Interface Comp. ...: 87 Max Parameters ........: 29
Max Return Points .....: 58 Max Comment Lines .....: 25
------ ----- ----- ------ ------ -----
Min Classes ...........: 7 Min Methods ...........: 60
Min Public Methods ....: 55 Min Public Attributes .: 0
Min Protected Methods .: 0 Min Protected Arrtib. .: 5
Min Private Methods ...: 5 Min Private Attributes : 19
Min LOC ...............: 671 Min eLOC ..............: 429
Min lLOC ..............: 325 Min Cyclomatic Comp. ..: 108
Min Interface Comp. ...: 87 Min Parameters ........: 29
Min Return Points .....: 58 Min Comment Lines .....: 25
------------------------------------------------------------------------
~~ Project Quality Profile ~~
Type Count Percent Quality Notice
________________________________________________________________________
1 3 3.03 Physical line length exceeds 80 characters
7 7 7.07 Pre-increment operator '++' identified
16 5 5.05 Function white space less than 10.0%
17 56 56.57 Function comment content less than 10.0%
20 11 11.11 File comment content less 10.0%
31 4 4.04 Class comments are less than 10.0%
34 4 4.04 Class specification contains a pointer to data
36 5 5.05 Class specification contains protected data
43 3 3.03 Keyword 'continue' has been identified
44 1 1.01 Keyword 'break' identified outside a 'switch' structure
________________________________________________________________________
99 100.00 Total Quality Notices
~~ Quality Notice Density ~~
Basis: 1000 (K)
Quality Notices/K LOC = 98.9 ( 9.89%)
Quality Notices/K eLOC = 138.7 ( 13.87%)
Quality Notices/K lLOC = 250.6 ( 25.06%)
------------------------------------------------------------------------
~~ Project Keywords and Metrics ~~
--------------- LOC --------------- case, break .........: 4, 4
Lines of Code (LOC) .: 1001 if, else ............: 30, 10
Lines of just { or } : 287 goto, return ........: 0, 32
Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0
Effective LOC (eLOC) : 714 macros, struct, union: 0, 0, 0
Code Statement (lLOC): 395 class, interface ....: 0, 0
-------------- Lines -------------- template, friend ....: 0, 0
Blank Lines .........: 215 namespace, package ..: 1, 0
Comment Lines .......: 81 func, virtual, inline: 64, 4, 3
Total Logical Lines .: 1297 Memory alloc, free ..: 0, 0
Total Physical Lines : 1275 Memory new, delete ..: 4, 3
------------ Key Words ------------ ------------- Analysis ------------
Literal Strings .....: 114 Paren Count (,) .....: 327, 327
#include, import ....: 37, 0 Brace Count {,} .....: 161, 161
#define, typedef ....: 7, 0 Bracket Count [,] ...: 79, 79
const, enum .........: 20, 6 Chars/NBLine, Notices: 14, 99
do, while ...........: 1, 3 Code, eCode Lines ...: 77.2%, 55.1%
switch, default .....: 1, 1 Comment, Blank Lines : 6.2%, 16.6%
for .................: 15 Characters, Spaces ..: 76.0%, 24.0%
------------------------------------------------------------------------
~~ Memory Allocation/De-allocation Summary ~~
Memory alloc count ....: 0 Memory free count .....: 0
Memory new count ......: 4 Memory delete count ...: 3
------------------------------------------------------------------------
~~ Estimation Analysis ~~
Functional Basis
Total Function Count ..: 64
Total Function LOC ....: 622 Total Function eLOC ...: 374
Total Function lLOC ...: 297 Total Function Comments: 16
Total Func. Parameters : 29 Total Function Returns : 64
Total Cylco. Complexity: 118 Total Function Complex.: 211
LOC Estimation Factors
Lines of Code, LOC, per Function ...........................: 9.72
Lines of Code, LOC, per Function Input Parameter ...........: 21.45
Lines of Code, LOC, per Function Return State ..............: 9.72
LOC per Function Interface Complexity (Parameters + Return) : 6.69
LOC per Function Cyclomatic Complexity .....................: 5.27
LOC per Function Complexity (Cyclomatic+Interface Complex.) : 2.95
eLOC Estimation Factors
Effective Lines of Code, eLOC, per Function ................: 5.84
Effective Lines of Code, eLOC, per Function Input Parameter : 12.90
Effective Lines of Code, eLOC, per Function Return State ...: 5.84
eLOC per Function Interface Complexity (Parameters + Return): 4.02
eLOC per Function Cyclomatic Complexity ....................: 3.17
eLOC per Function Complexity (Cyclomatic+Interface Complex.): 1.77
lLOC Estimation Factors
Logical Lines of Code, lLOC, per Function ..................: 4.64
Logical Lines of Code, lLOC, per Function Input Parameter ..: 10.24
Logical Lines of Code, lLOC, per Function Return State .....: 4.64
llOC per Function Interface Complexity (Parameters + Return): 3.19
lLOC per Function Cyclomatic Complexity ....................: 2.52
lLOC per Function Complexity (Cyclomatic+Interface Complex.): 1.41
------------------------------------------------------------------------
~~ File Summary ~~
C Source Files *.c ....: 0 C/C++ Include Files *.h: 7
C++ Source Files *.c* .: 8 C++ Include Files *.h* : 0
Other Source Files ....: 0 Java Source File *.jav*: 0
Total File Count ......: 15
________________________________________________________________________
~~ Performance Benchmark ~~
A process benchmark has been determined for this metrics analysis.
The elapsed time for processing is effected by the I/O response of
standard out or the redirection device. The fastest RSM benchmarks
result from redirecting the output to a file on a local file system.
The benchmark is intended for comparative purposes and is not designed
to yield a definitive result.
Process Timer
-------------------------------
Elapsed Time : 0.110 s
Performance Benchmark: 11591 Physical Lines Processed/s
: 183373 Characters Parsed/s
________________________________________________________________________