|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CPtrSet Class Template ReferenceThis is a Tool class.
More...
#include <ptr_set.h>
List of all members.
Public Methods |
|
| CPtrSet () |
| ~CPtrSet () |
|
T * | insert (T *newObject) |
| insert a new element to the set. More...
|
void | erase (T *objectToRemove, const char *errorString="Object do not exist in the set") |
| erase an element from the set. More...
|
void | clear () |
| Delete all element from the set, and clear the set. More...
|
Public Attributes |
std::set< T * > | Set |
Detailed Description
template<class T>
class NL3D::CPtrSet< T >
This is a Tool class.
A ptr set is simply a set of object Pointer, with simple insert/erase/clear. The allocation is made at insertion by client, but deletion is automatically done by erase/clear. You got public acces to the STL set, so be aware of what you do!! -
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2001
Definition at line 46 of file ptr_set.h.
Constructor & Destructor Documentation
template<class T> |
NL3D::CPtrSet< T >::CPtrSet |
( |
|
) |
[inline] |
|
template<class T> |
NL3D::CPtrSet< T >::~CPtrSet |
( |
|
) |
[inline] |
|
Member Function Documentation
template<class T> |
void NL3D::CPtrSet< T >::clear |
( |
void |
|
) |
[inline] |
|
template<class T> |
void NL3D::CPtrSet< T >::erase |
( |
T * |
objectToRemove, |
|
|
const char * |
errorString = "Object do not exist in the set" |
|
) |
[inline] |
|
|
erase an element from the set.
nlerror(errorString) if not found!! NO OP if NULL. For simplicity, return newObject!!!
Definition at line 72 of file ptr_set.h. |
template<class T> |
T* NL3D::CPtrSet< T >::insert |
( |
T * |
newObject |
) |
[inline] |
|
|
insert a new element to the set.
You should pass a conventionnal allocated object. For simplicity, return newObject!!!
Definition at line 64 of file ptr_set.h. |
Member Data Documentation
template<class T> |
std::set<T*> NL3D::CPtrSet::Set
|
|
The documentation for this class was generated from the following file:
|
|