7 #ifndef _COMMON_INCLUDED_
8 #define _COMMON_INCLUDED_
27 #define POOL_ALLOCATOR_NEW_DELETE() \
28 void* operator new(size_t s) { return GetGlobalPoolAllocator()->allocate(s); } \
29 void* operator new(size_t, void *_Where) { return (_Where); } \
30 void operator delete(void*) { } \
31 void operator delete(void *, void *) { } \
32 void* operator new[](size_t s) { return GetGlobalPoolAllocator()->allocate(s); } \
33 void* operator new[](size_t, void *_Where) { return (_Where); } \
34 void operator delete[](void*) { } \
35 void operator delete[](void *, void *) { }
53 #define TPersistString std::string
54 #define TPersistStringStream std::ostringstream
59 template <
class T>
class TVector :
public std::vector<T, pool_allocator<T> > {
67 template <
class K,
class D,
class CMP = std::less<K> >
68 class TMap :
public std::map<K, D, CMP, pool_allocator<std::pair<const K, D> > > {
77 #endif // _COMMON_INCLUDED_
void * allocate(size_t numBytes)
TPoolAllocator * GetGlobalPoolAllocator()
TVector(const pool_allocator< T > &a)
GLboolean GLboolean GLboolean GLboolean a
TMap(const tAllocator &a)
std::basic_ostringstream< char, std::char_traits< char >, TStringAllocator > TStringStream
TString * NewPoolTString(const char *s)
pool_allocator< char > TStringAllocator
std::basic_string< char, std::char_traits< char >, TStringAllocator > TString
pool_allocator< std::pair< const K, D > > tAllocator
const GLubyte GLuint GLuint GLuint GLuint alpha GLboolean GLboolean GLboolean GLboolean alpha GLint GLint GLsizei GLsizei GLenum type GLenum GLint GLenum GLint GLint GLsizei GLsizei GLint border GLenum GLint GLint GLint GLint GLint GLsizei GLsizei height GLsizei GLsizei GLenum GLenum const GLvoid *pixels GLenum GLint GLint GLint GLint j2 GLdouble GLdouble GLdouble GLdouble GLdouble GLdouble zFar GLenum GLenum GLint *params GLenum GLenum GLint *params GLenum GLenum GLint *params GLenum GLenum GLfloat *params GLenum GLint GLenum GLenum GLvoid *pixels GLenum GLint GLenum GLint *params GLenum GLenum GLint *params GLenum GLsizei const GLvoid *pointer GLenum GLenum const GLint *params GLenum GLfloat GLfloat GLint GLint const GLfloat *points GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat *points GLint GLfloat GLfloat GLint GLfloat GLfloat v2 GLenum GLenum const GLint *params GLdouble GLdouble GLdouble GLdouble GLdouble GLdouble zFar GLenum map
std::vector< FunctionNode *, pool_allocator< FunctionNode * > >::size_type size_type