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

Method getUniqueIDs

include/DataSet.h:608–629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

606 }
607
608 bool getUniqueIDs(const KeyType &ID, std::vector<UniqueID> &IDs) const
609 {
610 if(this->checkID(ID))
611 {
612 /** loop over timestamps */
613 const ObjectStream &StreamRef = _DataStreams.at(ID);
614 for(auto it = StreamRef.begin(); it != StreamRef.end(); it = StreamRef.upper_bound(it->first))
615 {
616 /** loop over elements at one timestamp */
617 for(int n = 0; n < static_cast<int>(this->countElement(ID, it->first)); ++n)
618 {
619 IDs.push_back(UniqueID(ID, it->first, n));
620 }
621 }
622 return true;
623 }
624 else
625 {
626 PRINT_ERROR("There is no ID: ", ID);
627 return false;
628 }
629 }
630
631 bool getTimesOfID(const KeyType &ID, std::vector<double> &Times) const
632 {

Callers 1

getFactorIDsMethod · 0.80

Calls 6

checkIDMethod · 0.95
countElementMethod · 0.95
UniqueIDClass · 0.85
beginMethod · 0.80
endMethod · 0.80
upper_boundMethod · 0.80

Tested by

no test coverage detected