Public Types | Public Member Functions | Protected Member Functions | List of all members
icomp::TMultiAttributeMember< Attribute > Class Template Reference

Pointer to component attribute. More...

#include <TMultiAttributeMember.h>

Public Types

typedef Attribute AttributeType
 
typedef Attribute::ValueType AttributeValueType
 
typedef void InterfaceType
 

Public Member Functions

 TMultiAttributeMember ()
 
void Init (const IComponent *ownerPtr, const IRealAttributeStaticInfo &staticInfo)
 Internal initialize of attribute. More...
 
bool IsValid () const
 Check if this attribute is valid. More...
 
int GetCount () const
 Get number of attributes. More...
 
const AttributeValueTypeoperator[] (int index) const
 Access to object pointed by internal pointer. More...
 
int FindValue (const AttributeValueType &value) const
 Find attribute value. More...
 

Protected Member Functions

bool InitInternal (const IComponent *ownerPtr, const IRealAttributeStaticInfo &staticInfo, const IComponent **definitionComponentPtr)
 

Detailed Description

template<typename Attribute>
class icomp::TMultiAttributeMember< Attribute >

Pointer to component attribute.

Definition at line 20 of file TMultiAttributeMember.h.

Member Typedef Documentation

template<typename Attribute>
typedef Attribute icomp::TMultiAttributeMember< Attribute >::AttributeType

Definition at line 23 of file TMultiAttributeMember.h.

template<typename Attribute>
typedef Attribute::ValueType icomp::TMultiAttributeMember< Attribute >::AttributeValueType

Definition at line 24 of file TMultiAttributeMember.h.

template<typename Attribute>
typedef void icomp::TMultiAttributeMember< Attribute >::InterfaceType

Definition at line 25 of file TMultiAttributeMember.h.

Constructor & Destructor Documentation

template<typename Attribute >
icomp::TMultiAttributeMember< Attribute >::TMultiAttributeMember ( )

Definition at line 74 of file TMultiAttributeMember.h.

Member Function Documentation

template<typename Attribute >
int icomp::TMultiAttributeMember< Attribute >::FindValue ( const AttributeValueType value) const

Find attribute value.

Returns
Index of the found element, or -1 if no value was found.

Definition at line 121 of file TMultiAttributeMember.h.

References NULL.

template<typename Attribute >
int icomp::TMultiAttributeMember< Attribute >::GetCount ( ) const

Get number of attributes.

Definition at line 97 of file TMultiAttributeMember.h.

References NULL.

template<typename Attribute >
void icomp::TMultiAttributeMember< Attribute >::Init ( const IComponent ownerPtr,
const IRealAttributeStaticInfo staticInfo 
)

Internal initialize of attribute.

Parameters
ownerPtrpointer to parent component of this attribute.
staticInfostatic info structure creating this attribute.
definitionComponentPtroptional pointer will be set with pointer to component defining this attribute. If this attribute was exported it will differ from parent component.

Definition at line 81 of file TMultiAttributeMember.h.

References NULL.

template<typename Attribute >
bool icomp::TMultiAttributeMember< Attribute >::InitInternal ( const IComponent ownerPtr,
const IRealAttributeStaticInfo staticInfo,
const IComponent **  definitionComponentPtr 
)
protected
template<typename Attribute >
bool icomp::TMultiAttributeMember< Attribute >::IsValid ( ) const

Check if this attribute is valid.

Definition at line 90 of file TMultiAttributeMember.h.

References NULL.

template<typename Attribute >
const TMultiAttributeMember< Attribute >::AttributeValueType & icomp::TMultiAttributeMember< Attribute >::operator[] ( int  index) const

Access to object pointed by internal pointer.

Definition at line 109 of file TMultiAttributeMember.h.

References NULL.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy