Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

base::array< T > Class Template Reference

Inheritance diagram for base::array< T >:

Inheritance graph
[legend]
Collaboration diagram for base::array< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T value_type
typedef value_typepointer
typedef const value_typeconst_pointer
typedef value_typeiterator
typedef const value_typeconst_iterator
typedef value_typereference
typedef const value_typeconst_reference
typedef Int size_type
typedef SInt difference_type
typedef std::reverse_iterator<
const_iterator
const_reverse_iterator
typedef std::reverse_iterator<
iterator
reverse_iterator

Public Member Functions

 array ()
 array (size_type n)
 array (size_type n, size_type initial_capacity)
 array (size_type n, T a[], bool by_reference=true)
 array (const array &a)
 ~array ()
arrayoperator= (const array &a)
bool operator== (const array &a) const
bool operator!= (const array &a) const
reference operator[] (difference_type i)
const_reference operator[] (difference_type i) const
reference operator() (difference_type i)
const_reference operator() (difference_type i) const
reference at (difference_type i) throw (std::out_of_range)
size_type size () const
size_type capacity () const
arrayclear ()
bool empty ()
void swap (array &a)
reference front () throw (std::out_of_range)
const_reference front () const throw (std::out_of_range)
reference back () throw (std::out_of_range)
const_reference back () const throw (std::out_of_range)
void push_back (const T &e)
void pop_back () throw (std::out_of_range)
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
pointer c_array ()
const_pointer c_array () const
void extend (size_type new_min_capacity)
arraytrim ()
arrayresize (size_type newsize)
arraydestructive_resize (size_type newsize)

template<typename T>
class base::array< T >


Member Typedef Documentation

template<typename T>
typedef const value_type* base::array< T >::const_iterator
 

Definition at line 42 of file array.

template<typename T>
typedef const value_type* base::array< T >::const_pointer
 

Definition at line 40 of file array.

template<typename T>
typedef const value_type& base::array< T >::const_reference
 

Definition at line 44 of file array.

template<typename T>
typedef std::reverse_iterator<const_iterator> base::array< T >::const_reverse_iterator
 

Definition at line 48 of file array.

template<typename T>
typedef SInt base::array< T >::difference_type
 

Definition at line 46 of file array.

template<typename T>
typedef value_type* base::array< T >::iterator
 

Definition at line 41 of file array.

template<typename T>
typedef value_type* base::array< T >::pointer
 

Definition at line 39 of file array.

template<typename T>
typedef value_type& base::array< T >::reference
 

Definition at line 43 of file array.

template<typename T>
typedef std::reverse_iterator<iterator> base::array< T >::reverse_iterator
 

Definition at line 49 of file array.

template<typename T>
typedef Int base::array< T >::size_type
 

Definition at line 45 of file array.

Referenced by base::array< Real >::at(), base::array< Real >::empty(), base::array< Real >::extend(), base::array< Real >::operator()(), and base::array< Real >::operator[]().

template<typename T>
typedef T base::array< T >::value_type
 

Definition at line 38 of file array.


Constructor & Destructor Documentation

template<typename T>
base::array< T >::array  )  [inline]
 

Definition at line 51 of file array.

template<typename T>
base::array< T >::array size_type  n  )  [inline]
 

Definition at line 52 of file array.

template<typename T>
base::array< T >::array size_type  n,
size_type  initial_capacity
[inline]
 

Definition at line 53 of file array.

template<typename T>
base::array< T >::array size_type  n,
a[],
bool  by_reference = true
[inline]
 

Definition at line 55 of file array.

template<typename T>
base::array< T >::array const array< T > &  a  )  [inline]
 

Definition at line 67 of file array.

template<typename T>
base::array< T >::~array  )  [inline]
 

Definition at line 72 of file array.


Member Function Documentation

template<typename T>
reference base::array< T >::at difference_type  i  )  throw (std::out_of_range) [inline]
 

Definition at line 138 of file array.

