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

Method getTimeNext

include/DataSet.h:264–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262 }
263
264 bool getTimeNext(const KeyType &ID, const double Timestamp, double& NextTimeStamp) const
265 {
266 if(this->checkElement(ID, Timestamp))
267 {
268 auto It = _DataStreams.at(ID).upper_bound(Timestamp);
269
270 if (It != _DataStreams.at(ID).end())
271 {
272 NextTimeStamp = It->first;
273 }
274 else
275 {
276 return false;
277 }
278 return true;
279 }
280 else
281 {
282 PRINT_ERROR("Key does not exist: ", ID);
283 return false;
284 }
285 }
286
287 bool getTimePrev(const KeyType &ID, const double Timestamp, double& PrevTimeStamp) const
288 {

Callers 15

getElementsBetweenMethod · 0.95
getTimesBetweenMethod · 0.95
getTimesBelowOrEqualMethod · 0.95
CreateGraphAndSolveFunction · 0.80
CreateGraphAndSolveFunction · 0.80
InitGraphFunction · 0.80
mainFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
ATEFunction · 0.80
MaxAbsErrorFunction · 0.80
WriteDataToFileFunction · 0.80

Calls 3

checkElementMethod · 0.95
upper_boundMethod · 0.80
endMethod · 0.80

Tested by 4

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