ACE_Obchunk(3)

ACE_Obchunk3

Defines the state that represents a "chunk" of memory.

Usage

#include <ace/Obstack.h>
class ACE_Obchunk
{
  public:
    friend class ACE_Obstack;
    ACE_Obchunk (size_t size);
    ~ACE_Obchunk (void);
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  private:
    char *end_;
    char *cur_;
    ACE_Obchunk *next_;
    char contents_[4];
};

Public members

friend class ACE_Obstack;
ACE_Obchunk (size_t size);

Constructor.

~ACE_Obchunk (void);

dtor.

void dump (void) const;

Dump the state of an object.

ACE_ALLOC_HOOK_DECLARE;

Declare the dynamic allocation hooks.

Private members

char *end_;

Pointer to the end of the chunk.

char *cur_;

Pointer to the current location in the chunk.

ACE_Obchunk *next_;

Next chunk in the chain.

char 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.

Library

ace

Author

Doug Schmidt

From libace-doc 5.0.7-4 in Debian 2.2 (Potato). Parsed by carta from the page's man source.