Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Obchunk Class Reference

Defines the state that represents a "chunk" of memory. Evenything in this class is public because it is designed as an internal structure of Obstack_T and users are not supposed to use this class directly. More...

#include <Obchunk.h>

Collaboration diagram for ACE_Obchunk:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Obchunk (size_t size)
 Constructor. More...

 ~ACE_Obchunk (void)
 Dtor. More...

void dump (void) const
 Dump the state of an object. More...


Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...

char * end_
 Pointer to the end of the chunk. More...

char * block_
 Pointer to the head of the current building block. More...

char * cur_
 Pointer to the current location in the chunk. More...

ACE_Obchunk * next_
 Next chunk in the chain. More...

char contents_ [4]

Detailed Description

Defines the state that represents a "chunk" of memory. Evenything in this class is public because it is designed as an internal structure of Obstack_T and users are not supposed to use this class directly.

See also:
ACE_Obstack_T

Definition at line 32 of file Obchunk.h.


Constructor & Destructor Documentation

ACE_Obchunk::ACE_Obchunk size_t    size
 

Constructor.

Definition at line 25 of file Obchunk.cpp.

00026   : end_ (contents_ + size),
00027     block_ (contents_),
00028     cur_ (contents_),
00029     next_ (0)
00030 {
00031 }

ACE_INLINE ACE_Obchunk::~ACE_Obchunk void   
 

Dtor.

Definition at line 7 of file Obchunk.i.

00008 {
00009 }


Member Function Documentation

void ACE_Obchunk::dump void    const
 

Dump the state of an object.

Definition at line 15 of file Obchunk.cpp.

References ACE_BEGIN_DUMP, ACE_DEBUG, ACE_END_DUMP, ACE_LIB_TEXT, ACE_TRACE, and LM_DEBUG.

00016 {
00017   ACE_TRACE ("ACE_Obchunk::dump");
00018 
00019   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00020   ACE_DEBUG ((LM_DEBUG,  ACE_LIB_TEXT ("end_ = %x\n"), this->end_));
00021   ACE_DEBUG ((LM_DEBUG,  ACE_LIB_TEXT ("cur_ = %x\n"), this->cur_));
00022   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00023 }


Member Data Documentation

ACE_Obchunk::ACE_ALLOC_HOOK_DECLARE
 

Declare the dynamic allocation hooks.

Definition at line 45 of file Obchunk.h.

char* ACE_Obchunk::block_
 

Pointer to the head of the current building block.

Definition at line 51 of file Obchunk.h.

Referenced by ACE_Obstack_T::freeze, ACE_Obstack_T::release, ACE_Obstack_T::request, ACE_Obstack_T::unwind, and ACE_Obstack_T::unwind_i.

char ACE_Obchunk::contents_[4]
 

Pointer to the beginning contents of this chunk. This field is actually overlayed by the memory allocated by <ACE_Obstack::new_chunk>. Therefore, it *must* come last.

Definition at line 64 of file Obchunk.h.

Referenced by ACE_Obstack_T::release, ACE_Obstack_T::request, ACE_Obstack_T::unwind, and ACE_Obstack_T::unwind_i.

char* ACE_Obchunk::cur_
 

Pointer to the current location in the chunk.

Definition at line 54 of file Obchunk.h.

Referenced by ACE_Obstack_T::copy, ACE_Obstack_T::freeze, ACE_Obstack_T::grow, ACE_Obstack_T::grow_fast, ACE_Obstack_T::release, ACE_Obstack_T::request, ACE_Obstack_T::unwind, and ACE_Obstack_T::unwind_i.

char* ACE_Obchunk::end_
 

Pointer to the end of the chunk.

Definition at line 48 of file Obchunk.h.

Referenced by ACE_Obstack_T::request, ACE_Obstack_T::unwind, and ACE_Obstack_T::unwind_i.

ACE_Obchunk* ACE_Obchunk::next_
 

Next chunk in the chain.

Definition at line 57 of file Obchunk.h.

Referenced by ACE_Obstack_T::request, ACE_Obstack_T::unwind_i, and ACE_Obstack_T::~ACE_Obstack_T.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:51:15 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002