42 |
|
|
43 |
|
namespace oopse{ |
44 |
|
|
45 |
– |
class StuntDouble; |
46 |
– |
|
45 |
|
/** |
46 |
|
* @class Snapshot Snapshot.hpp "brains/Snapshot.hpp" |
47 |
|
* @brief Snapshot class is a repository class for storing dynamic data during |
72 |
|
id_ = id; |
73 |
|
} |
74 |
|
|
77 |
– |
//template<typename T> |
78 |
– |
//static typename T::ElemPointerType getArrayPointer(vector<T>& v) { |
79 |
– |
// return v[0]->getArrayPointer(); |
80 |
– |
//} |
81 |
– |
|
75 |
|
int getSize() { |
76 |
|
return atomData.getSize() + rigidbodyData.getSize(); |
77 |
|
} |
99 |
|
|
100 |
|
/** Returns the inverse H-Matrix */ |
101 |
|
Mat3x3d getInvHmat() { |
102 |
< |
return invHmat_ |
102 |
> |
return invHmat_; |
103 |
|
} |
104 |
|
|
105 |
|
double getTimeStamp() { |
110 |
|
timeStamp_ =timeStamp; |
111 |
|
} |
112 |
|
|
120 |
– |
|
113 |
|
DataStorage atomData; |
114 |
|
DataStorage rigidbodyData; |
115 |
|
|
124 |
– |
friend class StuntDouble; |
125 |
– |
|
116 |
|
private: |
117 |
|
double timeStamp_; |
118 |
|
Mat3x3d hmat_; |