"L. Spiro Engine"
|
00001 00016 #ifndef __LSTL_SETBASE_H__ 00017 #define __LSTL_SETBASE_H__ 00018 00019 #include "../LSTLib.h" 00020 #include "../Allocator/LSTLAllocator.h" 00021 00022 namespace lstl { 00023 00030 class CSetBase { 00031 public : 00032 // == Members. 00033 // Modifiable pointer to a default allocator used by all set objects that do not 00034 // explicitly allow using a specific allocator. Must never be set to NULL. Should only 00035 // be changed once, before any allocations are ever made. If a set allocates from 00036 // the default allocator and then the default is changed, the set will not be able to 00037 // free its memory unless the default is changed back. Normally you just create an 00038 // allocator at the beginning, set it as the default, and then let all the vectors work 00039 // off that. 00040 static CAllocator * m_paDefaultAllocator; 00041 00042 protected : 00043 // The default allocator if none are supplied. 00044 static CAllocator m_aAllocator; 00045 }; 00046 00047 } // namespace lstl 00048 00049 #endif // __LSTL_SETBASE_H__