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 Value< T >:
AbstractValue

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

Value (  )  [inline]

Referenced by Value< T >::clone().

Value ( const T &  t  )  [inline, explicit]

Member Function Documentation

AbstractValue* clone (  )  const [inline, virtual]

Implements AbstractValue.

References Value< T >::Value().

void compatibleAssign ( const AbstractValue< T > &  v  )  [inline]
const T& get (  )  const [inline]

References Value< T >::thing.

String getTypeName (  )  const [inline, virtual]

Implements AbstractValue.

Referenced by Value< T >::compatibleAssign().

String getValueAsString (  )  const [inline, virtual]

Implements AbstractValue.

References Value< T >::thing.

bool isCompatible ( const AbstractValue< T > &  v  )  const [inline]
operator const T & (  )  const [inline]

References Value< T >::thing.

operator T & (  )  [inline]

References Value< T >::thing.

Value& operator= ( const T &  t  )  [inline]

References Value< T >::thing.

Value& operator= ( const Value< T > &  v  )  [inline]

Reimplemented from AbstractValue.

References Value< T >::thing.

void set ( const T &  t  )  [inline]

References Value< T >::thing.

SimTK_DOWNCAST ( Value< T >  ,
AbstractValue< T >   
)
T& upd (  )  [inline]

References Value< T >::thing.


Member Data Documentation

T thing [protected]

The documentation for this class was generated from the following file:

Generated on Wed Dec 30 11:05:29 2009 for SimTKcore by  doxygen 1.6.1