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:29 2000 ________________________________________________________________________ ~~ Determine Source vs. LOC Algorithms ~~ File: cell.h Date: Tue Oct 10 21:45:28 2000 File Size: 829 Bytes ________________________________________________________________________ Line 1: // cell.h LOC Type(s): C++/Java Comment Line 2: // LOC Type(s): C++/Java Comment Line 3: // Specification for type cell LOC Type(s): C++/Java Comment Line 4: // A cell is a piece of an ocean LOC Type(s): C++/Java Comment Line 5: // LOC Type(s): C++/Java Comment Line 6: LOC Type(s): Blank Line 7: #ifndef CELL_H LOC Type(s): LOC Line 8: #define CELL_H LOC Type(s): LOC Line 9: LOC Type(s): Blank Line 10: #include "target.h" LOC Type(s): LOC Line 11: LOC Type(s): Blank Line 12: namespace Seahunt LOC Type(s): LOC Line 13: { LOC Type(s): Non-Effective LOC Line 14: LOC Type(s): Blank Line 15: class Cell LOC Type(s): LOC Line 16: { LOC Type(s): Non-Effective LOC Line 17: public: LOC Type(s): LOC Line 18: Cell (); // constructor LOC Type(s): LOC C++/Java Comment Line 19: ~Cell(); // destructor LOC Type(s): LOC C++/Java Comment Line 20: void Set_xyz ( int x=0, int y=0, int z=0 ); LOC Type(s): LOC Line 21: int Get_x ( void ) const; LOC Type(s): LOC Line 22: int Get_y ( void ) const; LOC Type(s): LOC Line 23: int Get_z ( void ) const; LOC Type(s): LOC Line 24: bool Set_target ( Target * t ); LOC Type(s): LOC Line 25: Target * Get_target ( void ) const; LOC Type(s): LOC Line 26: bool Hit ( void ); LOC Type(s): LOC Line 27: LOC Type(s): Blank Line 28: private: LOC Type(s): LOC Line 29: Cell ( const Cell & c ); // copy constructor LOC Type(s): LOC C++/Java Comment Line 30: bool hit_status; // true if the cell is hit LOC Type(s): LOC C++/Java Comment Line 31: Target * target; // assigned to the cell LOC Type(s): LOC C++/Java Comment Line 32: int x; LOC Type(s): LOC Line 33: int y; LOC Type(s): LOC Line 34: int z; // depth of the ocean LOC Type(s): LOC C++/Java Comment Line 35: }; LOC Type(s): Non-Effective LOC Line 36: LOC Type(s): Blank Line 37: } // namepsace Seahunt LOC Type(s): LOC C++/Java Comment Line 38: LOC Type(s): Blank Line 39: #endif // CELL_H LOC Type(s): LOC C++/Java Comment Line 40: LOC Type(s): Blank Line 41: LOC Type(s): Blank ------------------------------------------------------------------------ ~~ Total File Summary ~~ LOC 27 eLOC 24 lLOC 16 Comment 13 Lines 41 ________________________________________________________________________ End of File: cell.h ~~ Total Metrics For 1 Files ~~ ------------------------------------------------------------------------ ~~ Total Project Summary ~~ LOC 27 eLOC 24 lLOC 16 Comment 13 Lines 41 ------------------------------------------------------------------------ ~~ File Summary ~~ C Source Files *.c ....: 0 C/C++ Include Files *.h: 1 C++ Source Files *.c* .: 0 C++ Include Files *.h* : 0 Other Source Files ....: 0 Java Source File *.jav*: 0 Total File Count ......: 1 ________________________________________________________________________