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