Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Set< TYPE > Class Template Reference

#include <Set.h>

List of all members.

Public Member Functions

 Set (const unsigned int s=0)
virtual ~Set ()
TYPE * getArray () const
TYPE & operator[] (const unsigned int i) const
unsigned int getCount () const
unsigned int add (const TYPE &)
void remove (const unsigned int i)
void removeObject (const TYPE &)
void clear ()
void reset ()

Private Attributes

unsigned int size
unsigned int count
TYPE * list


Detailed Description

template<class TYPE>
class Set< TYPE >

Set.h

Author: Petter Alstermark, petter@alstermark.com

Definition at line 14 of file Set.h.


Constructor & Destructor Documentation

template<class TYPE>
Set< TYPE >::Set const unsigned int  s = 0  ) 
 

Definition at line 36 of file Set.h.

References Set< TYPE >::count, and Set< TYPE >::list.

template<class TYPE>
Set< TYPE >::~Set  )  [virtual]
 

Definition at line 49 of file Set.h.

References Set< TYPE >::list.


Member Function Documentation

template<class TYPE>
unsigned int Set< TYPE >::add const TYPE &   ) 
 

Definition at line 81 of file Set.h.

References Set< TYPE >::count, and Set< TYPE >::list.

Referenced by Object::addFormat(), Renderer::insertFragmentShader(), Renderer::insertShader(), Renderer::insertTexture(), Renderer::insertVertexShader(), and ObjLevel::load().

template<class TYPE>
void Set< TYPE >::clear  ) 
 

Definition at line 122 of file Set.h.

References Set< TYPE >::count.

template<class TYPE>
TYPE * Set< TYPE >::getArray  )  const
 

Definition at line 57 of file Set.h.

References Set< TYPE >::list.

Referenced by ObjLevel::load().

template<class TYPE>
unsigned int Set< TYPE >::getCount  )  const
 

Definition at line 73 of file Set.h.

References Set< TYPE >::count.

Referenced by OpenGLObject::draw(), Object::findAttribute(), Renderer::insertFragmentShader(), Renderer::insertShader(), Renderer::insertTexture(), Renderer::insertVertexShader(), and ObjLevel::load().

template<class TYPE>
TYPE & Set< TYPE >::operator[] const unsigned int  i  )  const
 

Definition at line 65 of file Set.h.

References Set< TYPE >::list.

template<class TYPE>
void Set< TYPE >::remove const unsigned int  i  ) 
 

Definition at line 98 of file Set.h.

References Set< TYPE >::count, and Set< TYPE >::list.

Referenced by Set< TYPE >::removeObject().

template<class TYPE>
void Set< TYPE >::removeObject const TYPE &   ) 
 

Definition at line 109 of file Set.h.

References Set< TYPE >::count, Set< TYPE >::list, and Set< TYPE >::remove().

Here is the call graph for this function:

template<class TYPE>
void Set< TYPE >::reset  ) 
 

Definition at line 130 of file Set.h.

References Set< TYPE >::count, and Set< TYPE >::list.


Member Data Documentation

template<class TYPE>
unsigned int Set< TYPE >::count [private]
 

Definition at line 28 of file Set.h.

Referenced by Set< TYPE >::add(), Set< TYPE >::clear(), Set< TYPE >::getCount(), Set< TYPE >::remove(), Set< TYPE >::removeObject(), Set< TYPE >::reset(), and Set< TYPE >::Set().

template<class TYPE>
TYPE* Set< TYPE >::list [private]
 

Definition at line 29 of file Set.h.

Referenced by Set< TYPE >::add(), Set< TYPE >::getArray(), Set< TYPE >::operator[](), Set< TYPE >::remove(), Set< TYPE >::removeObject(), Set< TYPE >::reset(), Set< TYPE >::Set(), and Set< TYPE >::~Set().

template<class TYPE>
unsigned int Set< TYPE >::size [private]
 

Definition at line 28 of file Set.h.


Generated on Sun Jun 5 15:51:02 2005 for Defacto by  doxygen 1.4.3