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

Method getTimeAboveOrEqual

include/DataSet.h:315–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313 }
314
315 bool getTimeAboveOrEqual(const KeyType &ID, const double TimeIn, double& TimeOut) const
316 {
317 if(!this->checkID(ID))
318 {
319 PRINT_ERROR("Key does not exist: ", ID);
320 return false;
321 }
322
323 auto It = _DataStreams.at(ID).lower_bound(TimeIn);
324
325 if (It != _DataStreams.at(ID).end())
326 {
327 TimeOut = It->first;
328 return true;
329 }
330 else
331 {
332 return false;
333 }
334 }
335
336 bool getTimeAbove(const KeyType &ID, const double Timestamp, double& NextTimeStamp) const
337 {

Callers 2

getElementsBetweenMethod · 0.95
_FindBordersEqualMethod · 0.95

Calls 3

checkIDMethod · 0.95
lower_boundMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected