Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages

Set Class Reference

A set class. More...

List of all members.

Public Member Functions

 Set ()
 Create empty set.
 Set (ArrayList list)
 Create set from ArrayList.
void Add (object o)
void Remove (object o)
void Join (Set s)
 Joins set s with 'this' set. The result is stored in 'this' set.
bool Contains (object o)
ArrayList ToArrayList ()
SetEnumerator GetEnumerator ()
 Makes foreach possible with sets.

Static Public Member Functions

static ArrayList SetDiff (ArrayList a, ArrayList b)
 Computes the setdiff, which is all members of a which is not in b.

Private Attributes

Hashtable _hashtable = new Hashtable()


Detailed Description

A set class.

This is not an ideal implementation and it is not going to be. It is just around until the .net framework gets its own Set class.


Constructor & Destructor Documentation

Set::Set  )  [inline]
 

Create empty set.

Set::Set ArrayList  list  )  [inline]
 

Create set from ArrayList.


Member Function Documentation

void Set::Add object  o  )  [inline]
 

bool Set::Contains object  o  )  [inline]
 

SetEnumerator Set::GetEnumerator  )  [inline]
 

Makes foreach possible with sets.

See also:
SetEnumerator

void Set::Join Set  s  )  [inline]
 

Joins set s with 'this' set. The result is stored in 'this' set.

void Set::Remove object  o  )  [inline]
 

static ArrayList Set::SetDiff ArrayList  a,
ArrayList  b
[inline, static]
 

Computes the setdiff, which is all members of a which is not in b.

ArrayList Set::ToArrayList  )  [inline]
 


Member Data Documentation

Hashtable Set::_hashtable = new Hashtable() [private]
 


The documentation for this class was generated from the following file: SourceForge.net Logo