diff options
Diffstat (limited to 'ace/Obstack_T.inl')
-rw-r--r-- | ace/Obstack_T.inl | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/ace/Obstack_T.inl b/ace/Obstack_T.inl deleted file mode 100644 index 57e049ef1ea..00000000000 --- a/ace/Obstack_T.inl +++ /dev/null @@ -1,31 +0,0 @@ -// $Id$ - -template <class CHAR> ACE_INLINE size_t -ACE_Obstack_T<CHAR>::length () const -{ - return this->size_ / sizeof (CHAR); -} - -template <class CHAR> ACE_INLINE size_t -ACE_Obstack_T<CHAR>::size () const -{ - return this->size_; -} - -template <class CHAR> ACE_INLINE void -ACE_Obstack_T<CHAR>::grow_fast (CHAR c) -{ - * (reinterpret_cast<CHAR *> (this->curr_->cur_)) = c; - this->curr_->cur_ += sizeof (CHAR); -} - -template <class CHAR> ACE_INLINE CHAR * -ACE_Obstack_T<CHAR>::freeze (void) -{ - CHAR *retv = reinterpret_cast<CHAR *> (this->curr_->block_); - * (reinterpret_cast<CHAR *> (this->curr_->cur_)) = 0; - - this->curr_->cur_ += sizeof (CHAR); - this->curr_->block_ = this->curr_->cur_; - return retv; -} |