![]() |
Open Lighting Architecture
Latest Git
|
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. More... | |
| 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. More... | |
| bool | Empty () const |
| Return whether the UID set is empty. More... | |
| void | AddUID (const UID &uid) |
| Add a UID to the set. More... | |
| void | RemoveUID (const UID &uid) |
| Remove a UID from the set. More... | |
| bool | Contains (const UID &uid) const |
| Check if the set contains a UID. More... | |
| UIDSet | Union (const UIDSet &other) |
| Return the union of this set and another UIDSet. More... | |
| 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. More... | |
| bool | operator== (const UIDSet &other) const |
| Equality operator. More... | |
| bool | operator!= (const UIDSet &other) const |
| Inequality operator. More... | |
| std::string | ToString () const |
| Convert a UIDSet to a human readable string. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const UIDSet &uid_set) |
| A helper function to write a UIDSet to an ostream. More... | |
|
inline |
Copy constructor.
| other | the UIDSet to copy. |
|
inline |
|
inline |
|
inline |
Return whether the UID set is empty.
|
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 |
1.8.13