summaryrefslogtreecommitdiff
path: root/ace/Obstack.h
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-01-01 08:00:34 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-01-01 08:00:34 +0000
commitd9661aebab28abc0ec4fb1e716170d347d56c168 (patch)
treeecb671ab4b8e299bf5cbb8b2dfeed8a49b65fc06 /ace/Obstack.h
parentea0d28240863caf437a18071bfd03e7b146c5ade (diff)
downloadATCD-unlabeled-4.3.2.tar.gz
This commit was manufactured by cvs2svn to create branchunlabeled-4.3.2
'unlabeled-4.3.2'.
Diffstat (limited to 'ace/Obstack.h')
-rw-r--r--ace/Obstack.h79
1 files changed, 0 insertions, 79 deletions
diff --git a/ace/Obstack.h b/ace/Obstack.h
deleted file mode 100644
index 91540994bc2..00000000000
--- a/ace/Obstack.h
+++ /dev/null
@@ -1,79 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-
-
-// ============================================================================
-//
-// = LIBRARY
-// ace
-//
-// = FILENAME
-// Obstack.h
-//
-// = AUTHOR
-// Doug Schmidt
-//
-// ============================================================================
-
-#if !defined (ACE_OBSTACK_H)
-#define ACE_OBSTACK_H
-
-#include "ace/ACE.h"
-
-class ACE_Export ACE_Obchunk
- // = TITLE
- // A "chunk" of memory. This should be a nested class but some
- // compilers don't like them yet.
-{
-friend class ACE_Obstack;
-
-public:
- void dump (void) const;
- // Dump the state of an object.
-
- ACE_ALLOC_HOOK_DECLARE;
- // Declare the dynamic allocation hooks.
-
-private:
- char *end_;
- char *cur_;
- ACE_Obchunk *next_;
- char contents_[4];
-};
-
-class ACE_Export ACE_Obstack
- // = TITLE
- // Define a simple "mark and release" memory allocation utility.
- // This class is based on the GNU obstack utility.
-{
-public:
- // = Initialization and termination methods.
- ACE_Obstack (int size = 4080);
- ~ACE_Obstack (void);
-
- char *copy (const char* data, size_t len);
- // Copy the data into the current Obchunk.
-
- void release (void);
- // "Release" the entire stack (without freeing it).
-
- void dump (void) const;
- // Dump the state of an object.
-
- ACE_ALLOC_HOOK_DECLARE;
- // Declare the dynamic allocation hooks.
-
-protected:
- class ACE_Obchunk *new_chunk (void);
-
- size_t size_;
- // Current size of the Obstack;
-
- class ACE_Obchunk *head_;
- // Head of the Obchunk chain.
-
- class ACE_Obchunk *curr_;
- // Pointer to the current Obchunk.
-};
-
-#endif /* ACE_OBSTACK_H */