Simbody  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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...

+ Inheritance diagram for SimTK::Value< T >:

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)
 
- Public Member Functions inherited from SimTK::AbstractValue
 AbstractValue ()
 
virtual ~AbstractValue ()
 
AbstractValueoperator= (const AbstractValue &v)
 

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

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
inlinevirtual

Implements SimTK::AbstractValue.

template<class T>
void SimTK::Value< T >::compatibleAssign ( const AbstractValue< T > &  v)
inlinevirtual

Implements SimTK::AbstractValue.

template<class T>
String SimTK::Value< T >::getTypeName ( ) const
inlinevirtual

Implements SimTK::AbstractValue.

template<class T>
String SimTK::Value< T >::getValueAsString ( ) const
inlinevirtual

Implements SimTK::AbstractValue.

template<class T>
AbstractValue* SimTK::Value< T >::clone ( ) const
inlinevirtual

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: