Resource Standard Metrics for C, C++ and Java
Visual Metrics Version 6.01
License Type: Shareware Evaluation License
Licensed To : Shareware End User - Distribute Freely
License No. : SW1380 License Date: Sat Dec 05 12:31:28 1998
(C) 2001 M Squared Technologies Run Date: Fri Jun 22 19:31:57 2001
________________________________________________________________________
~~ Function Metrics ~~
~~ Class/Struct Metrics ~~
~~ Complexity Analysis ~~
~~ Quality Analysis ~~
~~ Memory Allocation/De-allocation Metrics ~~
File: cell.h
Date: Fri Jun 22 19:31:58 2001 File Size: 829 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 16 -------------------------
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 19 eLOC 17 lLOC 15 Comment 6 Lines 19
-------------------------- 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 ....: 1, 0
-------------- Lines -------------- template, friend ....: 0, 0
Blank Lines .........: 9 namespace, package ..: 1, 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.h
Date: Fri Jun 22 19:31:58 2001 File Size: 400 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 15 -------------------------
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 1%.
Class: Seahunt::Game
Attributes Publ 0 Prot 0 Private 3 Total 3
Methods Publ 4 Prot 0 Private 0 Total 4
LOC 13 eLOC 11 lLOC 8 Comment 0 Lines 12
-------------------------- Class End Line: 27 --------------------------
Namespace End: Seahunt
------------------------------------------------------------------------
~~ 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 ....: 1, 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, 3
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.h
Date: Fri Jun 22 19:31:58 2001 File Size: 825 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 19 -------------------------
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 1%.
Class: Seahunt::Ocean
Attributes Publ 0 Prot 0 Private 6 Total 6
Methods Publ 9 Prot 0 Private 2 Total 11
LOC 23 eLOC 21 lLOC 19 Comment 0 Lines 22
-------------------------- 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 ....: 1, 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.h
Date: Fri Jun 22 19:31:58 2001 File Size: 666 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 17 -------------------------
Class: Seahunt::Player
NOTICE #31: Class comments, 0.0% are less than 1%.
Class: Seahunt::Player
Attributes Publ 0 Prot 0 Private 5 Total 5
Methods Publ 11 Prot 0 Private 0 Total 11
LOC 20 eLOC 18 lLOC 16 Comment 0 Lines 20
-------------------------- Class End Line: 37 --------------------------
Namespace End: Seahunt
------------------------------------------------------------------------
~~ 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 ....: 1, 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, 1
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: sub.h
Date: Fri Jun 22 19:31:58 2001 File Size: 456 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 15 -------------------------
Class: Seahunt::Sub
Inheritance: Target
------------------------ Function Begin Line: 22 -----------------------
Function: Seahunt::Sub::Abstract
NOTICE #17: Function comments, 0.0% are less than 1%.
NOTICE #16: Function white space, 0.0% is less than 1%.
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 1%.
Class: Seahunt::Sub
Attributes Publ 0 Prot 0 Private 0 Total 0
Methods Publ 6 Prot 0 Private 1 Total 7
LOC 11 eLOC 9 lLOC 6 Comment 0 Lines 10
-------------------------- Class End Line: 25 --------------------------
Namespace End: Seahunt
------------------------------------------------------------------------
~~ 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 ....: 1, 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, 3
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 ..: 81.1%, 18.9%
________________________________________________________________________
End of File: sub.h
File: target.h
Date: Fri Jun 22 19:31:58 2001 File Size: 1474 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 29 -------------------------
Class: Seahunt::Target
------------------------ Function Begin Line: 47 -----------------------
Function: Seahunt::Target::Get_armor
NOTICE #16: Function white space, 0.0% is less than 1%.
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 29 eLOC 25 lLOC 16 Comment 8 Lines 42
-------------------------- 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 ....: 1, 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.h
Date: Fri Jun 22 19:31:58 2001 File Size: 566 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 13 -------------------------
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 11 eLOC 9 lLOC 7 Comment 2 Lines 12
-------------------------- 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 ....: 1, 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
File: cell.cpp
Date: Fri Jun 22 19:31:58 2001 File Size: 2636 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------ Function Begin Line: 14 -----------------------
Function: Seahunt::Cell::Cell
NOTICE #17: Function comments, 0.0% are less than 1%.
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 1%.
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 1%.
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 1%.
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 1%.
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 1%.
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 1%.
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 1%.
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 1%.
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 ------------------------
------------------------------------------------------------------------
~~ 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 ..: 0, 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, 9
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: game.cpp
Date: Fri Jun 22 19:31:58 2001 File Size: 1604 Bytes
________________________________________________________________________
Namespace Begin: Seahunt
------------------------ Function Begin Line: 9 ------------------------
Function: Seahunt::Game::Game
NOTICE #17: Function comments, 0.0% are less than 1%.
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 1%.
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.
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
------------------------------------------------------------------------
~~ 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, 5
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: ocean.cpp
Date: Fri Jun 22 19:31:58 2001 File Size: 5088 Bytes
________________________________________________________________________
Namespace Begin: Anonymous - File Scope
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 1%.
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.
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.
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 1%.
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 #17: Function comments, 0.0% are less than 1%.
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 1%.
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 1%.
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 1%.
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 1%.
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 1%.
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 1%.
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 1%.
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 ------------------------
------------------------------------------------------------------------
~~ 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, 16
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
~~ Total Metrics For 10 Files ~~
------------------------------------------------------------------------
~~ Total Project Summary ~~
LOC 635 eLOC 455 lLOC 259 Comment 66 Lines 823
------------------------------------------------------------------------
~~ 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::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::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::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::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::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
Total: Functions
LOC 357 eLOC 209 lLOC 162 InCmp 36 CycloCmp 70
------------------------------------------------------------------------
~~ Project Functional Analysis ~~
Total Functions .......: 29
Total Physical Lines ..: 397 Total LOC .............: 357
Total eLOC ............: 209 Total lLOC ............: 162
Total Cyclomatic Comp. : 70 Total Interface Comp. .: 36
Total Parameters ......: 7 Total Return Points ...: 29
Total Comment Lines ...: 12 Total Blank Lines .....: 30
------ ----- ----- ------ ------ -----
Avg Physical Lines ....: 13.69
Avg LOC ...............: 12.31 Avg eLOC ..............: 7.21
Avg lLOC ..............: 5.59 Avg Cyclomatic Comp. ..: 2.41
Avg Interface Comp. ...: 1.24 Avg Parameters ........: 0.24
Avg Return Points .....: 1.00 Avg Comment Lines .....: 0.41
------ ----- ----- ------ ------ -----
Max LOC ...............: 53
Max eLOC ..............: 31 Max lLOC ..............: 21
Max Cyclomatic Comp. ..: 10 Max Interface Comp. ...: 4
Max Parameters ........: 3 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/Struct 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 186 eLOC 116 lLOC 89 Comment 2 Lines 189
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 93 eLOC 57 lLOC 40 Comment 2 Lines 104
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 86 eLOC 52 lLOC 45 Comment 7 Lines 87
Class: Seahunt::Target
Attributes Publ 0 Prot 5 Private 0 Total 5
Methods Publ 10 Prot 0 Private 1 Total 11
Complexity Param 1 Return 2 Cyclo Vg 2 Total 5
LOC 29 eLOC 25 lLOC 16 Comment 8 Lines 42
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 0 Return 1 Cyclo Vg 1 Total 2
LOC 11 eLOC 9 lLOC 6 Comment 0 Lines 10
Class: Seahunt::Player
Attributes Publ 0 Prot 0 Private 5 Total 5
Methods Publ 11 Prot 0 Private 0 Total 11
Complexity Param 0 Return 0 Cyclo Vg 0 Total 0
LOC 20 eLOC 18 lLOC 16 Comment 0 Lines 20
Class: Seahunt::Utility
Attributes Publ 0 Prot 0 Private 0 Total 0
Methods Publ 6 Prot 0 Private 0 Total 6
Complexity Param 0 Return 0 Cyclo Vg 0 Total 0
LOC 11 eLOC 9 lLOC 7 Comment 2 Lines 12
Total: All Classes/Structs
Attributes Publ 0 Prot 5 Private 19 Total 24
Methods Publ 55 Prot 0 Private 5 Total 60
Complexity Param 7 Return 27 Cyclo Vg 64 Total 98
LOC 436 eLOC 286 lLOC 219 Comment 21 Lines 464
------------------------------------------------------------------------
~~ Project Class/Struct Analysis ~~
Total Classes/Structs .: 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 ..: 464 Total LOC .............: 436
Total eLOC ............: 286 Total lLOC ............: 219
Total Cyclomatic Comp. : 64 Total Interface Comp. .: 34
Total Parameters ......: 7 Total Return Points ...: 27
Total Comment Lines ...: 21 Total Blank Lines .....: 22
------ ----- ----- ------ ------ -----
Avg Physical Lines ....: 66.29 Avg Methods ...........: 8.57
Avg Public Methods ....: 7.86 Avg Public Attributes .: 0.00
Avg Protected Methods .: 0.00 Avg Protected Attrib. .: 0.71
Avg Private Methods ...: 0.71 Avg Private Attributes : 2.71
Avg LOC ...............: 62.29 Avg eLOC ..............: 40.86
Avg lLOC ..............: 31.29 Avg Cyclomatic Comp. ..: 9.14
Avg Interface Comp. ...: 4.86 Avg Parameters ........: 1.00
Avg Return Points .....: 3.86 Avg Comment Lines .....: 3.00
------ ----- ----- ------ ------ -----
Max Physical Lines ....: 189 Max Methods ...........: 11
Max Public Methods ....: 11 Max Public Attributes .: 0
Max Protected Methods .: 0 Max Protected Attrib. .: 5
Max Private Methods ...: 2 Max Private Attributes : 6
Max LOC ...............: 186 Max eLOC ..............: 116
Max lLOC ..............: 89 Max Cyclomatic Comp. ..: 31
Max Interface Comp. ...: 15 Max Parameters ........: 5
Max Return Points .....: 11 Max Comment Lines .....: 8
------ ----- ----- ------ ------ -----
Min Physical Lines ....: 10 Min Methods ...........: 4
Min Public Methods ....: 4 Min Public Attributes .: 0
Min Protected Methods .: 0 Min Protected Attrib. .: 0
Min Private Methods ...: 0 Min Private Attributes : 0
Min LOC ...............: 11 Min eLOC ..............: 9
Min lLOC ..............: 6 Min Cyclomatic Comp. ..: 0
Min Interface Comp. ...: 0 Min Parameters ........: 0
Min Return Points .....: 0 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 7 Return 27 Cyclo Vg 64 Total 98
LOC 436 eLOC 286 lLOC 219 Comment 21 Lines 464
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 7 Return 27 Cyclo Vg 64 Total 98
LOC 436 eLOC 286 lLOC 219 Comment 21 Lines 464
------------------------------------------------------------------------
~~ Project Namespace/Package Analysis ~~
Total Namespace/Package: 1
Total Classes/Structs .: 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 ..: 464 Total LOC .............: 436
Total eLOC ............: 286 Total lLOC ............: 219
Total Cyclomatic Comp. : 64 Total Interface Comp. .: 34
Total Parameters ......: 7 Total Return Points ...: 27
Total Comment Lines ...: 21 Total Blank Lines .....: 22
------ ----- ----- ------ ------ -----
Avg Classes/Structs ...: 7.00 Avg Methods ...........: 60.00
Avg Public Methods ....: 55.00 Avg Public Attributes .: 0.00
Avg Protected Methods .: 0.00 Avg Protected Attrib. .: 5.00
Avg Private Methods ...: 5.00 Avg Private Attributes : 19.00
Avg LOC ...............: 436.00 Avg eLOC ..............: 286.00
Avg lLOC ..............: 219.00 Avg Cyclomatic Comp. ..: 64.00
Avg Interface Comp. ...: 34.00 Avg Parameters ........: 7.00
Avg Return Points .....: 27.00 Avg Comment Lines .....: 21.00
------ ----- ----- ------ ------ -----
Max Classes/Struct ....: 7 Max Methods ...........: 60
Max Public Methods ....: 55 Max Public Attributes .: 0
Max Protected Methods .: 0 Max Protected Attrib. .: 5
Max Private Methods ...: 5 Max Private Attributes : 19
Max LOC ...............: 436 Max eLOC ..............: 286
Max lLOC ..............: 219 Max Cyclomatic Comp. ..: 64
Max Interface Comp. ...: 34 Max Parameters ........: 7
Max Return Points .....: 27 Max Comment Lines .....: 21
------ ----- ----- ------ ------ -----
Min Classes/Structs ...: 7 Min Methods ...........: 60
Min Public Methods ....: 55 Min Public Attributes .: 0
Min Protected Methods .: 0 Min Protected Attrib. .: 5
Min Private Methods ...: 5 Min Private Attributes : 19
Min LOC ...............: 436 Min eLOC ..............: 286
Min lLOC ..............: 219 Min Cyclomatic Comp. ..: 64
Min Interface Comp. ...: 34 Min Parameters ........: 7
Min Return Points .....: 27 Min Comment Lines .....: 21
------------------------------------------------------------------------
~~ Project Quality Profile ~~
Type Count Percent Quality Notice
________________________________________________________________________
7 6 13.04 Pre-increment operator '++' identified
16 2 4.35 Function white space less than 1.0%
17 22 47.83 Function comment content less than 1.0%
31 4 8.70 Class/Struct comments are less than 1.0%
34 4 8.70 Class specification contains a pointer to data
36 5 10.87 Class specification contains protected data
43 3 6.52 Keyword 'continue' has been identified
________________________________________________________________________
46 100.00 Total Quality Notices
~~ Quality Notice Density ~~
Basis: 1000 (K)
Quality Notices/K LOC = 72.4 ( 7.24%)
Quality Notices/K eLOC = 101.1 ( 10.11%)
Quality Notices/K lLOC = 177.6 ( 17.76%)
------------------------------------------------------------------------
~~ Project Keywords and Metrics ~~
--------------- LOC --------------- case, break .........: 4, 3
Lines of Code (LOC) .: 635 if, else ............: 21, 6
Lines of just { or } : 180 goto, return ........: 0, 13
Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0
Effective LOC (eLOC) : 455 macros, struct, union: 0, 0, 0
Code Statement (lLOC): 259 class, interface ....: 7, 0
-------------- Lines -------------- template, friend ....: 0, 0
Blank Lines .........: 138 namespace, package ..: 1, 0
Comment Lines .......: 66 func, virtual, inline: 29, 4, 3
Total Logical Lines .: 839 Memory alloc, free ..: 0, 0
Total Physical Lines : 823 Memory new, delete ..: 2, 3
------------ Key Words ------------ ------------- Analysis ------------
Literal Strings .....: 70 Paren Count (,) .....: 201, 201
#include, import ....: 27, 0 Brace Count {,} .....: 103, 103
#define, typedef ....: 7, 0 Bracket Count [,] ...: 73, 73
const, enum .........: 10, 6 Chars/NBLine, Notices: 14, 46
do, while ...........: 0, 2 Code, eCode Lines ...: 75.7%, 54.2%
switch, default .....: 1, 1 Comment, Blank Lines : 7.9%, 16.4%
for .................: 14 Characters, Spaces ..: 74.3%, 25.7%
------------------------------------------------------------------------
~~ Memory Allocation/De-allocation Summary ~~
Memory alloc count ....: 0 Memory free count .....: 0
Memory new count ......: 2 Memory delete count ...: 3
------------------------------------------------------------------------
~~ Estimation Analysis ~~
Functional Basis
Total Function Count ..: 29
Total Function LOC ....: 357 Total Function eLOC ...: 209
Total Function lLOC ...: 162 Total Function Comments: 12
Total Func. Parameters : 7 Total Function Returns : 29
Total Cylco. Complexity: 70 Total Function Complex.: 106
LOC Estimation Factors
Lines of Code, LOC, per Function ...........................: 12.31
Lines of Code, LOC, per Function Input Parameter ...........: 51.00
Lines of Code, LOC, per Function Return State ..............: 12.31
LOC per Function Interface Complexity (Parameters + Return) : 9.92
LOC per Function Cyclomatic Complexity .....................: 5.10
LOC per Function Complexity (Cyclomatic+Interface Complex.) : 3.37
eLOC Estimation Factors
Effective Lines of Code, eLOC, per Function ................: 7.21
Effective Lines of Code, eLOC, per Function Input Parameter : 29.86
Effective Lines of Code, eLOC, per Function Return State ...: 7.21
eLOC per Function Interface Complexity (Parameters + Return): 5.81
eLOC per Function Cyclomatic Complexity ....................: 2.99
eLOC per Function Complexity (Cyclomatic+Interface Complex.): 1.97
lLOC Estimation Factors
Logical Lines of Code, lLOC, per Function ..................: 5.59
Logical Lines of Code, lLOC, per Function Input Parameter ..: 23.14
Logical Lines of Code, lLOC, per Function Return State .....: 5.59
llOC per Function Interface Complexity (Parameters + Return): 4.50
lLOC per Function Cyclomatic Complexity ....................: 2.31
lLOC per Function Complexity (Cyclomatic+Interface Complex.): 1.53
------------------------------------------------------------------------
~~ File Summary ~~
C Source Files *.c ....: 0 C/C++ Include Files *.h: 7
C++ Source Files *.c* .: 3 C++ Include Files *.h* : 0
Other Source Files ....: 0 Java Source File *.jav*: 0
Total File Count ......: 10
Shareware evaluation licenses process only files.
Paid licenses enable wild cards and file/project totals.
________________________________________________________________________
~~ 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.020 s
Performance Benchmark: 41150 Physical Lines Processed/s
: 686200 Characters Parsed/s
________________________________________________________________________