8 #ifndef MBase_Allocator_h 9 #define MBase_Allocator_h 12 #if defined(sun) && !defined(_RWSTD_ALLOCATOR) 15 #error _RWSTD_ALLOCATOR not defined 16 _RWSTD_ALLOCATOR not defined
25 #include "PDCHeader/PDCcstdlib" 26 #include "PDCHeader/PDCutility" 130 return reinterpret_cast<char*
>(
new char[inSize]);
134 return reinterpret_cast<char*
>(mMemPtr->
GetMem(inSize));
164 std::_Construct(ipPtr, _V);
166 new ((
void *)ipPtr) (_Ty)(_V);
177 std::_Destroy(ipPtr);
188 return (0 < lnSize ? lnSize : 1);
203 template<
class _Ty,
class _UT>
inline 210 template<
class _Ty,
class _UT>
inline 214 return !(left == right);
257 #endif // MBase_Allocator_h _Ty value_type
Definition: Allocator.h:227
size_t size_type
Definition: Allocator.h:60
Allocator(const Allocator< _UT > &irAllocator)
Definition: Allocator.h:77
bool operator==(const Allocator< _Ty > &left, const Allocator< _UT > &right)
Definition: Allocator.h:204
const_pointer address(const_reference irX) const
Definition: Allocator.h:100
const _Ty * const_pointer
Definition: Allocator.h:226
_Ty & reference
Definition: Allocator.h:64
Allocator(const Allocator< _Ty > &)
Definition: Allocator.h:239
void destroy(pointer ipPtr)
Definition: Allocator.h:170
Buffer * GetBuffer() const
Definition: Allocator.h:194
Definition: Allocator.h:90
Allocator()
Definition: Allocator.h:68
Allocator(Buffer *iMan)
Definition: Allocator.h:82
Allocator(const Allocator< _UT > &)
Definition: Allocator.h:244
_Ty * pointer
Definition: Allocator.h:62
size_type max_size() const
Definition: Allocator.h:185
ptrdiff_t difference_type
Definition: Allocator.h:61
Definition: Allocator.h:47
bool operator!=(const Allocator< _Ty > &left, const Allocator< _UT > &right)
Definition: Allocator.h:211
Definition: Allocator.h:57
const _Ty * const_pointer
Definition: Allocator.h:63
Allocator< _UT > other
Definition: Allocator.h:92
_Ty * pointer
Definition: Allocator.h:225
Allocator< _Ty > & operator=(const Allocator< _UT > &)
Definition: Allocator.h:249
Allocator()
Definition: Allocator.h:235
void _Ty
Definition: Allocator.h:224
const _Ty & const_reference
Definition: Allocator.h:65
void construct(pointer ipPtr, const_reference _V)
Definition: Allocator.h:159
pointer allocate(size_type inSize, const void *)
Definition: Allocator.h:105
_Ty value_type
Definition: Allocator.h:66
void deallocate(pointer ipPtr, size_type)
Definition: Allocator.h:148
pointer address(reference irX) const
Definition: Allocator.h:95
#define NULL
Definition: Null.h:10
Allocator< _UT > other
Definition: Allocator.h:232
virtual void * GetMem(size_t iSize)=0
pointer allocate(size_type inSize)
Definition: Allocator.h:118