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

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

#include <OMKAttribute.h>

Inheritance diagram for OMK::AttributeTypeT< PrmType >:

Inheritance graph
[legend]
Collaboration diagram for OMK::AttributeTypeT< 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::AttributeTypeT< PrmType >

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

Date:
2007-05-01
Author:
BenoƮt Chanclou
Parameters:
PrmType The type of the attribute.
In most of the cases AttributeT is more appropriated, because it allows to use types that are not sons of OMKType.

The value is encapsulated in the associated accessor.

Definition at line 429 of file OMKAttribute.h.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
[in] id See _id.

Definition at line 436 of file OMKAttribute.h.

00437     : IAttributeT< PrmType, PrmType, AccessorT< PrmType > >( id, AccessorT< PrmType >( value ) ) {}

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

Destructor.

Definition at line 439 of file OMKAttribute.h.

00439 {}

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

Constructor.

Parameters:
[in] id See _id.

Definition at line 436 of file OMKAttribute.h.

00437     : IAttributeT< PrmType, PrmType, AccessorT< PrmType > >( id, AccessorT< PrmType >( value ) ) {}

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

Destructor.

Definition at line 439 of file OMKAttribute.h.

00439 {}


Member Function Documentation

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

Access to the reference for easier coding.

Definition at line 442 of file OMKAttribute.h.

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

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


logo OpenMask

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

Generated with doxygen by Dimitri van Heesch ,   1997-2007