OMK::IAccessorT< T > Class Template Reference
[Attribute feature]

The interface class for accessor to a simple value. More...

#include <OMKIAccessor.h>

Inheritance diagram for OMK::IAccessorT< T >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~IAccessorT ()
 Virtual destructor.
virtual const T & get () const=0
 Get the value.
virtual void set (const T &value)=0
 Set the value.
 operator const T & () const
 Returns the const cast.

Detailed Description

template<typename T>
class OMK::IAccessorT< T >

The interface class for accessor to a simple value.

Date:
2007-01-19
Author:
Benoît Chanclou
This class defines a simple interface class which defines accessors for a parameter. In other words it is a parameter accessor with a get and a set.

This interface is a template class, the parameter is:

To use it see the attribute.

The attributes use the default copy constructor in their own constructor. Be carreful if you create a new kind of accessor !

Definition at line 50 of file OMKIAccessor.h.


Constructor & Destructor Documentation

template<typename T>
virtual OMK::IAccessorT< T >::~IAccessorT (  )  [inline, virtual]

Virtual destructor.

Definition at line 54 of file OMKIAccessor.h.

00054 {}


Member Function Documentation

template<typename T>
virtual const T& OMK::IAccessorT< T >::get (  )  const [pure virtual]

Get the value.

Returns:
The current value.

Implemented in OMK::IAttributeT< PrmType, ModelType, AccessorType >, OMK::AccessorT< T >, OMK::AccessorFctT< T, ObjectT >, OMK::AccessorAccT< T, T2 >, OMK::IAttributeT< PrmType, PrmType, OMK::AccessorFctT< PrmType, ObjectType > >, OMK::IAttributeT< PrmType, OMK::Type::SimpleTypeT< PrmType >, OMK::AccessorAccT< PrmType, PrmAccType > >, OMK::IAttributeT< PrmType, PrmType, OMK::AccessorAccT< PrmType, PrmAccType > >, OMK::IAttributeT< PrmType, PrmType, OMK::AccessorT< PrmType > >, OMK::IAttributeT< T, OMK::Type::SimpleTypeT< T >, OMK::AccessorT< T > >, OMK::IAttributeT< bool, OMK::Type::SimpleTypeT< bool >, OMK::AccessorT< bool > >, OMK::IAttributeT< OMK::Type::Transform, OMK::Type::SimpleTypeT< OMK::Type::Transform >, OMK::AccessorT< OMK::Type::Transform > >, OMK::IAttributeT< HBT::PostureData, OMK::Type::SimpleTypeT< HBT::PostureData >, OMK::AccessorT< HBT::PostureData > >, OMK::IAttributeT< Type, OMK::Type::SimpleTypeT< Type >, OMK::AccessorAccT< Type, AttributType > >, OMK::IAttributeT< float, OMK::Type::SimpleTypeT< float >, OMK::AccessorT< float > >, OMK::IAttributeT< PrmType, OMK::Type::SimpleTypeT< PrmType >, OMK::AccessorT< PrmType > >, OMK::IAttributeT< PrmType, OMK::Type::SimpleTypeT< PrmType >, OMK::AccessorFctT< PrmType, ObjectType > >, OMK::AccessorT< float >, OMK::AccessorT< PrmType >, OMK::AccessorT< bool >, OMK::AccessorT< HBT::PostureData >, OMK::AccessorT< OMK::Type::Transform >, OMK::AccessorFctT< PrmType, ObjectType >, OMK::AccessorAccT< PrmType, PrmAccType >, and OMK::AccessorAccT< Type, AttributType >.

Referenced by OMK::Iii::Joint::currentJointPosition(), OMK::Iii::HingeSlideJoint::currentObjectPosition(), OMK::Iii::BallJoint::currentObjectPosition(), OMK::Iii::Joint::currentObjectPosition(), OMK::Iii::ScrewJoint::establishLink(), OMK::Iii::HingeSlideJoint::establishLink(), OMK::Iii::BallJoint::establishLink(), OMK::Iii::Joint::establishLink(), OMK::AccessorAccT< Type, AttributType >::get(), OMK::IAccessorT< Type >::operator const Type &(), OMK::MultiTriggerEmitterExtensionT< T, ModelType >::postComputeParameters(), OMK::TriggerEmitterExtensionT< T, ModelType >::postComputeParameters(), OMK::TriggerEmitterExtension::postComputeParameters(), OMK::MultiTriggerContainerExtension::postComputeParameters(), OMK::TriggerContainerExtension::postComputeParameters(), OMK::NotAttributeExtension::postComputeParameters(), OMK::DistanceToExtension::preComputeParameters(), OMK::MultiTriggerContainerExtension::preComputeParameters(), OMK::TriggerContainerExtension::preComputeParameters(), OMK::PreOffsetExtension::preComputeParameters(), OMK::NotAttributeExtension::preComputeParameters(), OMK::Iii::HingeSlideJoint::retroPropagation(), OMK::Iii::BallJoint::retroPropagation(), OMK::Iii::Joint::retroPropagation(), OMK::ParametersAccessor::setValue(), OMK::Iii::SharedConnectorT< Type >::updateParameter(), and OMK::Iii::SimpleConnectorT< Type >::updateParameter().

