Public Member Functions | Public Attributes

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 Member Functions

 ACE_Obchunk (size_t size)
 Constructor.
 ~ACE_Obchunk (void)
 Dtor.
void dump (void) const
 Dump the state of an object.

Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.
char * end_
 Pointer to the end of the chunk.
char * block_
 Pointer to the head of the current building block.
char * cur_
 Pointer to the current location in the chunk.
ACE_Obchunknext_
 Next chunk in the chain.
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 35 of file Obchunk.h.


Constructor & Destructor Documentation

ACE_Obchunk::ACE_Obchunk ( size_t  size  ) 

Constructor.

Definition at line 28 of file Obchunk.cpp.

ACE_Obchunk::~ACE_Obchunk ( void   )  [inline]

Dtor.

Definition at line 8 of file Obchunk.inl.

{
}


Member Function Documentation

void ACE_Obchunk::dump ( void   )  const

Dump the state of an object.

Definition at line 16 of file Obchunk.cpp.

{
#if defined (ACE_HAS_DUMP)
  ACE_TRACE ("ACE_Obchunk::dump");

  ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
  ACE_DEBUG ((LM_DEBUG,  ACE_TEXT ("end_ = %x\n"), this->end_));
  ACE_DEBUG ((LM_DEBUG,  ACE_TEXT ("cur_ = %x\n"), this->cur_));
  ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
#endif /* ACE_HAS_DUMP */
}


Member Data Documentation

Declare the dynamic allocation hooks.

Definition at line 48 of file Obchunk.h.

Pointer to the head of the current building block.

Definition at line 54 of file Obchunk.h.

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 67 of file Obchunk.h.

Pointer to the current location in the chunk.

Definition at line 57 of file Obchunk.h.

Pointer to the end of the chunk.

Definition at line 51 of file Obchunk.h.

Next chunk in the chain.

Definition at line 60 of file Obchunk.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines