template class CBNSSet : public vector

This is a container class derived from STL vector and is used to store the BNS objects

Inheritance:


Public Fields

static int m_nCounter
This member varaible is used to check for the memory leak in the program

Public

Constructor and Destructor
CBNSSet ()
Defalut Construtor
CBNSSet (const CBNSSet& OldSet)
Copy Construtor, copies the contents of OldSet
CBNSSet (vector &vVec)
Constructor having a vector of objects as a parameter
~CBNSSet ()
Destrutor
Utility Functions
bool AddMember (T &aObject)
Returns true when aObject is added to the set
bool RemoveMember (T &aObject)
Returns true when aObject is deleted from the set
bool IsFirst (T &aObject)
Returns true when aObject is the first element in the set
bool IsLast (T &aObject)
Returns true when aObject is the last element in the set
bool isUnique (T &aObject)
Returns true when aObject does not exist in the set
bool isNotInSet (T &aObject, CBNSSet &bTest)
Returns true when aObject is not in bTest set
T GetFirst ()
Returns the first element in the set
T GetLast ()
Returns the last element in the set
CBNSSet SetUnion (CBNSSet &bInput, CBNSSet &bNewSet)
Returns the union of bInput set with this set in bNewSet
CBNSSet SetIntersection (CBNSSet &bInput, CBNSSet &bNewSet)
Returns the intersection of bInput set with this set in bNewSet
CBNSSet SetDifference (CBNSSet &bInput, CBNSSet &bNewSet)
Returns the difference between this set andf bInput set in bNewSet
CBNSSet ::iterator find (const T &t)
Returns the iterator that points to the element t

Documentation

This is a container class derived from STL vector and is used to store the BNS objects
static int m_nCounter
This member varaible is used to check for the memory leak in the program

Constructor and Destructor

CBNSSet()
Defalut Construtor

CBNSSet(const CBNSSet& OldSet)
Copy Construtor, copies the contents of OldSet
Parameters:
OldSet - a CBNSSet

CBNSSet(vector &vVec)
Constructor having a vector of objects as a parameter. Duplicates present in the vector are checked and are not inserted in the set.
Parameters:
vVec - a vector of objects

~CBNSSet()
Destrutor

Utility Functions

bool AddMember(T &aObject)
Returns true when aObject is added to the set
Returns:
bool
Parameters:
aObject - a reference to an object of type T that is added to the set

bool RemoveMember(T &aObject)
Returns true when aObject is deleted from the set
Returns:
bool
Parameters:
aObject - a reference to an object of type T that is to be removed fromthe set

bool IsFirst(T &aObject)
Returns true when aObject is the first element in the set
Returns:
bool
Parameters:
aObject - a reference to an object of type T

bool IsLast(T &aObject)
Returns true when aObject is the last element in the set
Returns:
bool
Parameters:
aObject - a reference to an object of type T

bool isUnique(T &aObject)
Returns true when aObject does not exist in the set
Returns:
bool
Parameters:
aObject - a reference to an object of type T

bool isNotInSet(T &aObject, CBNSSet &bTest)
Returns true when aObject is not in bTest set
Returns:
bool
Parameters:
aObject - a reference to an object of type T
bTest - a CBNSSet object

T GetFirst()
Returns the first element in the set
Returns:
T

T GetLast()
Returns the last element in the set
Returns:
T

CBNSSet SetUnion(CBNSSet &bInput, CBNSSet &bNewSet)
Returns the union of bInput set with this set in bNewSet
Returns:
CBNSSet
Parameters:
bInput - a CBNSSet of objects
bNewSet - the union set is returned in this CBNSSet

CBNSSet SetIntersection(CBNSSet &bInput, CBNSSet &bNewSet)
Returns the intersection of bInput set with this set in bNewSet
Returns:
CBNSSet
Parameters:
bInput - a CBNSSet of objects
bNewSet - the intersection set is returned in this CBNSSet

CBNSSet SetDifference(CBNSSet &bInput, CBNSSet &bNewSet)
Returns the difference between this set andf bInput set in bNewSet
Returns:
CBNSSet
Parameters:
bInput - a CBNSSet of objects
bNewSet - the difference set is returned in this CBNSSet

CBNSSet ::iterator find(const T &t)
Returns the iterator that points to the element t
Parameters:
t - a reference to an object of type T


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de