Craig's Utility Library  4.0 Beta
Utilities.DataTypes.Set< T > Class Template Reference

Class to be used for sets of data More...

Inheritance diagram for Utilities.DataTypes.Set< T >:

Public Member Functions

 Set ()
 Constructor More...
 
 Set (int InitialSize)
 Constructor More...
 
virtual bool Contains (Set< T > Set)
 Used to tell if this set contains the other More...
 
override bool Equals (object obj)
 Determines if the two sets are equivalent More...
 
override int GetHashCode ()
 Returns the hash code for the object More...
 
virtual bool Intersect (Set< T > Set)
 Determines if the sets intersect More...
 
virtual bool IsSubset (Set< T > Set)
 Used to tell if this is a subset of the other More...
 
override string ToString ()
 Returns the set as a string More...
 

Static Public Member Functions

static Set< T > GetIntersection (Set< T > Set1, Set< T > Set2)
 Gets the intersection of set 1 and set 2 More...
 
static Set< T > operator- (Set< T > Set1, Set< T > Set2)
 Removes items from set 2 from set 1 More...
 
static bool operator!= (Set< T > Set1, Set< T > Set2)
 Determines if the two sets are not equivalent More...
 
static Set< T > operator+ (Set< T > Set1, Set< T > Set2)
 Adds two sets together More...
 
static bool operator== (Set< T > Set1, Set< T > Set2)
 Determines if the two sets are equivalent More...
 

Detailed Description

Class to be used for sets of data

Template Parameters
TType that the set holds

Definition at line 33 of file Set.cs.

Constructor & Destructor Documentation

Constructor

Definition at line 38 of file Set.cs.

Utilities.DataTypes.Set< T >.Set ( int  InitialSize)

Constructor

Parameters
InitialSizeInitial size

Definition at line 46 of file Set.cs.

Member Function Documentation

virtual bool Utilities.DataTypes.Set< T >.Contains ( Set< T >  Set)
virtual

Used to tell if this set contains the other

Parameters
SetSet to check against
Returns
True if it is, false otherwise

Definition at line 142 of file Set.cs.

override bool Utilities.DataTypes.Set< T >.Equals ( object  obj)

Determines if the two sets are equivalent

Parameters
objThe object to compare to
Returns
True if they are, false otherwise

Definition at line 153 of file Set.cs.

override int Utilities.DataTypes.Set< T >.GetHashCode ( )

Returns the hash code for the object

Returns
The hash code for the object

Definition at line 162 of file Set.cs.

static Set<T> Utilities.DataTypes.Set< T >.GetIntersection ( Set< T >  Set1,
Set< T >  Set2 
)
static

Gets the intersection of set 1 and set 2

Parameters
Set1Set 1
Set2Set 2
Returns
The intersection of the two sets

Definition at line 58 of file Set.cs.

virtual bool Utilities.DataTypes.Set< T >.Intersect ( Set< T >  Set)
virtual

Determines if the sets intersect

Parameters
SetSet to check against
Returns
True if they do, false otherwise

Definition at line 172 of file Set.cs.

virtual bool Utilities.DataTypes.Set< T >.IsSubset ( Set< T >  Set)
virtual

Used to tell if this is a subset of the other

Parameters
SetSet to check against
Returns
True if it is, false otherwise

Definition at line 187 of file Set.cs.

static bool Utilities.DataTypes.Set< T >.operator!= ( Set< T >  Set1,
Set< T >  Set2 
)
static

Determines if the two sets are not equivalent

Parameters
Set1Set 1
Set2Set 2
Returns
False if they are, true otherwise

Definition at line 98 of file Set.cs.

static Set<T> Utilities.DataTypes.Set< T >.operator+ ( Set< T >  Set1,
Set< T >  Set2 
)
static

Adds two sets together

Parameters
Set1Set 1
Set2Set 2
Returns
The joined sets

Definition at line 109 of file Set.cs.

static Set<T> Utilities.DataTypes.Set< T >.operator- ( Set< T >  Set1,
Set< T >  Set2 
)
static

Removes items from set 2 from set 1

Parameters
Set1Set 1
Set2Set 2
Returns
The resulting set

Definition at line 80 of file Set.cs.

static bool Utilities.DataTypes.Set< T >.operator== ( Set< T >  Set1,
Set< T >  Set2 
)
static

Determines if the two sets are equivalent

Parameters
Set1Set 1
Set2Set 2
Returns
True if they are, false otherwise

Definition at line 128 of file Set.cs.

override string Utilities.DataTypes.Set< T >.ToString ( )

Returns the set as a string

Returns
The set as a string

Definition at line 202 of file Set.cs.


The documentation for this class was generated from the following file: