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

node_allocator_creator< T > Class Template Reference

creator for node_allocator More...

#include <memory.h>

Inheritance diagram for node_allocator_creator< T >:

proto_creator< node_allocator_creator< T >, node_allocator< T >, size_t >

List of all members.

Static Public Member Functions

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


Detailed Description

template<class T>
class node_allocator_creator< T >

creator for node_allocator

Definition at line 272 of file memory.h.


Member Function Documentation

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

creates node_allocator

Parameters:
size  default chunk capacity

Definition at line 267 of file memory.hpp.

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

finds node_allocator with the same or bigger chunk capacity

Parameters:
obj  object
size  default chunk capacity

Definition at line 276 of file memory.hpp.

References byte_allocator::capacity().

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

clears extra

Parameters:
obj  object

Definition at line 285 of file memory.hpp.

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

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

clears allocator

Parameters:
obj  object

Definition at line 294 of file memory.hpp.


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


© Copyright Terimber 2003-.