| 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 | { |
no test coverage detected