Open Lighting Architecture
0.9.4
|
Represents a set of RDM UIDs.
Public Types | |
typedef std::set< UID > ::const_iterator | Iterator |
the Iterator for a UIDSets |
Public Member Functions | |
UIDSet () | |
Construct an empty set. | |
UIDSet (const UIDSet &other) | |
Copy constructor. | |
UIDSet & | operator= (const UIDSet &other) |
Assignment operator. | |
void | Clear () |
Remove all members from the set. | |
unsigned int | Size () const |
Return the number of UIDs in the set. | |
void | AddUID (const UID &uid) |
Add a UID to the set. | |
void | RemoveUID (const UID &uid) |
Remove a UID from the set. | |
bool | Contains (const UID &uid) const |
Check if the set contains a UID. | |
UIDSet | Union (const UIDSet &other) |
Return the union of this set and another UIDSet. | |
Iterator | Begin () const |
Return an Iterator to the first member of the set. | |
Iterator | End () const |
Return an Iterator to one-pass-the-last member of the set. | |
UIDSet | SetDifference (const UIDSet &other) |
Return the UIDs in this set that don't exist in other. | |
bool | operator== (const UIDSet &other) const |
Equality operator. | |
bool | operator!= (const UIDSet &other) const |
Inequality operator. | |
std::string | ToString () const |
Convert a UIDSet to a human readable string. |
Friends | |
std::ostream & | operator<< (std::ostream &out, const UIDSet &uid_set) |
A helper function to write a UIDSet to an ostream. |
|
inline |
Copy constructor.
other | the UIDSet to copy. |
|
inline |
|
inline |
|
inline |
Inequality operator.
other | the UIDSet to compare to. |
|
inline |
Equality operator.
other | the UIDSet to compare to. |
|
inline |
|
inline |
Return the number of UIDs in the set.
|
inline |
Convert a UIDSet to a human readable string.
|
friend |