diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
commit | c44379cc7d9c7aa113989237ab0f56db12aa5219 (patch) | |
tree | 66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/ace/Obchunk.cpp | |
parent | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (diff) | |
download | ATCD-c44379cc7d9c7aa113989237ab0f56db12aa5219.tar.gz |
Repo restructuring
Diffstat (limited to 'ACE/ace/Obchunk.cpp')
-rw-r--r-- | ACE/ace/Obchunk.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ACE/ace/Obchunk.cpp b/ACE/ace/Obchunk.cpp new file mode 100644 index 00000000000..0d1de440fcb --- /dev/null +++ b/ACE/ace/Obchunk.cpp @@ -0,0 +1,36 @@ +// $Id$ + +#include "ace/Obchunk.h" + +#if !defined (__ACE_INLINE__) +#include "ace/Obchunk.inl" +#endif /* __ACE_INLINE__ */ + +ACE_RCSID(ace, Obchunk, "$Id$") + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + +ACE_ALLOC_HOOK_DEFINE(ACE_Obchunk) + +void +ACE_Obchunk::dump (void) const +{ +#if defined (ACE_HAS_DUMP) + ACE_TRACE ("ACE_Obchunk::dump"); + + ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this)); + ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("end_ = %x\n"), this->end_)); + ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("cur_ = %x\n"), this->cur_)); + ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP)); +#endif /* ACE_HAS_DUMP */ +} + +ACE_Obchunk::ACE_Obchunk (size_t size) + : end_ (contents_ + size), + block_ (contents_), + cur_ (contents_), + next_ (0) +{ +} + +ACE_END_VERSIONED_NAMESPACE_DECL |