Darc Library  2012.11
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
darc::core::CR_Attribute_TN< T, N > Class Template Reference

Template attribute class. More...

#include <cr_attribute.h>

Inheritance diagram for darc::core::CR_Attribute_TN< T, N >:
darc::core::IAttribute

List of all members.

Public Member Functions

virtual UInt GetPayloadSize () const
 Returns the payload size in bytes.
virtual const type_info & GetType () const
virtual std::ostream & out (std::ostream &_o) const
 CR_Attribute_TN (const T *_att)
void SetArray (const T *_att)
virtual IAttributeGetClone () const
 Returns a clone of this object (including ownership, i.e., the calling function is responsible to delete the clone).
virtual const void * GetVoidPointer () const
const T * GetArray () const

Detailed Description

template<typename T, UInt N>
class darc::core::CR_Attribute_TN< T, N >

Template attribute class.

Attributes should be used in combination with CR_AttributeManager. Use only with types whose sizeof() method returns the actual object size. This class supports arrays by default.

Template Parameters:
TType of values.
NNumber of values.

Constructor & Destructor Documentation

template<typename T , UInt N>
darc::core::CR_Attribute_TN< T, N >::CR_Attribute_TN ( const T *  _att) [inline]

Member Function Documentation

template<typename T , UInt N>
const T* darc::core::CR_Attribute_TN< T, N >::GetArray ( ) const [inline]
template<typename T , UInt N>
virtual IAttribute* darc::core::CR_Attribute_TN< T, N >::GetClone ( ) const [inline, virtual]

Returns a clone of this object (including ownership, i.e., the calling function is responsible to delete the clone).

Implements darc::core::IAttribute.

template<typename T , UInt N>
virtual UInt darc::core::CR_Attribute_TN< T, N >::GetPayloadSize ( ) const [inline, virtual]

Returns the payload size in bytes.

Implements darc::core::IAttribute.

template<typename T , UInt N>
virtual const type_info& darc::core::CR_Attribute_TN< T, N >::GetType ( ) const [inline, virtual]
template<typename T , UInt N>
virtual const void* darc::core::CR_Attribute_TN< T, N >::GetVoidPointer ( ) const [inline, virtual]
template<typename T , UInt N>
virtual std::ostream& darc::core::CR_Attribute_TN< T, N >::out ( std::ostream &  _o) const [inline, virtual]
template<typename T , UInt N>
void darc::core::CR_Attribute_TN< T, N >::SetArray ( const T *  _att) [inline]

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