4 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
6 template <class T, size_t DEFAULT_SIZE> ACE_INLINE
7 ACE_Vector<T, DEFAULT_SIZE>::ACE_Vector (const size_t init_size,
9 : ACE_Array<T> (init_size == 0 ? DEFAULT_SIZE : init_size, alloc),
12 this->curr_max_size_ = this->max_size ();
15 template <class T, size_t DEFAULT_SIZE> ACE_INLINE
16 ACE_Vector<T, DEFAULT_SIZE>::~ACE_Vector ()
20 template <class T, size_t DEFAULT_SIZE> ACE_INLINE
21 size_t ACE_Vector<T, DEFAULT_SIZE>::capacity (void) const
23 return curr_max_size_;
26 template <class T, size_t DEFAULT_SIZE> ACE_INLINE
27 size_t ACE_Vector<T, DEFAULT_SIZE>::size (void) const
32 template <class T, size_t DEFAULT_SIZE> ACE_INLINE
33 void ACE_Vector<T, DEFAULT_SIZE>::clear (void)
38 template <class T, size_t DEFAULT_SIZE> ACE_INLINE
39 void ACE_Vector<T, DEFAULT_SIZE>::pop_back (void)
44 ACE_Array<T>::size (length_);
48 template <class T, size_t DEFAULT_SIZE> ACE_INLINE
49 typename ACE_Array_Base<T>::iterator ACE_Vector<T, DEFAULT_SIZE>::end ()
51 return ACE_Array_Base<T>::array_ + length_;
54 template <class T, size_t DEFAULT_SIZE> ACE_INLINE
55 typename ACE_Array_Base<T>::const_iterator ACE_Vector<T, DEFAULT_SIZE>::end () const
57 return ACE_Array_Base<T>::array_ + length_;
60 // Compare this vector with <s> for inequality.
62 template <class T, size_t DEFAULT_SIZE> ACE_INLINE bool
63 ACE_Vector<T, DEFAULT_SIZE>::operator!= (const ACE_Vector<T, DEFAULT_SIZE> &s) const
68 template <class T, size_t DEFAULT_SIZE> ACE_INLINE void
69 ACE_Vector<T, DEFAULT_SIZE>::swap (ACE_Vector &rhs)
71 ACE_Array<T>::swap (rhs);
72 std::swap (this->length_, rhs.length_);
73 std::swap (this->curr_max_size_, rhs.curr_max_size_);
76 // ****************************************************************
78 template <class T, size_t DEFAULT_SIZE> ACE_INLINE void
79 ACE_Vector_Iterator<T, DEFAULT_SIZE>::dump (void) const
81 // ACE_TRACE ("ACE_Vector_Iterator<T>::dump");
84 template <class T, size_t DEFAULT_SIZE> ACE_INLINE
85 ACE_Vector_Iterator<T, DEFAULT_SIZE>::ACE_Vector_Iterator (ACE_Vector<T, DEFAULT_SIZE> &v)
89 // ACE_TRACE ("ACE_Vector_Iterator<T>::ACE_Vector_Iterator");
92 template <class T, size_t DEFAULT_SIZE> ACE_INLINE int
93 ACE_Vector_Iterator<T, DEFAULT_SIZE>::advance (void)
95 // ACE_TRACE ("ACE_Vector_Iterator<T>::advance");
97 if (this->current_ < vector_.size ())
103 // Already finished iterating.
107 template <class T, size_t DEFAULT_SIZE> ACE_INLINE int
108 ACE_Vector_Iterator<T, DEFAULT_SIZE>::done (void) const
110 ACE_TRACE ("ACE_Vector_Iterator<T>::done");
112 return this->current_ >= vector_.size ();
115 ACE_END_VERSIONED_NAMESPACE_DECL