Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

memory.h File Reference

#include "allinc.h"
#include "base/proto.h"

Go to the source code of this file.

Classes

class  mem_chunk
 class is used for a linked list of memory chunks More...
class  byte_allocator
 high performance class for allocation More...
class  chunk_stack
 keeps free chunks of memory for reusing More...
class  rep_allocator
 class support "deallocation" actually memory reusing More...
class  node_allocator< T >
 high performance template class for allocation one object at one time More...
class  array_allocator< T >
 template class for allocation of the array of objects it seems like this class covers the functionality of the previous one but the previous class (node_allocator) has better performance More...
class  byte_allocator_creator
 creator for byte_allocator More...
class  node_allocator_creator< T >
 creator for node_allocator More...
class  array_allocator_creator< T >
 creator for array_allocator More...

Defines

#define ALIGNED_MASK_SIZEOF(s, m)   ((s+(m-1))&~(m-1))
 rounding on external mask
#define ALIGNED_SIZEOF(s)   ALIGNED_MASK_SIZEOF(s, sizeof(void*))
 macros for rounding memory object size


Define Documentation

#define ALIGNED_MASK_SIZEOF ( s,
 )     ((s+(m-1))&~(m-1))

rounding on external mask

Definition at line 43 of file memory.h.

Referenced by msg_cpp::crypt_size().

#define ALIGNED_SIZEOF (  )     ALIGNED_MASK_SIZEOF(s, sizeof(void*))

macros for rounding memory object size

Definition at line 45 of file memory.h.

Referenced by array_allocator< T >::allocate(), node_allocator< T >::allocate(), and byte_allocator::allocate().



© Copyright Terimber 2003-.