Array< T > Class Template Reference

Container class like std::vector<T> but with hidden implementation. More...

#include <Array.h>

Inheritance diagram for Array< T >:
ArrayBase< T >

List of all members.

Public Member Functions

 Array ()
 Array (int n)
 Array (const Array &src)
 ~Array ()
Arrayoperator= (const Array &src)
Arrayoperator= (const T &x)
 Array (int n, const T &ival)
 Array (int n, const T *ivals)
 Array (const Array &a, int offset, int length)
 Array (Array &a, int offset, int length)
const ArrayView< T > operator() (int offset, int length) const
ArrayView< T > operator() (int offset, int length)
Arrayoperator+= (const T &x)
 operator const ArrayView< T > & () const
 operator ArrayView< T > & ()

Detailed Description

template<class T>
class SimTK::Array< T >

Container class like std::vector<T> but with hidden implementation.

This container provides functionality like STL's vector<T> but with an opaque implementation suitable for passing across a binary interface.

Like std::vector<T>, Array<T> stores items in consecutive memory locations (subject to ordinary C++ packing rules).


Constructor & Destructor Documentation

Array (  )  [inline]
Array ( int  n  )  [inline, explicit]
Array ( const Array< T > &  src  )  [inline]
~Array (  )  [inline]
Array ( int  n,
const T &  ival 
) [inline]
Array ( int  n,
const T *  ivals 
) [inline]
Array ( const Array< T > &  a,
int  offset,
int  length 
) [inline]
Array ( Array< T > &  a,
int  offset,
int  length 
) [inline]

Member Function Documentation

operator ArrayView< T > & (  )  [inline]
operator const ArrayView< T > & (  )  const [inline]
ArrayView<T> operator() ( int  offset,
int  length 
) [inline]
const ArrayView<T> operator() ( int  offset,
int  length 
) const [inline]
Array& operator+= ( const T &  x  )  [inline]

Reimplemented from ArrayBase< T >.

References ArrayBase< T >::operator+=().

Array& operator= ( const T &  x  )  [inline]

Reimplemented from ArrayBase< T >.

References ArrayBase< T >::operator=().

Array& operator= ( const Array< T > &  src  )  [inline]

Reimplemented from ArrayBase< T >.

References ArrayBase< T >::operator=().


The documentation for this class was generated from the following file:

Generated on Wed Dec 30 11:05:17 2009 for SimTKcore by  doxygen 1.6.1