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

variant_factory Class Reference

class as a set of memory factories More...

#include <varfactory.h>

List of all members.

Public Member Functions

 variant_factory ()
 constructor
 ~variant_factory ()
 destructor
bool create (vt_types type, var_value &val, size_t len)
 allocates variant value
bool clone (vt_types type, var_value &out, const var_value &in)
 makes a copy
void destroy (vt_types type, var_value &val)
 destroys variant value
void reset ()
 reuse memory

Private Attributes

byte_repository_factory _byte_allocator
 responsible for string/binary
node_allocator< double > _double_allocator
 responsible for 8 bytes allocation (double, long int, unsigned long int)
node_allocator< long double > _long_double_allocator
 responsible for long double bytes
node_allocator< guid_t_guid_allocator
 responsible for 16 bytes guid
byte_allocator _tmp_allocator
 for temporary allocations


Detailed Description

class as a set of memory factories

Definition at line 39 of file varfactory.h.


Constructor & Destructor Documentation

BEGIN_TERIMBER_NAMESPACE variant_factory::variant_factory (  ) 

constructor

Definition at line 44 of file varfactory.cpp.

variant_factory::~variant_factory (  ) 

destructor

Definition at line 51 of file varfactory.cpp.


Member Function Documentation

void variant_factory::reset (  ) 


Member Data Documentation

responsible for string/binary

Definition at line 71 of file varfactory.h.

Referenced by clone(), create(), destroy(), and reset().

responsible for 8 bytes allocation (double, long int, unsigned long int)

Definition at line 72 of file varfactory.h.

Referenced by clone(), create(), destroy(), and reset().

responsible for long double bytes

Definition at line 73 of file varfactory.h.

Referenced by reset().

responsible for 16 bytes guid

Definition at line 74 of file varfactory.h.

Referenced by clone(), create(), destroy(), and reset().

for temporary allocations

Definition at line 75 of file varfactory.h.

Referenced by clone(), and reset().


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


© Copyright Terimber 2003-.