![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Pointer to referenced component object. More...
#include <TReferenceMember.h>
Public Types | |
typedef TAttributeMember< CReferenceAttribute > | BaseClass |
typedef CInterfaceManipBase | BaseClass2 |
typedef Interface | InterfaceType |
![]() | |
typedef CReferenceAttribute | AttributeType |
typedef CReferenceAttribute::ValueType | AttributeValueType |
typedef void | InterfaceType |
Public Member Functions | |
TReferenceMember () | |
void | Init (const IComponent *ownerPtr, const IRealAttributeStaticInfo &staticInfo) |
bool | IsValid () const |
Check if this reference can be resolved. | |
bool | EnsureInitialized () const |
Ensure that initlization process is closed. | |
Interface * | get () const |
Direct cccess to internal pointer. | |
Interface * | operator-> () const |
Access to internal pointer. | |
bool | operator== (Interface *ptr) const |
bool | operator!= (Interface *ptr) const |
![]() | |
TAttributeMember () | |
void | Init (const IComponent *ownerPtr, const IRealAttributeStaticInfo &staticInfo) |
Initialize this attribute. | |
bool | IsValid () const |
Check if this attribute is valid. | |
const CReferenceAttribute * | GetAttributePtr () const |
Access to internal attribute pointer. | |
const AttributeValueType & | GetOriginalValue () const |
Get value of attribute. | |
const CReferenceAttribute * | operator-> () const |
Access to internal attribute pointer. | |
bool | operator== (const CReferenceAttribute *ptr) const |
bool | operator!= (const CReferenceAttribute *ptr) const |
const AttributeValueType & | operator* () const |
Get value of attribute. | |
Protected Member Functions | |
TReferenceMember (const TReferenceMember &ptr) | |
![]() | |
void | SetAttribute (const CReferenceAttribute *attributePtr) |
bool | InitInternal (const IComponent *ownerPtr, const IRealAttributeStaticInfo &staticInfo, const IComponent **definitionComponentPtr) |
Internal initialize of attribute. | |
Additional Inherited Members | |
![]() | |
template<class Interface > | |
static Interface * | ExtractInterface (IComponent *componentPtr, const QByteArray &subId="") |
Extract interface from component. | |
![]() | |
static bool | SplitId (const QByteArray &complexId, QByteArray &baseId, QByteArray &subId) |
Split component ID into separated ID's. | |
static QByteArray | JoinId (const QByteArray &baseId, const QByteArray &subId) |
Join base component ID and sub ID into composed component ID. | |
Pointer to referenced component object.
Don't use direct this class, use macros I_REF
and I_ASSIGN
instead.
Definition at line 25 of file TReferenceMember.h.
TAttributeMember<CReferenceAttribute> icomp::TReferenceMember< Interface >::BaseClass |
Definition at line 30 of file TReferenceMember.h.
CInterfaceManipBase icomp::TReferenceMember< Interface >::BaseClass2 |
Definition at line 31 of file TReferenceMember.h.
Interface icomp::TReferenceMember< Interface >::InterfaceType |
Definition at line 32 of file TReferenceMember.h.
icomp::TReferenceMember< Interface >::TReferenceMember | ( | ) |
Definition at line 77 of file TReferenceMember.h.
|
protected |
Definition at line 167 of file TReferenceMember.h.
bool icomp::TReferenceMember< Interface >::EnsureInitialized | ( | ) | const |
Ensure that initlization process is closed.
Do the same as IsValid()
, for convinience only (to provide better code clarify).
Definition at line 100 of file TReferenceMember.h.
References icomp::IComponent::GetParentComponent(), and icomp::ICompositeComponent::GetSubcomponent().
Interface * icomp::TReferenceMember< Interface >::get | ( | ) | const |
Direct cccess to internal pointer.
Definition at line 128 of file TReferenceMember.h.
Referenced by iprm::TParamsPtr< ParameterInterace >::Init(), and operator*().
void icomp::TReferenceMember< Interface >::Init | ( | const IComponent * | ownerPtr, |
const IRealAttributeStaticInfo & | staticInfo ) |
Definition at line 84 of file TReferenceMember.h.
bool icomp::TReferenceMember< Interface >::IsValid | ( | ) | const |
Check if this reference can be resolved.
It calls EnsureInitialized()
.
Definition at line 93 of file TReferenceMember.h.
Referenced by iprm::TParamsPtr< ParameterInterace >::Init().
bool icomp::TReferenceMember< Interface >::operator!= | ( | Interface * | ptr | ) | const |
Definition at line 156 of file TReferenceMember.h.
Interface * icomp::TReferenceMember< Interface >::operator-> | ( | ) | const |
Access to internal pointer.
Definition at line 137 of file TReferenceMember.h.
bool icomp::TReferenceMember< Interface >::operator== | ( | Interface * | ptr | ) | const |
Definition at line 147 of file TReferenceMember.h.
© Witold Gantzke and Kirill Lepskiy