My Project
Public Types | Public Member Functions | Protected Attributes | List of all members
ParaEngine::Collection_Map< T > Class Template Reference

Default behavior of the collection adds only reference. More...

#include <ICollection.h>

Inheritance diagram for ParaEngine::Collection_Map< T >:
ParaEngine::ICollection< T >

Public Types

typedef map< int, T * > CollectionMap_type
 

Public Member Functions

T * GetAt (int index)
 
const T * GetAt (int index) const
 
int CopyInsert (T *obj, int index)
 
int Insert (T *obj, int index)
 
void Clear ()
 
int Remove (int index)
 
int Remove ()
 
void CopyAdd (const T *obj)
 
void Add (T *obj)
 
int CopySetAt (const T *obj, int index)
 
int SetAt (T *obj, int index)
 
int IndexOf (const T *obj) const
 
int Size () const
 
int Resize (int newsize)
 

Protected Attributes

CollectionMap_type m_items
 
int m_nSize
 

Detailed Description

template<class T>
class ParaEngine::Collection_Map< T >

Default behavior of the collection adds only reference.

But you can use the CopyXXX methods to add a copy to the collection. Template class T must inherited from IObject


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