Array Class Template Reference

#include <Array.h>

Inheritance diagram for Array:

ArrayBase

List of all members.


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).

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 > & ()


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

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

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

Reimplemented from ArrayBase.

References ArrayBase::operator=().

const ArrayView<T> operator() ( int  offset,
int  length 
) const [inline]

ArrayView<T> operator() ( int  offset,
int  length 
) [inline]

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

Reimplemented from ArrayBase.

References ArrayBase::operator+=().

operator const ArrayView< T > & (  )  const [inline]

operator ArrayView< T > & (  )  [inline]


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

Generated on Fri Sep 26 07:44:29 2008 for SimTKcore by  doxygen 1.5.6