template<typename T>
virtual void OMK::IAccessorT< T >::set ( const T &  value  )  [pure virtual]

Set the value.

Parameters:
[in] value The new value.

Implemented in OMK::IAttributeT< PrmType, ModelType, AccessorType >, OMK::AccessorT< T >, OMK::AccessorFctT< T, ObjectT >, OMK::AccessorAccT< T, T2 >, OMK::IAttributeT< PrmType, PrmType, OMK::AccessorFctT< PrmType, ObjectType > >, OMK::IAttributeT< PrmType, OMK::Type::SimpleTypeT< PrmType >, OMK::AccessorAccT< PrmType, PrmAccType > >, OMK::IAttributeT< PrmType, PrmType, OMK::AccessorAccT< PrmType, PrmAccType > >, OMK::IAttributeT< PrmType, PrmType, OMK::AccessorT< PrmType > >, OMK::IAttributeT< T, OMK::Type::SimpleTypeT< T >, OMK::AccessorT< T > >, OMK::IAttributeT< bool, OMK::Type::SimpleTypeT< bool >, OMK::AccessorT< bool > >, OMK::IAttributeT< OMK::Type::Transform, OMK::Type::SimpleTypeT< OMK::Type::Transform >, OMK::AccessorT< OMK::Type::Transform > >, OMK::IAttributeT< HBT::PostureData, OMK::Type::SimpleTypeT< HBT::PostureData >, OMK::AccessorT< HBT::PostureData > >, OMK::IAttributeT< Type, OMK::Type::SimpleTypeT< Type >, OMK::AccessorAccT< Type, AttributType > >, OMK::IAttributeT< float, OMK::Type::SimpleTypeT< float >, OMK::AccessorT< float > >, OMK::IAttributeT< PrmType, OMK::Type::SimpleTypeT< PrmType >, OMK::AccessorT< PrmType > >, OMK::IAttributeT< PrmType, OMK::Type::SimpleTypeT< PrmType >, OMK::AccessorFctT< PrmType, ObjectType > >, OMK::AccessorT< float >, OMK::AccessorT< PrmType >, OMK::AccessorT< bool >, OMK::AccessorT< HBT::PostureData >, OMK::AccessorT< OMK::Type::Transform >, OMK::AccessorFctT< PrmType, ObjectType >, OMK::AccessorAccT< PrmType, PrmAccType >, and OMK::AccessorAccT< Type, AttributType >.

Referenced by OMK::Iii::Joint::currentJointPosition(), OMK::Iii::HingeSlideJoint::currentObjectPosition(), OMK::Iii::BallJoint::currentObjectPosition(), OMK::Iii::Joint::currentObjectPosition(), OMK::ParametersAccessor::getValue(), OMK::TriggerBaseExtension::preComputeParameters(), OMK::PreOffsetExtension::preComputeParameters(), OMK::NotAttributeExtension::preComputeParameters(), OMK::Iii::HingeSlideJoint::retroPropagation(), OMK::Iii::BallJoint::retroPropagation(), OMK::Iii::Joint::retroPropagation(), OMK::AccessorAccT< Type, AttributType >::set(), OMK::Iii::SharedConnectorT< Type >::updateParameter(), and OMK::Iii::SimpleConnectorT< Type >::updateParameter().

template<typename T>
OMK::IAccessorT< T >::operator const T & (  )  const [inline]

Returns the const cast.

Returns:
The current value.

Definition at line 63 of file OMKIAccessor.h.

00063 { return get() ; } 


logo OpenMask

Documentation generated on Mon Jun 9 11:46:01 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007