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

Method getElements

include/DataSet.h:531–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

529 }
530
531 std::vector<ObjectType> getElements(const KeyType &ID, const double Timestamp) const
532 {
533 std::vector<ObjectType> Objects;
534
535 if(this->checkID(ID))
536 {
537 auto Range = _DataStreams.at(ID).equal_range(Timestamp);
538 for (auto it = Range.first; it != Range.second; ++it)
539 {
540 Objects.push_back(it->second);
541 }
542 }
543
544 if(Objects.empty())
545 {
546 PRINT_WARNING("Returned empty vector!");
547 }
548 return Objects;
549 }
550
551 std::vector<ObjectType> getElementsBetween(const KeyType &ID, const double TimeBegin, const double TimeEnd) const
552 {

Callers 1

getElementsBetweenMethod · 0.95

Calls 3

checkIDMethod · 0.95
equal_rangeMethod · 0.80
emptyMethod · 0.80

Tested by

no test coverage detected