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

Vector_T.i

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 // $Id: Vector_T.i,v 1.1.1.1 2003/02/21 18:36:32 chad Exp $
00003 
00004 template <class T, size_t DEFAULT_SIZE> ACE_INLINE
00005 ACE_Vector<T, DEFAULT_SIZE>::ACE_Vector (const size_t init_size,
00006                                          ACE_Allocator* alloc)
00007   : ACE_Array<T> (init_size == 0 ? DEFAULT_SIZE : init_size, alloc)
00008 {
00009   length_ = 0;
00010   curr_max_size_ = this->max_size ();
00011 }
00012 
00013 template <class T, size_t DEFAULT_SIZE> ACE_INLINE
00014 ACE_Vector<T, DEFAULT_SIZE>::~ACE_Vector ()
00015 {
00016 }
00017 
00018 template <class T, size_t DEFAULT_SIZE> ACE_INLINE
00019 size_t ACE_Vector<T, DEFAULT_SIZE>::capacity (void) const
00020 {
00021   return curr_max_size_;
00022 }
00023 
00024 template <class T, size_t DEFAULT_SIZE> ACE_INLINE
00025 size_t ACE_Vector<T, DEFAULT_SIZE>::size (void) const
00026 {
00027   return length_;
00028 }
00029 
00030 template <class T, size_t DEFAULT_SIZE> ACE_INLINE
00031 void ACE_Vector<T, DEFAULT_SIZE>::clear (void)
00032 {
00033   length_ = 0;
00034 }
00035 
00036 template <class T, size_t DEFAULT_SIZE> ACE_INLINE
00037 void ACE_Vector<T, DEFAULT_SIZE>::pop_back (void)
00038 {
00039   if (length_ > 0)
00040     --length_;
00041 }
00042 

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