OMK::AttributeAnimatorT< PrmType > Class Template Reference
[Attribute feature]

Attribute with encapsulated value for types that are not sons of OMKType. More...

#include <OMKAttributeAnimator.h>

Inheritance diagram for OMK::AttributeAnimatorT< PrmType >:

Inheritance graph
[legend]
Collaboration diagram for OMK::AttributeAnimatorT< PrmType >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

PrmTypegetRef ()
 Access to the reference for easier coding.

Detailed Description

template<typename PrmType>
class OMK::AttributeAnimatorT< PrmType >

Attribute with encapsulated value for types that are not sons of OMKType.

Date:
2007-05-01
Author:
BenoƮt Chanclou
Parameters:
PrmType The type of the attribute.
This class is the main class for attribute, in most of the cases use this class to declare attributes.

The value is encapsulated in the associated accessor.

The PrmType is cast with SimpleTypeT.

Definition at line 185 of file OMKAttributeAnimator.h.


Constructor & Destructor Documentation

template<typename PrmType>
OMK::AttributeAnimatorT< PrmType >::AttributeAnimatorT ( const Name id,
const PrmType value 
) [inline]

Constructor.

Parameters:
[in] id See _id.

Definition at line 192 of file OMKAttributeAnimator.h.

00193     : IAttributeAnimatorT< PrmType, OMK::Type::SimpleTypeT< PrmType >, AccessorT< PrmType > >( id, AccessorT< PrmType >( value ) ) {}

template<typename PrmType>
virtual OMK::AttributeAnimatorT< PrmType >::~AttributeAnimatorT (  )  [inline, virtual]

Destructor.

Definition at line 195 of file OMKAttributeAnimator.h.

00195 {}

template<typename PrmType>
OMK::AttributeAnimatorT< PrmType >::AttributeAnimatorT ( const Name id,
const PrmType value 
) [inline]

Constructor.

Parameters:
[in] id See _id.

Definition at line 192 of file OMKAttributeAnimator.h.

00193     : IAttributeAnimatorT< PrmType, OMK::Type::SimpleTypeT< PrmType >, AccessorT< PrmType > >( id, AccessorT< PrmType >( value ) ) {}

template<typename PrmType>
virtual OMK::AttributeAnimatorT< PrmType >::~AttributeAnimatorT (  )  [inline, virtual]

Destructor.

Definition at line 195 of file OMKAttributeAnimator.h.

00195 {}


Member Function Documentation

template<typename PrmType>
PrmType& OMK::AttributeAnimatorT< PrmType >::getRef (  )  [inline]

Access to the reference for easier coding.

With

 AttributeAnimatorT< int > _foo ;
you can use
 _foo.get()++ ;

Definition at line 206 of file OMKAttributeAnimator.h.

References OMK::IAttributeT< PrmType, ModelType, AccessorType >::_accessor.

00206 { return this->_accessor.operator PrmType&() ; }


logo OpenMask

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

Generated with doxygen by Dimitri van Heesch ,   1997-2007