List Class Template Reference

#include <List.h>

Inheritance diagram for List:

ListBase ArrayBase

List of all members.


Detailed Description

template<class T>
class SimTK::List< T >

Container class with hidden implementation.

This container makes randomly accessible lists of any object, abstract or concrete but as a consequence can make no guarantees about adjacent List items being adjacent in memory.

Because the implementation is opaque, List<T> is an acceptable data type for passing across a binary interface, while STL's vector<T> is not.

Public Member Functions

 List ()
 List (int n)
 ~List ()
 List (int n, const T &initVal)
 List (int n, const T *initVal)
 List (int n, const T *const *initVals)
 List (int n, T **pp)
 List (const List &l, int offset, int length)
 List (List &l, int offset, int length)
const ListView< T > operator() (int offset, int length) const
ListView< T > operator() (int offset, int length)
Listoperator+= (const T &x)
Listoperator+= (T *p)
Listoperator+= (T *&x)
 operator const ListView< T > & () const
 operator ListView< T > & ()


Constructor & Destructor Documentation

List (  )  [inline]

List ( int  n  )  [inline, explicit]

~List (  )  [inline]

List ( int  n,
const T &  initVal 
) [inline]

List ( int  n,
const T *  initVal 
) [inline]

List ( int  n,
const T *const *  initVals 
) [inline]

List ( int  n,
T **  pp 
) [inline]

List ( const List< T > &  l,
int  offset,
int  length 
) [inline]

List ( List< T > &  l,
int  offset,
int  length 
) [inline]


Member Function Documentation

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

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

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

Reimplemented from ListBase.

References ListBase::operator+=().

List& operator+= ( T *  p  )  [inline]

Reimplemented from ListBase.

References ListBase::operator+=().

List& operator+= ( T *&  x  )  [inline]

Reimplemented from ListBase.

References ListBase::operator+=().

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

operator ListView< 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