All sets hold a string representation of the elements. All type information will be lost, as elements will all be promoted to strings.
static const char* id | id |
ElemSet (const set<string>& val)
| ElemSet |
ElemSet (const char* c_str)
| ElemSet |
Parameters:
c_str | initialize from string in the form element1,element2,... |
ElemSet ()
| ElemSet |
string str ()
| str |
[const]
Returns: string representation of set.
Reimplemented from Element.
void insert (const string& s)
| insert |
Parameters:
s | string representation of element to insert |
bool operator== (const ElemSet& rhs)
| operator== |
[const]
Left and right sets are identical [same elements and size].
Parameters:
rhs | set to compare with |
bool operator!= (const ElemSet& rhs)
| operator!= |
[const]
Left and right are not identical
Parameters:
rhs | set to compare with |
bool operator< (const ElemSet& rhs)
| operator< |
[const]
All elements on left match, but right has more elments.
Parameters:
rhs | set to compare with |
bool operator> (const ElemSet& rhs)
| operator> |
[const]
All elements on right match, but left has more elements.
Parameters:
rhs | set to compare with |
bool operator<= (const ElemSet& rhs)
| operator<= |
[const]
Left is a subset of right.
Parameters:
rhs | set to compare with |
bool operator>= (const ElemSet& rhs)
| operator>= |
[const]
Right is a subset of left.
Parameters:
rhs | set to compare with |
bool operator< (const Element& rhs)
| operator< |
[const]
All elements on left match, but right has more.
May only be true if left is an empty set.
Parameters:
rhs | element to compare with. |
bool operator> (const Element& rhs)
| operator> |
[const]
All elements on on right match, but left has more.
Will be true if the element is present in the set, and the set contains at least one more element.
Parameters:
rhs | element to compare with. |
bool operator== (const Element& rhs)
| operator== |
[const]
Left and right are identical.
Will be true in a single element set which contains the rhs element.
Parameters:
rhs | element to compare with. |
bool operator!= (const Element& rhs)
| operator!= |
[const]
Disjoint sets.
Will be true if element is not contained in set.
Parameters:
rhs | element to compare with. |
bool operator<= (const Element& rhs)
| operator<= |
[const]
Left is a subset of right.
Will be true if set is empty or contains rhs.
Parameters:
rhs | element to compare with. |
bool operator>= (const Element& rhs)
| operator>= |
[const]
Right is a subset of left.
Will be true if element is contained in set.
Parameters:
rhs | element to compare with. |
const set<string>& get_set ()
| get_set |
[const]
Returns: reference to the actual set.