ICF 3.0.5.47
Technical documentation of ICF Libraries
icomp::TMultiAttributeMember< Attribute > Class Template Reference

Pointer to component attribute. More...

#include <TMultiAttributeMember.h>

Collaboration diagram for icomp::TMultiAttributeMember< Attribute >:

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.
 
bool IsValid () const
 Check if this attribute is valid.
 
int GetCount () const
 Get number of attributes.
 
const AttributeValueTypeoperator[] (int index) const
 Access to object pointed by internal pointer.
 
int FindValue (const AttributeValueType &value) const
 Find attribute value.
 

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 24 of file TMultiAttributeMember.h.

Member Typedef Documentation

◆ AttributeType

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

Definition at line 27 of file TMultiAttributeMember.h.

◆ AttributeValueType

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

Definition at line 28 of file TMultiAttributeMember.h.

◆ InterfaceType

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

Definition at line 29 of file TMultiAttributeMember.h.

Constructor & Destructor Documentation

◆ TMultiAttributeMember()

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

Definition at line 78 of file TMultiAttributeMember.h.

Member Function Documentation

◆ FindValue()

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 125 of file TMultiAttributeMember.h.

◆ GetCount()

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

Get number of attributes.

Definition at line 101 of file TMultiAttributeMember.h.

◆ Init()

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 85 of file TMultiAttributeMember.h.

◆ InitInternal()

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

◆ IsValid()

template<typename Attribute >
bool icomp::TMultiAttributeMember< Attribute >::IsValid ( ) const

Check if this attribute is valid.

Definition at line 94 of file TMultiAttributeMember.h.

◆ operator[]()

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

Access to object pointed by internal pointer.

Definition at line 113 of file TMultiAttributeMember.h.


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

© Witold Gantzke and Kirill Lepskiy