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

backet_tank< N > Class Template Reference

#include <strrep.h>

List of all members.

Public Types

enum  BACKET { LENGTH = (1<<N) + 4, ROOMS = 8*sizeof(rooms_type_t) }

Public Member Functions

 backet_tank (byte_allocator &all)
bool full () const
bool empty () const
char * get_chunk ()
void put_chunk (char *ptr)
void reset ()

Private Types

typedef ub8_t rooms_type_t

Private Attributes

char * _head
rooms_type_t _states


Detailed Description

template<unsigned char N>
class backet_tank< N >

Definition at line 44 of file strrep.h.


Member Typedef Documentation

template<unsigned char N>
typedef ub8_t backet_tank< N >::rooms_type_t [private]

Definition at line 46 of file strrep.h.


Member Enumeration Documentation

template<unsigned char N>
enum backet_tank::BACKET

Enumerator:
LENGTH 
ROOMS 

Definition at line 48 of file strrep.h.


Constructor & Destructor Documentation

template<unsigned char N>
BEGIN_TERIMBER_NAMESPACE backet_tank< N >::backet_tank ( byte_allocator all  )  [inline]


Member Function Documentation

template<unsigned char N>
bool backet_tank< N >::full (  )  const [inline]

Definition at line 48 of file strrep.hpp.

References backet_tank< N >::_states.

template<unsigned char N>
bool backet_tank< N >::empty (  )  const [inline]

Definition at line 55 of file strrep.hpp.

References backet_tank< N >::_states.

Referenced by backet_tank< N >::get_chunk().

template<unsigned char N>
char * backet_tank< N >::get_chunk (  )  [inline]

template<unsigned char N>
void backet_tank< N >::put_chunk ( char *  ptr  )  [inline]

Definition at line 141 of file strrep.hpp.

References backet_tank< N >::_states.

template<unsigned char N>
void backet_tank< N >::reset (  )  [inline]

Definition at line 168 of file strrep.hpp.

References backet_tank< N >::_states.


Member Data Documentation

template<unsigned char N>
char* backet_tank< N >::_head [private]

Definition at line 59 of file strrep.h.

Referenced by backet_tank< N >::backet_tank(), and backet_tank< N >::get_chunk().


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


© Copyright Terimber 2003-.