class ElemSetAny

A set of elements. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

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.

typedef set<T> Set

Set

typedef Set::iterator iterator

iterator

typedef Set::const_iterator const_iterator

const_iterator

static const char* id

id

static Hash _hash

_hash

void  set_hash (const Hash& x)

set_hash

Reimplemented from Element.

Hash  hash ()

hash

[const]

Reimplemented from Element.

 ElemSetAny (const Set& val)

ElemSetAny

 ElemSetAny (const char* c_str)

ElemSetAny

Parameters:

c_strinitialize from string in the form element1,element2,...
 ElemSetAny ()

ElemSetAny

string  str ()

str

[const]

Returns: string representation of set.

Reimplemented from Element.

void  insert (const T& s)

insert

Parameters:

selement to insert.
void  insert (const ElemSetAny<T>& s)

insert

Insert all elements of other set.

Parameters:

sset to insert.
bool  operator== (const ElemSetAny<T>& rhs)

operator==

[const]

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

Parameters:

rhsset to compare with
bool  operator!= (const ElemSetAny<T>& rhs)

operator!=

[const]

Left and right are not identical

Parameters:

rhsset to compare with
bool  operator< (const ElemSetAny<T>& rhs)

operator<

[const]

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

Parameters:

rhsset to compare with
bool  operator> (const ElemSetAny<T>& rhs)

operator>

[const]

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

Parameters:

rhsset to compare with
bool  operator<= (const ElemSetAny<T>& rhs)

operator<=

[const]

Left is a subset of right.

Parameters:

rhsset to compare with
bool  operator>= (const ElemSetAny<T>& rhs)

operator>=

[const]

Right is a subset of left.

Parameters:

rhsset to compare with
bool  operator< (const T& 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 T& 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 T& 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 T& rhs)

operator!=

[const]

Disjoint sets.

Will be true if element is not contained in set.

Parameters:

rhselement to compare with.
bool  operator<= (const T& 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 T& rhs)

operator>=

[const]

Right is a subset of left.

Will be true if element is contained in set.

Parameters:

rhselement to compare with.
bool  nonempty_intersection (const ElemSetAny<T>& rhs)

nonempty_intersection

[const]

Returns: true if intersection is not empty

void  erase (const ElemSetAny<T>& rhs)

erase

Removes elements in set.

Parameters:

selements to remove.
iterator  begin ()

begin

Obtain iterator for set.

Returns: iterator for the set.

iterator  end ()

end

Obtain an iterator for the end.

Returns: iterator for the end of the set.

const_iterator  begin ()

begin

[const]

Obtain const iterator for set.

Returns: const iterator for the set.

const_iterator  end ()

end

[const]

Obtain an const iterator for the end.

Returns: const iterator for the end of the set.

const char*  type ()

type

[const]

Reimplemented from Element.


Generated by: pavlin on possum.icir.org on Wed Mar 21 11:23:38 2007, using kdoc $.