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

Pointer to component attribute. More...

#include <TAttributeMember.h>

Collaboration diagram for icomp::TAttributeMember< Attribute >:

Public Types

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

Public Member Functions

 TAttributeMember ()
 
void Init (const IComponent *ownerPtr, const IRealAttributeStaticInfo &staticInfo)
 Initialize this attribute.
 
bool IsValid () const
 Check if this attribute is valid.
 
const Attribute * GetAttributePtr () const
 Access to internal attribute pointer.
 
const AttributeValueTypeGetOriginalValue () const
 Get value of attribute.
 
const Attribute * operator-> () const
 Access to internal attribute pointer.
 
bool operator== (const Attribute *ptr) const
 
bool operator!= (const Attribute *ptr) const
 
const AttributeValueTypeoperator* () const
 Get value of attribute.
 

Protected Member Functions

void SetAttribute (const Attribute *attributePtr)
 
bool InitInternal (const IComponent *ownerPtr, const IRealAttributeStaticInfo &staticInfo, const IComponent **definitionComponentPtr)
 Internal initialize of attribute.
 

Detailed Description

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

Pointer to component attribute.

Definition at line 30 of file TAttributeMember.h.

Member Typedef Documentation

◆ AttributeType

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

Definition at line 33 of file TAttributeMember.h.

◆ AttributeValueType

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

Definition at line 34 of file TAttributeMember.h.

◆ InterfaceType

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

Definition at line 35 of file TAttributeMember.h.

Constructor & Destructor Documentation

◆ TAttributeMember()

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

Definition at line 97 of file TAttributeMember.h.

Member Function Documentation

◆ GetAttributePtr()

template<typename Attribute >
const Attribute * icomp::TAttributeMember< Attribute >::GetAttributePtr ( ) const

Access to internal attribute pointer.

Definition at line 122 of file TAttributeMember.h.

◆ GetOriginalValue()

template<typename Attribute >
const TAttributeMember< Attribute >::AttributeValueType & icomp::TAttributeMember< Attribute >::GetOriginalValue ( ) const

Get value of attribute.

The String attributes will not be translated.

Definition at line 131 of file TAttributeMember.h.

◆ Init()

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

Initialize this attribute.

Parameters
ownerPtrpointer to parent component of this attribute.
staticInfostatic info structure creating this attribute.

Definition at line 105 of file TAttributeMember.h.

◆ InitInternal()

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

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 181 of file TAttributeMember.h.

References icomp::IComponentContext::GetAttribute(), icomp::IRealAttributeStaticInfo::GetAttributeId(), icomp::IComponent::GetComponentContext(), icomp::CComponentContext::GetHierarchyAddress(), and icomp::IComponent::GetParentComponent().

◆ IsValid()

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

Check if this attribute is valid.

Definition at line 113 of file TAttributeMember.h.

Referenced by iprm::TParamsPtr< ParameterInterace >::Init().

◆ operator!=()

template<typename Attribute >
bool icomp::TAttributeMember< Attribute >::operator!= ( const Attribute * ptr) const

Definition at line 165 of file TAttributeMember.h.

◆ operator*()

template<typename Attribute >
const TAttributeMember< Attribute >::AttributeValueType & icomp::TAttributeMember< Attribute >::operator* ( ) const

Get value of attribute.

Access to object pointed by internal pointer or translated values for String.

Definition at line 149 of file TAttributeMember.h.

◆ operator->()

template<typename Attribute >
const Attribute * icomp::TAttributeMember< Attribute >::operator-> ( ) const

Access to internal attribute pointer.

Definition at line 140 of file TAttributeMember.h.

◆ operator==()

template<typename Attribute >
bool icomp::TAttributeMember< Attribute >::operator== ( const Attribute * ptr) const

Definition at line 158 of file TAttributeMember.h.

◆ SetAttribute()

template<typename Attribute >
void icomp::TAttributeMember< Attribute >::SetAttribute ( const Attribute * attributePtr)
protected

Definition at line 174 of file TAttributeMember.h.


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

© Witold Gantzke and Kirill Lepskiy