check if an element exists */
| 126 | |
| 127 | /** check if an element exists */ |
| 128 | int countElement(const KeyType &ID, const double Timestamp) const |
| 129 | { |
| 130 | if (!this->checkID(ID)) |
| 131 | { |
| 132 | return 0; |
| 133 | } |
| 134 | else |
| 135 | { |
| 136 | return _DataStreams.at(ID).count(Timestamp); |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | int countElements(const KeyType &ID) const |
| 141 | { |