class ElemSet

A set of elements. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Public Members


Detailed Description

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_strinitialize 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:

sstring representation of element to insert
bool  operator== (const ElemSet& rhs)

operator==

[const]

Left and right sets are identical [same elements and size].

Parameters:

rhsset to compare with
bool  operator!= (const ElemSet& rhs)

operator!=

[const]

Left and right are not identical

Parameters:

rhsset to compare with
bool  operator< (const ElemSet& rhs)

operator<

[const]

All elements on left match, but right has more elments.

Parameters:

rhsset to compare with
bool  operator> (const ElemSet& rhs)

operator>

[const]

All elements on right match, but left has more elements.

Parameters:

rhsset to compare with
bool  operator<= (const ElemSet& rhs)

operator<=

[const]

Left is a subset of right.

Parameters:

rhsset to compare with
bool  operator>= (const ElemSet& rhs)

operator>=

[const]

Right is a subset of left.

Parameters:

rhsset 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:

rhselement 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:

rhselement 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:

rhselement to compare with.
bool  operator!= (const Element& rhs)

operator!=

[const]

Disjoint sets.

Will be true if element is not contained in set.

Parameters:

rhselement 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:

rhselement 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:

rhselement to compare with.
const set<string>&  get_set ()

get_set

[const]

Returns: reference to the actual set.


Generated by: pavlin on possum.icir.org on Wed Apr 13 21:53:12 2005, using kdoc $.