Darc Library
2012.11
|
Template attribute class. More...
#include <cr_attribute.h>
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 IAttribute * | GetClone () 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 |
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.
T | Type of values. |
N | Number of values. |
darc::core::CR_Attribute_TN< T, N >::CR_Attribute_TN | ( | const T * | _att | ) | [inline] |
const T* darc::core::CR_Attribute_TN< T, N >::GetArray | ( | ) | const [inline] |
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.
virtual UInt darc::core::CR_Attribute_TN< T, N >::GetPayloadSize | ( | ) | const [inline, virtual] |
Returns the payload size in bytes.
Implements darc::core::IAttribute.
virtual const type_info& darc::core::CR_Attribute_TN< T, N >::GetType | ( | ) | const [inline, virtual] |
Implements darc::core::IAttribute.
virtual const void* darc::core::CR_Attribute_TN< T, N >::GetVoidPointer | ( | ) | const [inline, virtual] |
Implements darc::core::IAttribute.
virtual std::ostream& darc::core::CR_Attribute_TN< T, N >::out | ( | std::ostream & | _o | ) | const [inline, virtual] |
Implements darc::core::IAttribute.
void darc::core::CR_Attribute_TN< T, N >::SetArray | ( | const T * | _att | ) | [inline] |