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

Method getTimesOfID

include/DataSet.h:631–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629 }
630
631 bool getTimesOfID(const KeyType &ID, std::vector<double> &Times) const
632 {
633 if(this->checkID(ID))
634 {
635 const ObjectStream &StreamRef = _DataStreams.at(ID);
636 for(auto it = StreamRef.begin(); it != StreamRef.end(); it = StreamRef.upper_bound(it->first))
637 {
638 Times.push_back(it->first);
639 }
640 return true;
641 }
642 else
643 {
644 PRINT_ERROR("There is no ID: ", ID);
645 return false;
646 }
647 }
648
649 bool getTimesBetween(const KeyType &ID, const double StartTime, const double EndTime, std::vector<double> &Times) const
650 {

Callers

nothing calls this directly

Calls 4

checkIDMethod · 0.95
beginMethod · 0.80
endMethod · 0.80
upper_boundMethod · 0.80

Tested by

no test coverage detected