00001 //## begin module%36FDB0E70104.cm preserve=no 00002 // %X% %Q% %Z% %W% 00003 //## end module%36FDB0E70104.cm 00004 00005 //## begin module%36FDB0E70104.cp preserve=no 00006 //## end module%36FDB0E70104.cp 00007 00008 //## Module: PA_Points%36FDB0E70104; Pseudo Package specification 00009 //## Source file: C:\project\mpk\code\Paths\PA_Points.h 00010 00011 #ifndef PA_Points_h 00012 #define PA_Points_h 1 00013 00014 //## begin module%36FDB0E70104.additionalIncludes preserve=no 00015 //## end module%36FDB0E70104.additionalIncludes 00016 00017 //## begin module%36FDB0E70104.includes preserve=yes 00018 #include <vector> 00019 //## end module%36FDB0E70104.includes 00020 00021 // PathBase 00022 #include "Paths\PathBase.h" 00023 00024 class Configuration; 00025 00026 //## begin module%36FDB0E70104.additionalDeclarations preserve=yes 00027 //## end module%36FDB0E70104.additionalDeclarations 00028 00029 00030 //## begin PA_Points%36FDB0E70104.preface preserve=yes 00031 //## end PA_Points%36FDB0E70104.preface 00032 00033 //## Class: PA_Points%36FDB0E70104 00034 //## Category: Paths%36FD4CA50046 00035 //## Persistence: Transient 00036 //## Cardinality/Multiplicity: n 00037 00038 class PA_Points : public PathBase //## Inherits: <unnamed>%36FDB1A601C2 00039 { 00040 //## begin PA_Points%36FDB0E70104.initialDeclarations preserve=yes 00041 //## end PA_Points%36FDB0E70104.initialDeclarations 00042 00043 public: 00044 //## Constructors (specified) 00045 //## Operation: PA_Points%922595690 00046 PA_Points (); 00047 00048 //## Destructor (generated) 00049 virtual ~PA_Points(); 00050 00051 00052 //## Other Operations (specified) 00053 //## Operation: operator=%923255757 00054 PA_Points& operator = (const PA_Points& right); 00055 00056 //## Operation: AppendPoint%923255759 00057 void AppendPoint (const Configuration& point); 00058 00059 //## Operation: Clear%923255760 00060 virtual void Clear (); 00061 00062 //## Operation: Output%923255763 00063 virtual void Output () const; 00064 00065 double PhysicalLength() const; 00066 00067 //## Operation: Size%926550116 00068 unsigned int Size () const; 00069 00070 //## Operation: operator[]%926550117 00071 const Configuration& operator [] (const unsigned int index) const; 00072 Configuration& operator [] (const unsigned int index); 00073 00074 //## Operation: GetConfiguration%926635235 00075 virtual Configuration GetConfiguration (double percent) const; 00076 00077 Configuration GetPoint(const unsigned int index) const; 00078 00079 //## Operation: Serialize%933360619 00080 virtual void Serialize (char* str, const unsigned int size) const; 00081 00082 //## Operation: AppendPointToBeginning%965675402 00083 void AppendPointToBeginning (const Configuration& point); 00084 00085 void DeleteFirstPoint(); 00086 00087 // Additional Public Declarations 00088 //## begin PA_Points%36FDB0E70104.public preserve=yes 00089 //## end PA_Points%36FDB0E70104.public 00090 00091 protected: 00092 // Data Members for Associations 00093 00094 //## Association: Paths::<unnamed>%3708035801EA 00095 //## Role: PA_Points::points%370803590172 00096 //## begin PA_Points::points%370803590172.role preserve=no protected: Configuration { -> 0..nVFHAN} 00097 std::vector<Configuration> points; 00098 //## end PA_Points::points%370803590172.role 00099 00100 // Additional Protected Declarations 00101 //## begin PA_Points%36FDB0E70104.protected preserve=yes 00102 //## end PA_Points%36FDB0E70104.protected 00103 00104 private: 00105 // Additional Private Declarations 00106 //## begin PA_Points%36FDB0E70104.private preserve=yes 00107 //## end PA_Points%36FDB0E70104.private 00108 00109 private: //## implementation 00110 // Additional Implementation Declarations 00111 //## begin PA_Points%36FDB0E70104.implementation preserve=yes 00112 //## end PA_Points%36FDB0E70104.implementation 00113 00114 }; 00115 00116 //## begin PA_Points%36FDB0E70104.postscript preserve=yes 00117 std::ostream & operator<<( std::ostream &os, const PA_Points& v ) ; 00118 std::istream & operator>>( std::istream &is, PA_Points& v ) ; 00119 //## end PA_Points%36FDB0E70104.postscript 00120 00121 // Class PA_Points 00122 00123 //## begin module%36FDB0E70104.epilog preserve=yes 00124 //## end module%36FDB0E70104.epilog 00125 00126 00127 #endif