29 #ifndef INCLUDE_OLA_RDM_UIDSET_H_
30 #define INCLUDE_OLA_RDM_UIDSET_H_
53 typedef std::set<UID>::const_iterator
Iterator;
65 m_uids(other.m_uids) {
73 m_uids = other.m_uids;
89 unsigned int Size()
const {
115 return m_uids.find(uid) != m_uids.end();
124 std::set<UID> result;
125 set_union(m_uids.begin(),
129 inserter(result, result.begin()));
137 return m_uids.begin();
153 std::set<UID> difference;
154 std::set_difference(m_uids.begin(),
156 other.m_uids.begin(),
158 std::inserter(difference, difference.begin()));
159 return UIDSet(difference);
167 return m_uids == other.m_uids;
175 return !(*
this == other);
183 std::stringstream str;
184 std::set<UID>::const_iterator iter;
185 for (iter = m_uids.begin(); iter != m_uids.end(); ++iter) {
186 if (iter != m_uids.begin())
203 std::set<UID> m_uids;
205 explicit UIDSet(
const std::set<UID> uids) {
211 #endif // INCLUDE_OLA_RDM_UIDSET_H_