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

byte_allocator_creator Class Reference

creator for byte_allocator More...

#include <memory.h>

Inheritance diagram for byte_allocator_creator:

proto_creator< byte_allocator_creator, byte_allocator, size_t >

List of all members.

Static Public Member Functions

static byte_allocatorcreate (size_t size)
 creates object
static bool find (byte_allocator *obj, size_t size)
 finds allocator with specified or bigger chunk
static void back (byte_allocator *obj, size_t)
 clears extra chunks allocator
static void deactivate (byte_allocator *obj, size_t)
 clears allocator


Detailed Description

creator for byte_allocator

Definition at line 241 of file memory.h.


Member Function Documentation

byte_allocator * byte_allocator_creator::create ( size_t  size  )  [static]

creates object

Parameters:
size  default capacity

Definition at line 154 of file memory.cpp.

bool byte_allocator_creator::find ( byte_allocator obj,
size_t  size 
) [static]

finds allocator with specified or bigger chunk

Parameters:
obj  object
size  chunk size

Definition at line 162 of file memory.cpp.

References byte_allocator::capacity().

void byte_allocator_creator::back ( byte_allocator obj,
size_t   
) [static]

clears extra chunks allocator

Parameters:
obj  object

Definition at line 170 of file memory.cpp.

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

void byte_allocator_creator::deactivate ( byte_allocator obj,
size_t   
) [static]

clears allocator

Parameters:
obj  object

Definition at line 178 of file memory.cpp.

References byte_allocator::clear_all().


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


© Copyright Terimber 2003-.