| 182 | } |
| 183 | |
| 184 | bool getElement(const KeyType &ID, const double Timestamp, const int Number, ObjectType& Element) const |
| 185 | { |
| 186 | if (checkElement(ID, Timestamp, Number)) |
| 187 | { |
| 188 | auto It = _DataStreams.at(ID).find(Timestamp); |
| 189 | std::advance(It, Number); |
| 190 | Element = It->second; |
| 191 | return true; |
| 192 | } |
| 193 | else |
| 194 | { |
| 195 | return false; |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | bool setElement(const KeyType &ID, const double Timestamp, const int Number, ObjectType& Element) |
| 200 | { |