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

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

#include <OMKAttribute.h>

Inheritance diagram for OMK::AttributeT< PrmType >:

Inheritance graph
[legend]
Collaboration diagram for OMK::AttributeT< 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::AttributeT< 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 391 of file OMKAttribute.h.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
[in] id See _id.

Definition at line 398 of file OMKAttribute.h.

00399     : IAttributeT< PrmType, OMK::Type::SimpleTypeT< PrmType >, AccessorT< PrmType > >( id, AccessorT< PrmType >( value ) ) {}

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

Destructor.

Definition at line 401 of file OMKAttribute.h.

00401 {}

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

Constructor.

Parameters:
[in] id See _id.

Definition at line 398 of file OMKAttribute.h.

00399     : IAttributeT< PrmType, OMK::Type::SimpleTypeT< PrmType >, AccessorT< PrmType > >( id, AccessorT< PrmType >( value ) ) {}

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

Destructor.

Definition at line 401 of file OMKAttribute.h.

00401 {}


Member Function Documentation

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

Access to the reference for easier coding.

With

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

Definition at line 412 of file OMKAttribute.h.

00412 { 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