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

Method getElementsOfID

include/DataSet.h:512–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510 }
511
512 std::vector<ObjectType> getElementsOfID(const KeyType &ID) const
513 {
514 std::vector<ObjectType> Objects;
515
516 if (_DataStreams.count(ID) > 0)
517 {
518 for(auto it = _DataStreams.at(ID).begin(); it != _DataStreams.at(ID).end(); ++it)
519 {
520 Objects.push_back(it->second);
521 }
522 }
523
524 if(Objects.empty())
525 {
526 PRINT_WARNING("Returned empty vector!");
527 }
528 return Objects;
529 }
530
531 std::vector<ObjectType> getElements(const KeyType &ID, const double Timestamp) const
532 {

Callers 1

getResidualIDsMethod · 0.80

Calls 4

countMethod · 0.80
beginMethod · 0.80
endMethod · 0.80
emptyMethod · 0.80

Tested by

no test coverage detected