|
Fast Research Interface Library
Manual and Documentation
|
00001 // ---------------------- Doxygen info ---------------------- 00047 // ---------------------------------------------------------- 00048 // For a convenient reading of this file's source code, 00049 // please use a tab width of four characters. 00050 // ---------------------------------------------------------- 00051 00052 00053 #ifndef __TypeIRMLOutputParameters__ 00054 #define __TypeIRMLOutputParameters__ 00055 00056 00057 #include <TypeIRMLVector.h> 00058 00059 00060 namespace TypeIRMLMath 00061 { 00062 00063 00064 // ---------------------- Doxygen info ---------------------- 00076 // ---------------------------------------------------------- 00077 class TypeIRMLOutputParameters 00078 { 00079 00080 public: 00081 00082 00083 // ---------------------- Doxygen info ---------------------- 00097 // ---------------------------------------------------------- 00098 00099 TypeIRMLOutputParameters(const unsigned int &NumberOfDOFs) 00100 { 00101 this->NewPosition = new TypeIRMLDoubleVector(NumberOfDOFs); 00102 this->NewVelocity = new TypeIRMLDoubleVector(NumberOfDOFs); 00103 00104 this->NewPosition->Set(0.0); 00105 this->NewVelocity->Set(0.0); 00106 } 00107 00108 00109 // ---------------------- Doxygen info ---------------------- 00123 // ---------------------------------------------------------- 00124 TypeIRMLOutputParameters(const TypeIRMLOutputParameters & OP) 00125 { 00126 this->NewPosition = new TypeIRMLDoubleVector(OP.NewPosition->VectorDimension); 00127 this->NewVelocity = new TypeIRMLDoubleVector(OP.NewVelocity->VectorDimension); 00128 00129 this->NewPosition = OP.NewPosition; 00130 this->NewVelocity = OP.NewVelocity; 00131 } 00132 00133 00134 // ---------------------- Doxygen info ---------------------- 00142 // ---------------------------------------------------------- 00143 TypeIRMLOutputParameters &operator = (const TypeIRMLOutputParameters &OP) 00144 { 00145 this->NewPosition = OP.NewPosition; 00146 this->NewVelocity = OP.NewVelocity; 00147 00148 return (*this); 00149 } 00150 00151 00152 // ---------------------- Doxygen info ---------------------- 00157 // ---------------------------------------------------------- 00158 ~TypeIRMLOutputParameters(void) 00159 { 00160 delete this->NewPosition ; 00161 delete this->NewVelocity ; 00162 00163 this->NewPosition = NULL; 00164 this->NewVelocity = NULL; 00165 } 00166 00167 TypeIRMLDoubleVector* NewPosition; 00168 TypeIRMLDoubleVector* NewVelocity; 00169 }; 00170 00171 00172 00173 } // namespace 00174 00175 #endif