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

array_allocator_creator< T > Class Template Reference

creator for array_allocator More...

#include <memory.h>

Inheritance diagram for array_allocator_creator< T >:

proto_creator< array_allocator_creator< T >, array_allocator< T >, size_t >

List of all members.

Static Public Member Functions

static array_allocator< T > * create (size_t size)
 creates array_allocator
static bool find (array_allocator< T > *obj, size_t size)
 finds allocator with the same or bigger chunk capacity
static void back (array_allocator< T > *obj, size_t)
 clears extra
static void deactivate (array_allocator< T > *obj, size_t)
 clears


Detailed Description

template<class T>
class array_allocator_creator< T >

creator for array_allocator

Definition at line 303 of file memory.h.


Member Function Documentation

template<class T>
array_allocator< T > * array_allocator_creator< T >::create ( size_t  size  )  [inline, static]

creates array_allocator

Parameters:
size  default chunk capacity

Definition at line 304 of file memory.hpp.

template<class T>
bool array_allocator_creator< T >::find ( array_allocator< T > *  obj,
size_t  size 
) [inline, static]

finds allocator with the same or bigger chunk capacity

Parameters:
obj  object
size  chunk capacity

Definition at line 313 of file memory.hpp.

References byte_allocator::capacity().

template<class T>
void array_allocator_creator< T >::back ( array_allocator< T > *  obj,
size_t   
) [inline, static]

clears extra

Parameters:
obj  object

Definition at line 322 of file memory.hpp.

References byte_allocator::count(), and rep_allocator::reset().

template<class T>
void array_allocator_creator< T >::deactivate ( array_allocator< T > *  obj,
size_t   
) [inline, static]

clears

Parameters:
obj  object

Definition at line 331 of file memory.hpp.


The documentation for this class was generated from the following files:


© Copyright Terimber 2003-.