Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Obstack_T.i

Go to the documentation of this file.
00001 // $Id: Obstack_T.i,v 1.1.1.1 2001/12/04 14:33:06 chad Exp $
00002 
00003 template <class CHAR> ACE_INLINE size_t
00004 ACE_Obstack_T<CHAR>::length () const
00005 {
00006   return this->size_ / sizeof (CHAR);
00007 }
00008 
00009 template <class CHAR> ACE_INLINE size_t
00010 ACE_Obstack_T<CHAR>::size () const
00011 {
00012   return this->size_;
00013 }
00014 
00015 template <class CHAR> ACE_INLINE void
00016 ACE_Obstack_T<CHAR>::grow_fast (CHAR c)
00017 {
00018   * (ACE_reinterpret_cast (CHAR *,
00019                            this->curr_->cur_)) = c;
00020   this->curr_->cur_ += sizeof (CHAR);
00021 }
00022 
00023 template <class CHAR> ACE_INLINE CHAR *
00024 ACE_Obstack_T<CHAR>::freeze (void)
00025 {
00026   CHAR *retv = ACE_reinterpret_cast (CHAR *, this->curr_->block_);
00027   * (ACE_reinterpret_cast (CHAR *,
00028                            this->curr_->cur_)) = 0;
00029 
00030   this->curr_->cur_ += sizeof (CHAR);
00031   this->curr_->block_ = this->curr_->cur_;
00032   return retv;
00033 }

Generated on Mon Jun 16 11:20:30 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002