Inheritance diagram for OFSet< T >:
Public Member Functions | |
OFSet () | |
Default constructor. | |
void | init () |
This function is a workaround for avoiding a compiler warning on Solaris 2.5.1 using compiler SC 2.0.1. | |
OFSet (const OFSet< T > &src) | |
Copy constructor. | |
void | init (const OFSet< T > &src) |
This function is a workaround for avoiding a compiler warning on Solaris 2.5.1 using compiler SC 2.0.1. | |
virtual | ~OFSet () |
Destructor. | |
const OFSet< T > & | operator= (const OFSet< T > &src) |
operator=. | |
virtual T & | operator[] (unsigned int i) const |
Returns a certain element which is contained in the set. | |
virtual void | Resize (unsigned int newSize) |
Resizes the set. | |
virtual void | Clear () |
Removes all items from the set. | |
virtual OFBool | IsEmpty () const |
Determines if the set is an empty set. | |
virtual unsigned int | NumberOfElements () const |
Returns the number of elements in the set. | |
virtual void | Insert (const T &item)=0 |
Inserts a new item into the set. | |
virtual void | Remove (const T &item)=0 |
Removes one item from the set. | |
virtual void | RemoveByIndex (unsigned int idx)=0 |
Removes one item from the set. | |
virtual T * | Find (const T &item) const =0 |
Tries to find a given object in the set. | |
virtual OFBool | Contains (const T &item) const =0 |
Determines if a certain item is contained in the set. | |
OFSet () | |
Default constructor. | |
void | init () |
This function is a workaround for avoiding a compiler warning on Solaris 2.5.1 using compiler SC 2.0.1. | |
OFSet (const OFSet< T > &src) | |
Copy constructor. | |
void | init (const OFSet< T > &src) |
This function is a workaround for avoiding a compiler warning on Solaris 2.5.1 using compiler SC 2.0.1. | |
virtual | ~OFSet () |
Destructor. | |
const OFSet< T > & | operator= (const OFSet< T > &src) |
operator=. | |
virtual T & | operator[] (unsigned int i) const |
Returns a certain element which is contained in the set. | |
virtual void | Resize (unsigned int newSize) |
Resizes the set. | |
virtual void | Clear () |
Removes all items from the set. | |
virtual OFBool | IsEmpty () const |
Determines if the set is an empty set. | |
virtual unsigned int | NumberOfElements () const |
Returns the number of elements in the set. | |
virtual void | Insert (const T &item)=0 |
Inserts a new item into the set. | |
virtual void | Remove (const T &item)=0 |
Removes one item from the set. | |
virtual void | RemoveByIndex (unsigned int idx)=0 |
Removes one item from the set. | |
virtual T * | Find (const T &item) const =0 |
Tries to find a given object in the set. | |
virtual OFBool | Contains (const T &item) const =0 |
Determines if a certain item is contained in the set. | |
Protected Attributes | |
T ** | items |
unsigned int | num |
unsigned int | size |
T ** | items |
Definition at line 46 of file ofset.h.
|
Copy constructor.
|
|
Copy constructor.
|
|
Determines if a certain item is contained in the set.
Implemented in OFOrderedSet< T >, OFUnorderedSet< T >, OFOrderedSet< T >, and OFUnorderedSet< T >. |
|
Determines if a certain item is contained in the set.
Implemented in OFOrderedSet< T >, OFUnorderedSet< T >, OFOrderedSet< T >, and OFUnorderedSet< T >. |
|
Tries to find a given object in the set. In case the specified object could be found, a pointer to the corresponding element within the set is returned; in case the specified object could not be found, NULL will be returned.
Implemented in OFOrderedSet< T >, OFUnorderedSet< T >, OFOrderedSet< T >, and OFUnorderedSet< T >. |
|
Tries to find a given object in the set. In case the specified object could be found, a pointer to the corresponding element within the set is returned; in case the specified object could not be found, NULL will be returned.
Implemented in OFOrderedSet< T >, OFUnorderedSet< T >, OFOrderedSet< T >, and OFUnorderedSet< T >. |
|
Inserts a new item into the set.
Implemented in OFOrderedSet< T >, OFUnorderedSet< T >, OFOrderedSet< T >, and OFUnorderedSet< T >. |
|
Inserts a new item into the set.
Implemented in OFOrderedSet< T >, OFUnorderedSet< T >, OFOrderedSet< T >, and OFUnorderedSet< T >. |
|
Determines if the set is an empty set.
|
|
Determines if the set is an empty set.
|
|
Returns the number of elements in the set.
|
|
Returns the number of elements in the set.
Definition at line 217 of file ofset.h. Referenced by OFSetIterator< T >::Next(), OFSetIterator< T >::Object(), OFSetIterator< T >::Prev(), and OFSetIterator< T >::ResetEnd(). |
|
operator=.
Definition at line 113 of file ofset.h. References OFSet< T >::items, OFSet< T >::num, and OFSet< T >::size. |
|
operator=.
Definition at line 113 of file ofset.h. References OFSet< T >::items, OFSet< T >::num, and OFSet< T >::size. Referenced by OFUnorderedSet< T >::operator=(). |
|
Returns a certain element which is contained in the set. Note that the original object which actually is contained in the set will be returned, and not a copy of the object. Further note that if the specified index is out of range, a newly default constructed object of class T will be returned.
|
|
Returns a certain element which is contained in the set. Note that the original object which actually is contained in the set will be returned, and not a copy of the object. Further note that if the specified index is out of range, a newly default constructed object of class T will be returned.
|
|
Removes one item from the set.
Implemented in OFOrderedSet< T >, OFUnorderedSet< T >, OFOrderedSet< T >, and OFUnorderedSet< T >. |
|
Removes one item from the set.
Implemented in OFOrderedSet< T >, OFUnorderedSet< T >, OFOrderedSet< T >, and OFUnorderedSet< T >. |
|
Removes one item from the set.
Implemented in OFOrderedSet< T >, OFUnorderedSet< T >, OFOrderedSet< T >, and OFUnorderedSet< T >. |
|
Removes one item from the set.
Implemented in OFOrderedSet< T >, OFUnorderedSet< T >, OFOrderedSet< T >, and OFUnorderedSet< T >. |
|
Resizes the set. If newSize is lower than the current number of elements in the set, this function doesn't do anything.
|
|
Resizes the set. If newSize is lower than the current number of elements in the set, this function doesn't do anything.
Definition at line 164 of file ofset.h. Referenced by OFUnorderedSet< T >::Insert(), OFOrderedSet< T >::Insert(), and OFOrderedSet< T >::InsertAt(). |