Simbody
Public Member Functions | Protected Attributes

SimTK::Value< T > Class Template Reference

Templatized version of the abstract class, providing generic type-specific functionality that does not require specialization, with automatic conversion to the underlying type. More...

#include <Value.h>

Inheritance diagram for SimTK::Value< T >:

List of all members.

Public Member Functions

 Value ()
 Value (const T &t)
Valueoperator= (const Value &v)
Valueoperator= (const T &t)
 operator const T & () const
 operator T & ()
const T & get () const
void set (const T &t)
T & upd ()
bool isCompatible (const AbstractValue &v) const
void compatibleAssign (const AbstractValue &v)
String getTypeName () const
String getValueAsString () const
AbstractValueclone () const
 SimTK_DOWNCAST (Value, AbstractValue)

Protected Attributes

thing

Detailed Description

template<class T>
class SimTK::Value< T >

Templatized version of the abstract class, providing generic type-specific functionality that does not require specialization, with automatic conversion to the underlying type.

Note that this class requires that type T supports an output operator "<<" so that we can serialize abstract values.


Constructor & Destructor Documentation

template<class T>
SimTK::Value< T >::Value ( ) [inline]
template<class T>
SimTK::Value< T >::Value ( const T &  t) [inline, explicit]

Member Function Documentation

template<class T>
Value& SimTK::Value< T >::operator= ( const Value< T > &  v) [inline]
template<class T>
Value& SimTK::Value< T >::operator= ( const T &  t) [inline]
template<class T>
SimTK::Value< T >::operator const T & ( ) const [inline]
template<class T>
SimTK::Value< T >::operator T & ( ) [inline]
template<class T>
const T& SimTK::Value< T >::get ( ) const [inline]
template<class T>
void SimTK::Value< T >::set ( const T &  t) [inline]
template<class T>
T& SimTK::Value< T >::upd ( ) [inline]
template<class T>
bool SimTK::Value< T >::isCompatible ( const AbstractValue< T > &  v) const [inline, virtual]

Implements SimTK::AbstractValue.

template<class T>
void SimTK::Value< T >::compatibleAssign ( const AbstractValue< T > &  v) [inline, virtual]

Implements SimTK::AbstractValue.

template<class T>
String SimTK::Value< T >::getTypeName ( ) const [inline, virtual]

Implements SimTK::AbstractValue.

template<class T>
String SimTK::Value< T >::getValueAsString ( ) const [inline, virtual]

Implements SimTK::AbstractValue.

template<class T>
AbstractValue* SimTK::Value< T >::clone ( ) const [inline, virtual]

Implements SimTK::AbstractValue.

template<class T>
SimTK::Value< T >::SimTK_DOWNCAST ( Value< T >  ,
AbstractValue< T >   
)

Member Data Documentation

template<class T>
T SimTK::Value< T >::thing [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines