Array.h File Reference

#include "SimTKcommon/internal/common.h"
#include <cstddef>
#include <cassert>
#include <ostream>

Go to the source code of this file.

Classes

class  ArrayHelper
 Non-templatized helper class for ArrayBase<T>. More...
class  ArrayBase< T >
class  ArrayView< T >
 This class is a duplicate of Array and can be cast to an Array with no harm. More...
class  Array< T >
 Container class like std::vector<T> but with hidden implementation. More...

Namespaces

namespace  SimTKimpl
namespace  SimTK
 

This is the top-level SimTK namespace into which all SimTK names are placed to avoid collision with other symbols.


Functions

template<class T >
int findFirstOf (const Array< T > &a, const T &test)
 If the type T supports an "==" operator, you can instantiate this method to find the first element of an Array<T> which matches the supplied test element.
template<class T >
int findFirstOf (const ArrayView< T > &a, const T &test)
template<class T >
Array< int > findAllOf (const Array< T > &a, const T &test)
 If the type T supports an "==" operator, you can instantiate this method to find the indices of all elements of an Array<T> at which the elements match the supplied test element.
template<class T >
Array< int > findAllOf (const ArrayView< T > &a, const T &test)
template<class T >
bool contains (const Array< T > &a, const T &test)
 If the type T supports an "==" operator, you can instantiate this method to find out if an Array<T> contains a particular test element.
template<class T >
bool contains (const ArrayView< T > &a, const T &test)
template<class T >
std::ostream & operator<< (std::ostream &s, const Array< T > &a)
template<class T >
std::ostream & operator<< (std::ostream &s, const ArrayView< T > &a)

Generated by  doxygen 1.6.2