MCPcopy Create free account
hub / github.com/TUC-ProAut/libRSF / getElement

Method getElement

include/DataSet.h:184–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182 }
183
184 bool getElement(const KeyType &ID, const double Timestamp, const int Number, ObjectType& Element) const
185 {
186 if (checkElement(ID, Timestamp, Number))
187 {
188 auto It = _DataStreams.at(ID).find(Timestamp);
189 std::advance(It, Number);
190 Element = It->second;
191 return true;
192 }
193 else
194 {
195 return false;
196 }
197 }
198
199 bool setElement(const KeyType &ID, const double Timestamp, const int Number, ObjectType& Element)
200 {

Callers 15

InitGraphFunction · 0.80
CreateGraphAndSolveFunction · 0.80
CreateGraphAndSolveFunction · 0.80
CreateGraphAndSolveFunction · 0.80
InitGraphFunction · 0.80
CreateGraphAndSolveFunction · 0.80
InitGraphFunction · 0.80
AddRangeMeasurements2DFunction · 0.80
mainFunction · 0.80
TESTFunction · 0.80

Calls 1

findMethod · 0.80

Tested by 6

TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
ATEFunction · 0.64
MaxAbsErrorFunction · 0.64