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:28 2000 ________________________________________________________________________ ~~ Function Metrics ~~ ~~ Template Identification ~~ ~~ Comment Documentation ~~ ~~ Comment Extraction Mode ~~ File: cell.cpp Date: Tue Oct 10 21:43:40 2000 File Size: 2636 Bytes ________________________________________________________________________ 1: // cell.cpp 2: // 3: // Implementation for type cell where cell is a piece of an ocean. 4: // Cell contains a pointer to the base class Target. Through 5: // the based class pointer Cell polymorphically calls Hit of the 6: // derived target object/ Namespace Begin: Seahunt ------------------------------------------------------------------------ Function: Seahunt::Cell::Cell ------------------------------------------------------------------------ Function: Seahunt::Cell::Cell ------------------------------------------------------------------------ 33: // do not cleanup the target Function: Seahunt::Cell::~Cell ------------------------------------------------------------------------ Function: Seahunt::Cell::Set_xyz ------------------------------------------------------------------------ Function: Seahunt::Cell::Get_x ------------------------------------------------------------------------ Function: Seahunt::Cell::Get_y ------------------------------------------------------------------------ Function: Seahunt::Cell::Get_z ------------------------------------------------------------------------ Function: Seahunt::Cell::Set_target ------------------------------------------------------------------------ Function: Seahunt::Cell::Get_target ------------------------------------------------------------------------ Function: Seahunt::Cell::Hit ------------------------------------------------------------------------ Namespace End: Seahunt ------------------------------------------------------------------------ 111: // namespace Seahunt 141: // fails for already popluated 150: // miss 153: // hits 158: // multiple common hit Function: main ------------------------------------------------------------------------ 166: // eof cell.cpp ________________________________________________________________________ End of File: cell.cpp File: cell.h Date: Tue Oct 10 21:43:40 2000 File Size: 829 Bytes ________________________________________________________________________ 1: // cell.h 2: // 3: // Specification for type cell 4: // A cell is a piece of an ocean 5: // Namespace Begin: Seahunt ------------------------------------------------------------------------ 18: // constructor 19: // destructor 29: // copy constructor 30: // true if the cell is hit 31: // assigned to the cell 34: // depth of the ocean Namespace End: Seahunt ------------------------------------------------------------------------ 37: // namepsace Seahunt 39: // CELL_H ________________________________________________________________________ End of File: cell.h File: game.cpp Date: Tue Oct 10 21:43:40 2000 File Size: 1604 Bytes ________________________________________________________________________ 1: // game.cpp Namespace Begin: Seahunt ------------------------------------------------------------------------ Function: Seahunt::Game::Game ------------------------------------------------------------------------ Function: Seahunt::Game::~Game ------------------------------------------------------------------------ 45: /* Place the sub in the ocean */ 94: // fall through Function: Seahunt::Game::Play ------------------------------------------------------------------------ Namespace End: Seahunt ------------------------------------------------------------------------ 107: // namespace ________________________________________________________________________ End of File: game.cpp File: game.h Date: Tue Oct 10 21:43:40 2000 File Size: 400 Bytes ________________________________________________________________________ 1: // game.h Namespace Begin: Seahunt ------------------------------------------------------------------------ Namespace End: Seahunt ------------------------------------------------------------------------ ________________________________________________________________________ End of File: game.h File: ocean.cpp Date: Tue Oct 10 21:43:40 2000 File Size: 5088 Bytes ________________________________________________________________________ 1: // ocean.h 2: // 3: // implementation for ocean 4: // Namespace Begin: Anonymous - File Scope ------------------------------------------------------------------------ Namespace End: Anonymous - File Scope ------------------------------------------------------------------------ Namespace Begin: Seahunt ------------------------------------------------------------------------ Function: Seahunt::Ocean::Ocean ------------------------------------------------------------------------ 43: // Go through the target list and delete the objects Function: Seahunt::Ocean::Init ------------------------------------------------------------------------ 62: // Go through the target list and delete the objects Function: Seahunt::Ocean::~Ocean ------------------------------------------------------------------------ Function: Seahunt::Ocean::PlaceTarget ------------------------------------------------------------------------ Function: Seahunt::Ocean::TargetPlacement ------------------------------------------------------------------------ Function: Seahunt::Ocean::Hit ------------------------------------------------------------------------ Function: Seahunt::Ocean::Show ------------------------------------------------------------------------ Function: Seahunt::Ocean::ShowTargets ------------------------------------------------------------------------ Function: Seahunt::Ocean::Get_target_count ------------------------------------------------------------------------ Function: Seahunt::Ocean::Get_active_targets ------------------------------------------------------------------------ Function: Seahunt::Ocean::Get_destroyed_targets ------------------------------------------------------------------------ Namespace End: Seahunt ------------------------------------------------------------------------ 225: // namespace Seahunt Function: main ------------------------------------------------------------------------ ________________________________________________________________________ End of File: ocean.cpp File: ocean.h Date: Tue Oct 10 21:43:40 2000 File Size: 825 Bytes ________________________________________________________________________ 1: // ocean.h 2: // 3: // Specification for type ocean 4: // Namespace Begin: Seahunt ------------------------------------------------------------------------ Namespace End: Seahunt ------------------------------------------------------------------------ 45: // OCEAN_H ________________________________________________________________________ End of File: ocean.h File: player.cpp Date: Tue Oct 10 21:43:40 2000 File Size: 1922 Bytes ________________________________________________________________________ 1: // player.cpp Namespace Begin: Seahunt ------------------------------------------------------------------------ Function: Seahunt::Player::Player ------------------------------------------------------------------------ Function: Seahunt::Player::Player ------------------------------------------------------------------------ 28: // no dynamic memory allocated by the object Function: Seahunt::Player::~Player ------------------------------------------------------------------------ Function: Seahunt::Player::Hit ------------------------------------------------------------------------ Function: Seahunt::Player::Score ------------------------------------------------------------------------ Function: Seahunt::Player::Show ------------------------------------------------------------------------ Function: Seahunt::Player::Get_score ------------------------------------------------------------------------ Function: Seahunt::Player::Get_number_hits ------------------------------------------------------------------------ Function: Seahunt::Player::Get_number_tries ------------------------------------------------------------------------ Function: Seahunt::Player::Get_name ------------------------------------------------------------------------ Function: Seahunt::Player::Set_name ------------------------------------------------------------------------ Namespace End: Seahunt ------------------------------------------------------------------------ 104: // namespace Function: main ------------------------------------------------------------------------ ________________________________________________________________________ End of File: player.cpp File: player.h Date: Tue Oct 10 21:43:40 2000 File Size: 666 Bytes ________________________________________________________________________ 1: // player.h Namespace Begin: Seahunt ------------------------------------------------------------------------ Namespace End: Seahunt ------------------------------------------------------------------------ ________________________________________________________________________ End of File: player.h File: seahunt.cpp Date: Tue Oct 10 21:43:40 2000 File Size: 201 Bytes ________________________________________________________________________ 1: // seahunt.cpp Function: main ------------------------------------------------------------------------ ________________________________________________________________________ End of File: seahunt.cpp File: sub.cpp Date: Tue Oct 10 21:43:40 2000 File Size: 1418 Bytes ________________________________________________________________________ 1: // sub.cpp Namespace Begin: Seahunt ------------------------------------------------------------------------ Function: Seahunt::Sub::Create ------------------------------------------------------------------------ Function: Seahunt::Sub::Create ------------------------------------------------------------------------ Function: Seahunt::Sub::Sub ------------------------------------------------------------------------ Function: Seahunt::Sub::~Sub ------------------------------------------------------------------------ Function: Seahunt::Sub::Show ------------------------------------------------------------------------ Function: Seahunt::Sub::Hit ------------------------------------------------------------------------ Namespace End: Seahunt ------------------------------------------------------------------------ 68: // namespace Seahunt Function: main ------------------------------------------------------------------------ 88: // SUB_TEST ________________________________________________________________________ End of File: sub.cpp File: sub.h Date: Tue Oct 10 21:43:40 2000 File Size: 456 Bytes ________________________________________________________________________ 1: // sub.h Namespace Begin: Seahunt ------------------------------------------------------------------------ class inline Function: Seahunt::Sub::Abstract ------------------------------------------------------------------------ Namespace End: Seahunt ------------------------------------------------------------------------ 27: // namespace Seahunt ________________________________________________________________________ End of File: sub.h File: target.cpp Date: Tue Oct 10 21:43:40 2000 File Size: 1580 Bytes ________________________________________________________________________ 1: // target.cpp Namespace Begin: Seahunt ------------------------------------------------------------------------ Function: Seahunt::Target::Target ------------------------------------------------------------------------ Function: Seahunt::Target::~Target ------------------------------------------------------------------------ Function: Seahunt::Target::Get_status ------------------------------------------------------------------------ Function: Seahunt::Target::Get_depth_limit ------------------------------------------------------------------------ Function: Seahunt::Target::Get_name ------------------------------------------------------------------------ Function: Seahunt::Target::Hit ------------------------------------------------------------------------ Function: Seahunt::Target::Reset ------------------------------------------------------------------------ Function: Seahunt::Target::Show ------------------------------------------------------------------------ Namespace End: Seahunt ------------------------------------------------------------------------ 95: // namespace Seahunt Function: main ------------------------------------------------------------------------ 116: // UNIT_TEST 118: // eof target.cpp ________________________________________________________________________ End of File: target.cpp File: target.h Date: Tue Oct 10 21:43:40 2000 File Size: 1474 Bytes ________________________________________________________________________ 1: // target.h 2: // specification for the target base class 3: // 4: // R. Mudge 5: // 09/10/1998 7: // Notes: Turn on symbol TARGET_UNIT_TEST to test the component Namespace Begin: Seahunt ------------------------------------------------------------------------ 27: // base class 39: // Method interface for derived objects 43: // return the status of the targer class inline Function: Seahunt::Target::Get_armor ------------------------------------------------------------------------ 50: // pure virtual method creates abstract class for 51: // deployed application, cannot create an instance 52: // of this class outside the test driver. 67: // cannot pass target by value from a private 68: // copy constructor class inline Function: Seahunt::Target::Target ------------------------------------------------------------------------ Namespace End: Seahunt ------------------------------------------------------------------------ 73: // namespace Seahunt 75: // TARGET_H 77: // eof target.h ________________________________________________________________________ End of File: target.h File: utility.cpp Date: Tue Oct 10 21:43:40 2000 File Size: 1778 Bytes ________________________________________________________________________ 1: // utility.cpp Namespace Begin: Seahunt ------------------------------------------------------------------------ 12: // convert int to ascii Function: Seahunt::Utility::itos ------------------------------------------------------------------------ 23: // convert float to ascii Function: Seahunt::Utility::dtos ------------------------------------------------------------------------ Function: Seahunt::Utility::UserEntry ------------------------------------------------------------------------ 79: // bug in VCPP 5.0 does not work correctly Function: Seahunt::Utility::UserEntry ------------------------------------------------------------------------ Function: Seahunt::Utility::WaitKey ------------------------------------------------------------------------ Function: Seahunt::Utility::ClearScreen ------------------------------------------------------------------------ Namespace End: Seahunt ------------------------------------------------------------------------ ________________________________________________________________________ End of File: utility.cpp File: utility.h Date: Tue Oct 10 21:43:40 2000 File Size: 566 Bytes ________________________________________________________________________ 1: // Utility Class Namespace Begin: Seahunt ------------------------------------------------------------------------ 17: // convert int to ascii 19: // convert float to ascii Namespace End: Seahunt ------------------------------------------------------------------------ ________________________________________________________________________ End of File: utility.h ________________________________________________________________________