List< T > Class Template Reference
Container class with hidden implementation.
More...
#include <List.h>
List of all members.
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) |
List & | operator+= (const T &x) |
List & | operator+= (T *p) |
List & | operator+= (T *&x) |
| operator const ListView< T > & () const |
| operator ListView< T > & () |
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.
Constructor & Destructor Documentation
List |
( |
int |
n |
) |
[inline, explicit] |
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
operator const ListView< T > & |
( |
|
) |
const [inline] |
ListView<T> operator() |
( |
int |
offset, |
|
|
int |
length | |
|
) |
| | [inline] |
const ListView<T> operator() |
( |
int |
offset, |
|
|
int |
length | |
|
) |
| | const [inline] |
List& operator+= |
( |
T *& |
x |
) |
[inline] |
List& operator+= |
( |
T * |
p |
) |
[inline] |
List& operator+= |
( |
const T & |
x |
) |
[inline] |
The documentation for this class was generated from the following file: