ValueHelper Class Template Reference

#include <Value.h>

Inheritance diagram for ValueHelper:

AbstractValue Value

List of all members.


Detailed Description

template<class T>
class SimTK::ValueHelper< T >

Templatized version of the abstract class, providing generic type-specific functionality that does not require specialization.

Public Member Functions

 ValueHelper ()
 ValueHelper (const T &t)
ValueHelperoperator= (const ValueHelper &v)
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 (ValueHelper, AbstractValue)

Protected Attributes

thing

Constructor & Destructor Documentation

ValueHelper (  )  [inline]

Referenced by ValueHelper::clone().

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


Member Function Documentation

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

References ValueHelper::thing.

const T& get (  )  const [inline]

References ValueHelper::thing.

void set ( const T &  t  )  [inline]

References ValueHelper::thing.

T& upd (  )  [inline]

References ValueHelper::thing.

bool isCompatible ( const AbstractValue v  )  const [inline, virtual]

Implements AbstractValue.

void compatibleAssign ( const AbstractValue v  )  [inline, virtual]

String getTypeName (  )  const [inline, virtual]

Implements AbstractValue.

Referenced by ValueHelper::compatibleAssign().

String getValueAsString (  )  const [inline, virtual]

Implements AbstractValue.

References ValueHelper::thing.

AbstractValue* clone (  )  const [inline, virtual]

Implements AbstractValue.

References ValueHelper::ValueHelper().

SimTK_DOWNCAST ( ValueHelper< T >  ,
AbstractValue   
)


Member Data Documentation

T thing [protected]


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

Generated on Fri Sep 26 07:44:29 2008 for SimTKcore by  doxygen 1.5.6