MemoryID_operators.cpp
Go to the documentation of this file.
1 #include "MemoryID_operators.h"
2 
3 #include "MemoryID.h"
4 
5 
6 std::ostream& armarx::armem::operator<<(std::ostream& os, const std::vector<MemoryID>& rhs)
7 {
8  os << "std::vector<MemoryID> with " << rhs.size() << " entries:";
9  for (size_t i = 0; i < rhs.size(); ++i)
10  {
11  os << "\n\t[" << i << "] " << rhs[i];
12  }
13  return os;
14 }
15 
16 
18 {
19  return lhs.timestamp < rhs.timestamp;
20 }
21 
22 
24 {
25  return lhs.timestamp > rhs.timestamp;
26 }
armarx::armem::MemoryID::timestamp
Time timestamp
Definition: MemoryID.h:54
MemoryID.h
MemoryID_operators.h
armarx::armem::operator<<
std::ostream & operator<<(std::ostream &os, const EntityUpdate &rhs)
Definition: Commit.cpp:13
armarx::armem::MemoryID
A memory ID.
Definition: MemoryID.h:47
armarx::armem::compareTimestamp
bool compareTimestamp(const MemoryID &lhs, const MemoryID &rhs)
lhs.timestamp < rhs.timstamp
Definition: MemoryID_operators.cpp:17
armarx::armem::compareTimestampDecreasing
bool compareTimestampDecreasing(const MemoryID &lhs, const MemoryID &rhs)
lhs.timestamp > rhs.timstamp
Definition: MemoryID_operators.cpp:23