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