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:34 2000 ________________________________________________________________________ Tue Oct 10 21:45:28 2000 cell.cpp Tue Oct 10 21:45:28 2000 cell.h Tue Oct 10 21:45:28 2000 game.cpp Tue Oct 10 21:45:28 2000 game.h Tue Oct 10 21:45:28 2000 ocean.cpp Tue Oct 10 21:45:28 2000 ocean.h Tue Oct 10 21:45:28 2000 player.cpp Tue Oct 10 21:45:28 2000 player.h Tue Oct 10 21:45:28 2000 seahunt.cpp Tue Oct 10 21:45:28 2000 sub.cpp Tue Oct 10 21:45:28 2000 sub.h Tue Oct 10 21:45:28 2000 target.cpp Tue Oct 10 21:45:28 2000 target.h Tue Oct 10 21:45:28 2000 utility.cpp Tue Oct 10 21:45:28 2000 utility.h ~~ Total Metrics For 15 Files ~~ ------------------------------------------------------------------------ ~~ Project Functional Metrics ~~ Sorted By Name 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::Get_target Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 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::Hit Complexity Param 0 Return 1 Cyclo Vg 4 Total 5 LOC 27 eLOC 15 lLOC 9 Comment 0 Lines 27 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::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::~Cell Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 2 eLOC 0 lLOC 0 Comment 1 Lines 3 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::Play Complexity Param 0 Return 1 Cyclo Vg 10 Total 11 LOC 53 eLOC 31 lLOC 21 Comment 2 Lines 65 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::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: 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::Hit Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 LOC 21 eLOC 15 lLOC 13 Comment 0 Lines 21 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::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::PlaceTarget Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 LOC 13 eLOC 7 lLOC 4 Comment 0 Lines 13 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: 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::Ocean::TargetPlacement Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 LOC 28 eLOC 18 lLOC 13 Comment 0 Lines 28 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::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::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_score Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 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::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::Score Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 LOC 6 eLOC 4 lLOC 2 Comment 0 Lines 6 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: 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::Player::~Player Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 2 eLOC 0 lLOC 0 Comment 1 Lines 3 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::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::Hit Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 LOC 11 eLOC 5 lLOC 3 Comment 0 Lines 11 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: 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::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::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::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::Hit Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 LOC 21 eLOC 11 lLOC 7 Comment 0 Lines 21 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: 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 1 Return 1 Cyclo Vg 1 Total 3 LOC 2 eLOC 0 lLOC 0 Comment 2 Lines 4 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::Utility::ClearScreen Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 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::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::dtos Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 LOC 7 eLOC 5 lLOC 5 Comment 1 Lines 7 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: main Complexity Param 0 Return 1 Cyclo Vg 5 Total 6 LOC 31 eLOC 21 lLOC 19 Comment 4 Lines 44 Function: main Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 12 eLOC 10 lLOC 10 Comment 0 Lines 20 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: main Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 11 eLOC 9 lLOC 9 Comment 0 Lines 15 Function: main Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 12 eLOC 10 lLOC 10 Comment 0 Lines 16 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 ------------------------------------------------------------------------ ~~ 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 ________________________________________________________________________