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

Method addElement

include/DataSet.h:73–82  ·  view source on GitHub ↗

add an element according to its ID and Timestamp*/

Source from the content-addressed store, hash-verified

71
72 /** add an element according to its ID and Timestamp*/
73 void addElement(const KeyType &ID, const double &Timestamp, const ObjectType &Object)
74 {
75 if (!this->checkID(ID))
76 {
77 ObjectStream TempStream;
78 _DataStreams.emplace(ID, TempStream);
79 }
80
81 _DataStreams.at(ID).emplace(Timestamp, Object);
82 }
83
84 void removeElement(const KeyType &ID, const double Timestamp, const int Number)
85 {

Callers 3

mergeMethod · 0.95
EvaluateCostSurfaceFunction · 0.45
addFactorMethod · 0.45

Calls 2

checkIDMethod · 0.95
emplaceMethod · 0.80

Tested by

no test coverage detected