/* -*- C++ -*- */ // $Id$ // Clean up the array (e.g., delete dynamically allocated memory). template ACE_INLINE ACE_Array::~ACE_Array (void) { delete [] this->array_; } template ACE_INLINE size_t ACE_Array::size (void) const { return this->cur_size_; } template ACE_INLINE int ACE_Array::in_range (size_t index) const { return index < this->cur_size_; } template ACE_INLINE T & ACE_Array::operator[] (size_t index) { return this->array_[index]; } template ACE_INLINE const T & ACE_Array::operator[] (size_t index) const { return this->array_[index]; } // Compare this array with for inequality. template ACE_INLINE int ACE_Array::operator!= (const ACE_Array &s) const { return !(*this == s); } template ACE_INLINE void ACE_Array_Iterator::dump (void) const { // ACE_TRACE ("ACE_Array_Iterator::dump"); } template ACE_INLINE ACE_Array_Iterator::ACE_Array_Iterator (ACE_Array &a) : current_ (0), array_ (a) { // ACE_TRACE ("ACE_Array_Iterator::ACE_Array_Iterator"); } template ACE_INLINE int ACE_Array_Iterator::advance (void) { // ACE_TRACE ("ACE_Array_Iterator::advance"); if (this->current_ < array_.size ()) { ++this->current_; return 1; } else { // Already finished iterating. return 0; } } template ACE_INLINE int ACE_Array_Iterator::done (void) const { ACE_TRACE ("ACE_Array_Iterator::done"); return this->current_ >= array_.size (); }