Referenced by base::Serializer::operator()(), and robot::KinematicChain::push_back().

template<typename T>
const_reference base::array< T >::back  )  const throw (std::out_of_range) [inline]
 

Definition at line 202 of file array.

template<typename T>
reference base::array< T >::back  )  throw (std::out_of_range) [inline]
 

Definition at line 195 of file array.

template<typename T>
const_iterator base::array< T >::begin  )  const [inline]
 

Definition at line 223 of file array.

template<typename T>
iterator base::array< T >::begin  )  [inline]
 

Definition at line 222 of file array.

template<typename T>
const_pointer base::array< T >::c_array  )  const [inline]
 

Definition at line 229 of file array.

template<typename T>
pointer base::array< T >::c_array  )  [inline]
 

Definition at line 228 of file array.

template<typename T>
size_type base::array< T >::capacity  )  const [inline]
 

Definition at line 149 of file array.

template<typename T>
array& base::array< T >::clear  )  [inline]
 

Definition at line 151 of file array.

template<typename T>
array& base::array< T >::destructive_resize size_type  newsize  )  [inline]
 

Definition at line 276 of file array.

template<typename T>
bool base::array< T >::empty  )  [inline]
 

Definition at line 158 of file array.

template<typename T>
const_iterator base::array< T >::end  )  const [inline]
 

Definition at line 226 of file array.

template<typename T>
iterator base::array< T >::end  )  [inline]
 

Definition at line 225 of file array.

template<typename T>
void base::array< T >::extend size_type  new_min_capacity  )  [inline]
 

Definition at line 234 of file array.

Referenced by base::array< Real >::resize().

template<typename T>
const_reference base::array< T >::front  )  const throw (std::out_of_range) [inline]
 

Definition at line 188 of file array.

template<typename T>
reference base::array< T >::front  )  throw (std::out_of_range) [inline]
 

Definition at line 181 of file array.

template<typename T>
bool base::array< T >::operator!= const array< T > &  a  )  const [inline]
 

Definition at line 91 of file array.

template<typename T>
const_reference base::array< T >::operator() difference_type  i  )  const [inline]
 

Definition at line 128 of file array.

template<typename T>
reference base::array< T >::operator() difference_type  i  )  [inline]
 

Definition at line 120 of file array.

template<typename T>
array& base::array< T >::operator= const array< T > &  a  )  [inline]
 

Definition at line 77 of file array.

template<typename T>
bool base::array< T >::operator== const array< T > &  a  )  const [inline]
 

Definition at line 83 of file array.

template<typename T>
const_reference base::array< T >::operator[] difference_type  i  )  const [inline]
 

Definition at line 110 of file array.

template<typename T>
reference base::array< T >::operator[] difference_type  i  )  [inline]
 

Definition at line 101 of file array.

template<typename T>
void base::array< T >::pop_back  )  throw (std::out_of_range) [inline]
 

Definition at line 214 of file array.

template<typename T>
void base::array< T >::push_back const T &  e  )  [inline]
 

Definition at line 209 of file array.

template<typename T>
array& base::array< T >::resize size_type  newsize  )  [inline]
 

Definition at line 268 of file array.

Referenced by base::array< Real >::at(), robot::KinematicChain::pop_back(), base::array< Real >::pop_back(), base::array< Real >::push_back(), and robot::KinematicChain::resize().

template<typename T>
size_type base::array< T >::size  )  const [inline]
 

Definition at line 148 of file array.

Referenced by robot::KinematicChain::dof(), base::PathName::empty(), base::PathName::isSimple(), base::Serializer::operator()(), robot::KinematicChain::size(), and base::PathName::size().

template<typename T>
void base::array< T >::swap array< T > &  a  )  [inline]
 

Definition at line 162 of file array.

template<typename T>
array& base::array< T >::trim  )  [inline]
 

Definition at line 253 of file array.


The documentation for this class was generated from the following file:
Generated on Thu Jul 29 16:38:23 2004 for OpenSim by doxygen 1.3.6