Confidential - Acme Engineering
Resource Standard Metrics™ for C, C++, C# and Java
Version 7.75 - mSquaredTechnologies.com
License Type: Shareware Evaluation License
Licensed To : Shareware End User - Distribute Freely
License No. : SW1380 License Date: Dec 05, 1998
Build Date : Aug 16 2009 Run Date: Aug 16, 2009
©1996-2009 M Squared Technologies LLC™
________________________________________________________________________
License File: C:\Program Files\MSquared\M2 RSM\rsm.lic
Config. File: C:\Program Files\MSquared\M2 RSM\rsm.cfg
Command Line: -H -SClass Methods and Attributes Report -fm -o cell.h gam
e.h ocean.h player.h sub.h target.h timer.h utility.h
Class Methods and Attributes Report
~~ Function Metrics ~~
~~ Class/Struct Metrics ~~
File: cell.h
________________________________________________________________________
Namespace Begin: Seahunt
Class Method Public : 18 | Seahunt::Cell::Cell()
Class Method Public : 19 | Seahunt::Cell::~Cell()
Class Method Public : 20 | Seahunt::Cell::Set_xyz(int x=0, int y=0, int z=0)
Class Method Public : 21 | Seahunt::Cell::Get_x(void)
Class Method Public : 22 | Seahunt::Cell::Get_y(void) Non-ANSI Parameter Construct
Class Method Public : 23 | Seahunt::Cell::Get_z(void) Non-ANSI Parameter Construct
Class Method Public : 24 | Seahunt::Cell::Set_target(Target * t) Non-ANSI Parameter Construct
Class Method Public : 25 | Seahunt::Cell::Get_target(void) Non-ANSI Parameter Construct
Class Method Public : 26 | Seahunt::Cell::Hit(void) Non-ANSI Parameter Construct
Class Method Private : 29 | Seahunt::Cell::Cell(const Cell & c) Non-ANSI Parameter Construct
Class Data Private : 30 | bool hit_status; // true if the cell is hit
Class Data Private : 31 | Target * target; // assigned to the cell
Class Data Private : 32 | int x;
Class Data Private : 33 | int y;
Class Data Private : 34 | int z; // depth of the ocean
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
Namespace End: Seahunt
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 27 eLOC 23 lLOC 16 Comment 13 Lines 41
________________________________________________________________________
End of File: cell.h
File: game.h
________________________________________________________________________
Namespace Begin: Seahunt
Class Method Public : 17 | Seahunt::Game::Game()
Class Method Public : 18 | Seahunt::Game::~Game()
Class Method Public : 19 | Seahunt::Game::Play(void)
Class Method Public : 20 | Seahunt::Game::Get_status(void)
Class Data Private : 22 | Player * player;
Class Data Private : 23 | Ocean * ocean;
Class Data Private : 24 | bool status;
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
Namespace End: Seahunt
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 23 eLOC 19 lLOC 9 Comment 1 Lines 31
________________________________________________________________________
End of File: game.h
File: ocean.h
________________________________________________________________________
Namespace Begin: Seahunt
Class Method Public : 21 | Seahunt::Ocean::Ocean()
Class Method Public : 22 | Seahunt::Ocean::~Ocean()
Class Method Public : 23 | Seahunt::Ocean::PlaceTarget(void)
Class Method Public : 24 | Seahunt::Ocean::Hit(void)
Class Method Public : 25 | Seahunt::Ocean::Show(void)
Class Method Public : 26 | Seahunt::Ocean::ShowTargets(void)
Class Method Public : 27 | Seahunt::Ocean::Get_target_count(void)
Class Method Public : 28 | Seahunt::Ocean::Get_active_targets(void) Non-ANSI Parameter Construct
Class Method Public : 29 | Seahunt::Ocean::Get_destroyed_targets(void) Non-ANSI Parameter Construct
Class Data Private : 33 | std::string name;
Class Data Private : 34 | int target_count;
Class Data Private : 35 | int active_targets;
Class Data Private : 36 | int destroyed_targets;
Class Data Private : 37 | Cell ocean[ROW][COL][DEPTH];
Class Data Private : 38 | Target * targets[MAX_TARGET];
Class Method Private : 39 | Seahunt::Ocean::TargetPlacement(Target * t) Non-ANSI Parameter Construct
Class Method Private : 40 | Seahunt::Ocean::Init(void) Non-ANSI Parameter Construct
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
Namespace End: Seahunt
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 34 eLOC 30 lLOC 20 Comment 5 Lines 47
________________________________________________________________________
End of File: ocean.h
File: player.h
________________________________________________________________________
Namespace Begin: Seahunt
Class Method Public : 19 | Seahunt::Player::Player()
Class Method Public : 20 | Seahunt::Player::Player(std::string name)
Class Method Public : 21 | Seahunt::Player::~Player()
Class Method Public : 22 | Seahunt::Player::Hit(Ocean * ocean)
Class Method Public : 23 | Seahunt::Player::Score(Ocean * ocean)
Class Method Public : 24 | Seahunt::Player::Show(void)
Class Method Public : 25 | Seahunt::Player::Get_score(void) Non-ANSI Parameter Construct
Class Method Public : 26 | Seahunt::Player::Get_number_hits(void) Non-ANSI Parameter Construct
Class Method Public : 27 | Seahunt::Player::Get_number_tries(void) Non-ANSI Parameter Construct
Class Method Public : 28 | Seahunt::Player::Get_name(void) Non-ANSI Parameter Construct
Class Method Public : 29 | Seahunt::Player::Set_name(std::string n) Non-ANSI Parameter Construct
Class Data Private : 32 | std::string name;
Class Data Private : 33 | int score;
Class Data Private : 34 | int number_tries;
Class Data Private : 35 | int number_hits;
Class Data Private : 36 | time_t begintime;
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
Namespace End: Seahunt
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 32 eLOC 28 lLOC 17 Comment 1 Lines 41
________________________________________________________________________
End of File: player.h
File: sub.h
________________________________________________________________________
Namespace Begin: Seahunt
Class Method Public : 17 | Seahunt::Sub::Create(void)
Class Method Public : 18 | Seahunt::Sub::Create(std::string name, int armor, int maxdepth)
Class Method Public : 19 | Seahunt::Sub::~Sub()
Class Method Public : 20 | Seahunt::Sub::Show(void)
Class Method Public : 21 | Seahunt::Sub::Hit(void) Non-ANSI Parameter Construct
Class Method Public : 22 | Seahunt::Sub::Abstract(void) Non-ANSI Parameter Construct
Class Method Private : 24 | Seahunt::Sub::Sub(std::string name, int armor, int maxdepth)
Class: Seahunt::Sub
Inheritance: Target
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
Namespace End: Seahunt
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 21 eLOC 17 lLOC 7 Comment 2 Lines 29
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count....: 1
Total Function LOC.....: 1 Total Function Pts LOC : 0.0
Total Function eLOC....: 1 Total Function Pts eLOC: 0.0
Total Function lLOC....: 0 Total Function Pts lLOC: 0.0
Total Function Params .: 1 Total Function Return .: 1
Total Cyclo Complexity : 1 Total Function Complex.: 3
------ ----- ----- ------ ------ -----
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
________________________________________________________________________
End of File: sub.h
File: target.h
________________________________________________________________________
Namespace Begin: Seahunt
Class Data Public : 35 | int depth = MAX_DEPTH );
Class Method Public : 36 | Seahunt::Target::~Target()
Class Method Public : 39 | Seahunt::Target::Hit(void)
Class Method Public : 40 | Seahunt::Target::Show(void)
Class Method Public : 43 | Seahunt::Target::Get_status(void) Non-ANSI Parameter Construct
Class Method Public : 44 | Seahunt::Target::Get_name(void) Non-ANSI Parameter Construct
Class Method Public : 45 | Seahunt::Target::Get_depth_limit(void) Non-ANSI Parameter Construct
Class Method Public : 46 | Seahunt::Target::Get_armor(void) Non-ANSI Parameter Construct
Class Method Public : 47 | Seahunt::Target::Reset(void)
Class Method Public : 53 | Seahunt::Target::Abstract(void)
Class Data Protected : 57 | TargetStatus status;
Class Data Protected : 58 | std::string name;
Class Data Protected : 59 | int armor;
Class Data Protected : 60 | int hits;
Class Data Protected : 61 | int depth_limit;
Class Method Private : 65 | Seahunt::Target::Target(const Target & t)
Class: Seahunt::Target
Attributes Publ 1 Prot 5 Private 0 Total 6
Methods Publ 9 Prot 0 Private 1 Total 10
LOC 29 eLOC 25 lLOC 16 Comment 8 Lines 42
Namespace End: Seahunt
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 46 eLOC 38 lLOC 18 Comment 15 Lines 77
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count....: 2
Total Function LOC.....: 3 Total Function Pts LOC : 0.0
Total Function eLOC....: 1 Total Function Pts eLOC: 0.0
Total Function lLOC....: 1 Total Function Pts lLOC: 0.0
Total Function Params .: 2 Total Function Return .: 2
Total Cyclo Complexity : 2 Total Function Complex.: 6
------ ----- ----- ------ ------ -----
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
________________________________________________________________________
End of File: target.h
File: timer.h
________________________________________________________________________
Class Method Public : 20 | Timer::Timer()
Class Method Public : 23 | Timer::Timer(const std::string &label)
Class Method Public : 26 | Timer::~Timer()
Class Method Public : 29 | Timer::start(void)
Class Method Public : 32 | Timer::stop(void)
Class Method Public : 35 | Timer::show(void)
Class Method Public : 38 | Timer::get_user_time(void)
Class Method Public : 39 | Timer::get_system_time(void)
Class Method Public : 40 | Timer::get_wait_time(void)
Class Method Public : 41 | Timer::get_elapsed_time(void)
Class Method Public : 42 | Timer::get_non_wait_time(void)
Class Method Private : 47 | Timer::reset(void)
Class Data Private : 50 | label;
Class Data Private : 53 | tps;
Class Data Private : 58 | end_time;
Class Data Private : 62 | end_time;
Class Data Private : 69 | waittime;
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 49 eLOC 47 lLOC 19 Comment 12 Lines 78
________________________________________________________________________
End of File: timer.h
File: utility.h
________________________________________________________________________
Namespace Begin: Seahunt
Class Method Public : 15 | Seahunt::Utility::UserEntry(std::string label, std::string & entry, int length)
Class Method Public : 16 | Seahunt::Utility::UserEntry(std::string label, int & entry, int min, int max)
Class Method Public : 18 | Seahunt::Utility::itos(int i)
Class Method Public : 20 | Seahunt::Utility::dtos(double d)
Class Method Public : 21 | Seahunt::Utility::ClearScreen(void)
Class Method Public : 22 | Seahunt::Utility::WaitKey(void)
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
Namespace End: Seahunt
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 20 eLOC 16 lLOC 8 Comment 3 Lines 30
________________________________________________________________________
End of File: utility.h
------------------------------------------------------------------------
~~ Total Metrics For 8 Files ~~
------------------------------------------------------------------------
~~ Total Project Summary ~~
LOC 252 eLOC 218 lLOC 114 Comment 52 Lines 374
Average per File, metric/8 files
LOC 31 eLOC 27 lLOC 14 Comment 6 Lines 46
------------------------------------------------------------------------
~~ Project Functional Metrics ~~
Function: Seahunt::Sub::Abstract
Parameters: (void) Non-ANSI Parameter Construct
LOC 1 eLOC 1 lLOC 0 Comment 0 Lines 1
Function: Seahunt::Target::Get_armor
Parameters: (void) Non-ANSI Parameter Construct
LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1
Function: Seahunt::Target::Target
Parameters: (const Target & t)
LOC 2 eLOC 0 lLOC 0 Comment 2 Lines 4
Total: Functions
LOC 4 eLOC 2 lLOC 1 InCmp 6 CycloCmp 3
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------------------------------------------------------
~~ Project Functional Analysis ~~
Total Functions .......: 3 Total Physical Lines ..: 6
Total LOC .............: 4 Total Function Pts LOC : 0.0
Total eLOC ............: 2 Total Function Pts eLOC: 0.0
Total lLOC.............: 1 Total Function Pts lLOC: 0.0
Total Cyclomatic Comp. : 3 Total Interface Comp. .: 6
Total Parameters ......: 3 Total Return Points ...: 3
Total Comment Lines ...: 3 Total Blank Lines .....: 0
------ ----- ----- ------ ------ -----
Avg Physical Lines ....: 2.00
Avg LOC ...............: 1.33 Avg eLOC ..............: 0.67
Avg lLOC ..............: 0.33 Avg Cyclomatic Comp. ..: 1.00
Avg Interface Comp. ...: 2.00 Avg Parameters ........: 1.00
Avg Return Points .....: 1.00 Avg Comment Lines .....: 1.00
------ ----- ----- ------ ------ -----
Max LOC ...............: 2
Max eLOC ..............: 1 Max lLOC ..............: 1
Max Cyclomatic Comp. ..: 1 Max Interface Comp. ...: 2
Max Parameters ........: 1 Max Return Points .....: 1
Max Comment Lines .....: 2 Max Total Lines .......: 4
------ ----- ----- ------ ------ -----
Min LOC ...............: 1
Min eLOC ..............: 0 Min lLOC ..............: 0
Min Cyclomatic Comp. ..: 1 Min Interface Comp. ...: 2
Min Parameters ........: 1 Min Return Points .....: 1
Min Comment Lines .....: 0 Min Total Lines .......: 1
------------------------------------------------------------------------
~~ Project Class/Struct Metrics ~~
Parent LOC Metrics Include Nested LOC Metrics
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: 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: 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: 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: Seahunt::Sub
Inheritance: Target
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: Seahunt::Target
Attributes Publ 1 Prot 5 Private 0 Total 6
Methods Publ 9 Prot 0 Private 1 Total 10
LOC 29 eLOC 25 lLOC 16 Comment 8 Lines 42
Class: Timer
Attributes Publ 0 Prot 0 Private 0 Total 0
Methods Publ 0 Prot 0 Private 0 Total 0
LOC 0 eLOC 0 lLOC 0 Comment 0 Lines 0
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
Total: All Classes/Structs
Attributes Publ 1 Prot 5 Private 19 Total 25
Methods Publ 54 Prot 0 Private 5 Total 59
LOC 126 eLOC 110 lLOC 87 Comment 16 Lines 137
------------------------------------------------------------------------
~~ Project Class/Struct Analysis ~~
Total Classes/Structs .: 8 Total Methods .........: 59
Total Public Methods ..: 54 Total Public Attributes: 1
Total Protected Methods: 0 Total Protected Attrib.: 5
Total Private Methods .: 5 Total Private Attrib. .: 19
Total Physical Lines ..: 137 Total LOC .............: 126
Total eLOC ............: 110 Total lLOC ............: 87
Total Cyclomatic Comp. : 3 Total Interface Comp. .: 6
Total Parameters ......: 3 Total Return Points ...: 3
Total Comment Lines ...: 16 Total Blank Lines .....: 9
------ ----- ----- ------ ------ -----
Avg Physical Lines ....: 17.13 Avg Methods ...........: 7.38
Avg Public Methods ....: 6.75 Avg Public Attributes .: 0.13
Avg Protected Methods .: 0.00 Avg Protected Attrib. .: 0.63
Avg Private Methods ...: 0.63 Avg Private Attributes : 2.38
Avg LOC ...............: 15.75 Avg eLOC ..............: 13.75
Avg lLOC ..............: 10.88 Avg Cyclomatic Comp. ..: 0.38
Avg Interface Comp. ...: 0.75 Avg Parameters ........: 0.38
Avg Return Points .....: 0.38 Avg Comment Lines .....: 2.00
------ ----- ----- ------ ------ -----
Max Physical Lines ....: 42 Max Methods ...........: 11
Max Public Methods ....: 11 Max Public Attributes .: 1
Max Protected Methods .: 0 Max Protected Attrib. .: 5
Max Private Methods ...: 2 Max Private Attributes : 6
Max LOC ...............: 29 Max eLOC ..............: 25
Max lLOC ..............: 19 Max Cyclomatic Comp. ..: 2
Max Interface Comp. ...: 4 Max Parameters ........: 2
Max Return Points .....: 2 Max Comment Lines .....: 8
------ ----- ----- ------ ------ -----
Min Physical Lines ....: 0 Min Methods ...........: 0
Min Public Methods ....: 0 Min Public Attributes .: 0
Min Protected Methods .: 0 Min Protected Attrib. .: 0
Min Private Methods ...: 0 Min Private Attributes : 0
Min LOC ...............: 0 Min eLOC ..............: 0
Min lLOC ..............: 0 Min Cyclomatic Comp. ..: 0
Min Interface Comp. ...: 0 Min Parameters ........: 0
Min Return Points .....: 0 Min Comment Lines .....: 0
------------------------------------------------------------------------
~~ Project Namespace/Package Metrics ~~
Namespace/Package: Seahunt
Total Classses 7 Total Functions 59 Avg Func/Class 8.43
Attributes Publ 1 Prot 5 Private 19 Total 25
Methods Publ 54 Prot 0 Private 5 Total 59
LOC 126 eLOC 110 lLOC 87 Comment 16 Lines 137
Total: All Namespaces/Packages
Total Classses 7 Total Functions 59 Avg Func/Class 8.43
Attributes Publ 1 Prot 5 Private 19 Total 25
Methods Publ 54 Prot 0 Private 5 Total 59
LOC 126 eLOC 110 lLOC 87 Comment 16 Lines 137
------------------------------------------------------------------------
~~ Project Namespace/Package Analysis ~~
Total Namespace/Package: 1
Total Classes/Structs .: 7 Total Methods .........: 59
Total Public Methods ..: 54 Total Public Attributes: 1
Total Protected Methods: 0 Total Protected Attrib.: 5
Total Private Methods .: 5 Total Private Attrib. .: 19
Total Physical Lines ..: 137 Total LOC .............: 126
Total eLOC ............: 110 Total lLOC ............: 87
Total Cyclomatic Comp. : 3 Total Interface Comp. .: 6
Total Parameters ......: 3 Total Return Points ...: 3
Total Comment Lines ...: 16 Total Blank Lines .....: 9
------ ----- ----- ------ ------ -----
Avg Classes/Structs ...: 7.00 Avg Methods ...........: 59.00
Avg Public Methods ....: 54.00 Avg Public Attributes .: 1.00
Avg Protected Methods .: 0.00 Avg Protected Attrib. .: 5.00
Avg Private Methods ...: 5.00 Avg Private Attributes : 19.00
Avg LOC ...............: 126.00 Avg eLOC ..............: 110.00
Avg lLOC ..............: 87.00 Avg Cyclomatic Comp. ..: 3.00
Avg Interface Comp. ...: 6.00 Avg Parameters ........: 3.00
Avg Return Points .....: 3.00 Avg Comment Lines .....: 16.00
------ ----- ----- ------ ------ -----
Max Classes/Struct ....: 7 Max Methods ...........: 59
Max Public Methods ....: 54 Max Public Attributes .: 1
Max Protected Methods .: 0 Max Protected Attrib. .: 5
Max Private Methods ...: 5 Max Private Attributes : 19
Max LOC ...............: 126 Max eLOC ..............: 110
Max lLOC ..............: 87 Max Cyclomatic Comp. ..: 3
Max Interface Comp. ...: 6 Max Parameters ........: 3
Max Return Points .....: 3 Max Comment Lines .....: 16
------ ----- ----- ------ ------ -----
Min Classes/Structs ...: 7 Min Methods ...........: 59
Min Public Methods ....: 54 Min Public Attributes .: 1
Min Protected Methods .: 0 Min Protected Attrib. .: 5
Min Private Methods ...: 5 Min Private Attributes : 19
Min LOC ...............: 126 Min eLOC ..............: 110
Min lLOC ..............: 87 Min Cyclomatic Comp. ..: 3
Min Interface Comp. ...: 6 Min Parameters ........: 3
Min Return Points .....: 3 Min Comment Lines .....: 16
------------------------------------------------------------------------
~~ File Summary ~~
C Source Files *.c ....: 0 C/C++ Include Files *.h: 8
C++ Source Files *.c* .: 0 C++ Include Files *.h* : 0
C# Source Files *.cs ..: 0 Java Source File *.jav*: 0
Other Source Files ....: 0
Total File Count ......: 8
Shareware evaluation licenses process only files.
Paid licenses enable processing for an unlimited number of files.
________________________________________________________________________
Confidential - Acme Engineering