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

Method getTimeAbove

include/DataSet.h:336–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334 }
335
336 bool getTimeAbove(const KeyType &ID, const double Timestamp, double& NextTimeStamp) const
337 {
338 if (!this->checkID(ID))
339 {
340 PRINT_ERROR("Key does not exist: ", ID);
341 return false;
342 }
343
344 const auto It = _DataStreams.at(ID).upper_bound(Timestamp);
345
346 if (It != _DataStreams.at(ID).end())
347 {
348 NextTimeStamp = It->first;
349 return true;
350 }
351 else
352 {
353 return false;
354 }
355 }
356
357 bool getTimeBelow(const KeyType &ID, const double TimeIn, double& TimeOut) const
358 {

Callers 1

_FindBordersMethod · 0.95

Calls 3

checkIDMethod · 0.95
upper_boundMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected