|
"L. Spiro Engine"
|
Adds the ability to supply a specific allocator to a simple vector. More...
#include <LSTLVectorPoD.h>
Public Member Functions | |
| LSE_CALL | CVectorPoD (LSUINT32 _tTotal) |
| LSE_CALL | CVectorPoD (CAllocator *_paAllocator) |
| LSE_CALL | CVectorPoD (LSUINT32 _tTotal, CAllocator *_paAllocator) |
| LSE_CALL | CVectorPoD (const CVectorPoD< _tType, _tDataType, _uAllocSize > &_vOther, CAllocator *_paAllocator=NULL) |
| LSBOOL LSE_CALL | Allocate (LSUINT32 _ui32Total) |
| LSVOID LSE_CALL | Reset () |
| LSVOID LSE_CALL | SetAllocator (CAllocator *_paAllocator) |
| CAllocator *LSE_CALL | GetAllocator () |
Protected Attributes | |
| CAllocator * | m_paOurAllocator |
Adds the ability to supply a specific allocator to a simple vector.
Class CVectorPoD Description: Inherits from a simple vector and adds a member that allows defining an allocator. In order to use the allocator the Allocate() and Reset() functions are replaced. This vector should be used only for plain data types.
| LSBOOL LSE_CALL lstl::CVectorPoD< _tType, _tDataType, _uAllocSize >::Allocate | ( | LSUINT32 | _ui32Total | ) | [inline] |
Allocate a given number of elements. If the allocation is less than what there already is, items are removed.
| _ui32Total | The new total number of values to allocate. |
Reimplemented from lstl::CSVectorCrtp< CVectorPoD< _tType, _tDataType, _uAllocSize >, _tType, _tDataType, _uAllocSize >.
| CAllocator* LSE_CALL lstl::CVectorPoD< _tType, _tDataType, _uAllocSize >::GetAllocator | ( | ) | [inline] |
Get our allocator.
Reimplemented in lstl::CStringBase< _tDerived, _tDataType, _uAllocSize >, and lstl::CStringBase< CWString, wchar_t >.
| LSVOID LSE_CALL lstl::CVectorPoD< _tType, _tDataType, _uAllocSize >::Reset | ( | ) | [inline] |
Reset the list completely.
Reimplemented from lstl::CSVectorCrtp< CVectorPoD< _tType, _tDataType, _uAllocSize >, _tType, _tDataType, _uAllocSize >.
Reimplemented in lstl::CStringBase< _tDerived, _tDataType, _uAllocSize >, and lstl::CStringBase< CWString, wchar_t >.
| LSVOID LSE_CALL lstl::CVectorPoD< _tType, _tDataType, _uAllocSize >::SetAllocator | ( | CAllocator * | _paAllocator | ) | [inline] |
Set the allocator. Causes the object to be fully reset. Should not be used on lists that have contents already.
| _paAllocator | The new allocator to be used by this object or NULL to use the default allocator for vector objects. |
Reimplemented in lstl::CStringBase< _tDerived, _tDataType, _uAllocSize >, and lstl::CStringBase< CWString, wchar_t >.
CAllocator* lstl::CVectorPoD< _tType, _tDataType, _uAllocSize >::m_paOurAllocator [protected] |
The allocator we should use.
1.7.3