diff options
author | Xanadu <none@none> | 2010-07-20 02:49:28 +0200 |
---|---|---|
committer | Xanadu <none@none> | 2010-07-20 02:49:28 +0200 |
commit | 79622802f397258ee0f34327ba3ae6977ca3e7ff (patch) | |
tree | 1868946c234ab9ee256a6b7766a15713eae94235 /externals/ace/Obchunk.h | |
parent | 7dd2dc91816ab8b3bc3b99a1b1c99c7ea314d5a8 (diff) | |
parent | f906976837502fa5aa81b982b901d1509f5aa0c4 (diff) |
Merge. Revision history for source files should be all back now.
--HG--
branch : trunk
rename : sql/CMakeLists.txt => sql/tools/CMakeLists.txt
rename : src/server/game/Pools/PoolHandler.cpp => src/server/game/Pools/PoolMgr.cpp
rename : src/server/game/Pools/PoolHandler.h => src/server/game/Pools/PoolMgr.h
rename : src/server/game/PrecompiledHeaders/NixCorePCH.cpp => src/server/game/PrecompiledHeaders/gamePCH.cpp
rename : src/server/game/PrecompiledHeaders/NixCorePCH.h => src/server/game/PrecompiledHeaders/gamePCH.h
Diffstat (limited to 'externals/ace/Obchunk.h')
-rw-r--r-- | externals/ace/Obchunk.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/externals/ace/Obchunk.h b/externals/ace/Obchunk.h new file mode 100644 index 00000000000..b76a7f7e3cf --- /dev/null +++ b/externals/ace/Obchunk.h @@ -0,0 +1,77 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file Obchunk.h + * + * $Id: Obchunk.h 80826 2008-03-04 14:51:23Z wotte $ + * + * @author Doug Schmidt + */ +//============================================================================= + + +#ifndef ACE_OBCHUNK_H +#define ACE_OBCHUNK_H +#include /**/ "ace/pre.h" + +#include "ace/Malloc.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + +/** + * @class ACE_Obchunk + * + * @brief 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. + * @sa ACE_Obstack_T + */ +class ACE_Export ACE_Obchunk +{ +public: + /// Constructor. + ACE_Obchunk (size_t size); + + /// Dtor. + ~ACE_Obchunk (void); + + /// Dump the state of an object. + void dump (void) const; + + /// Declare the dynamic allocation hooks. + ACE_ALLOC_HOOK_DECLARE; + + /// Pointer to the end of the chunk. + char *end_; + + /// Pointer to the head of the current building block. + char *block_; + + /// Pointer to the current location in the chunk. + char *cur_; + + /// Next chunk in the chain. + ACE_Obchunk *next_; + + /** + * 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. + */ + char contents_[4]; +}; + +ACE_END_VERSIONED_NAMESPACE_DECL + +#if defined (__ACE_INLINE__) +#include "ace/Obchunk.inl" +#endif /* __ACE_INLINE__ */ + +#include /**/ "ace/post.h" +#endif /* ACE_OBCHUNK_H */ |