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

Method _FindBorders

include/DataSet.h:767–787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

765 }
766
767 bool _FindBorders(const KeyType &ID, const double Start, const double End, double &StartTrue, double &EndTrue) const
768 {
769 if(Start > End)
770 {
771 PRINT_ERROR("Start: ", Start, " is grater than End: ", End);
772 return false;
773 }
774
775 if(!this->getTimeAbove(ID, Start, StartTrue))
776 {
777 PRINT_ERROR("There is no object above: ", Start);
778 return false;
779 }
780
781 if(!this->getTimeBelow(ID, End, EndTrue))
782 {
783 PRINT_ERROR("There is no object above: ", End);
784 return false;
785 }
786 return true;
787 }
788
789 std::map<KeyType, ObjectStream> _DataStreams;
790

Callers

nothing calls this directly

Calls 2

getTimeAboveMethod · 0.95
getTimeBelowMethod · 0.95

Tested by

no test coverage detected