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

Pointer to list of referenced component objects. More...

#include <TMultiReferenceMember.h>

Inheritance diagram for icomp::TMultiReferenceMember< Interface >:
icomp::TMultiAttributeMember< CMultiReferenceAttribute > icomp::CInterfaceManipBase istd::CIdManipBase

Public Types

typedef TMultiAttributeMember
< CMultiReferenceAttribute
BaseClass
 
typedef CInterfaceManipBase BaseClass2
 
typedef Interface InterfaceType
 
- Public Types inherited from icomp::TMultiAttributeMember< CMultiReferenceAttribute >
typedef CMultiReferenceAttribute AttributeType
 
typedef
CMultiReferenceAttribute::ValueType 
AttributeValueType
 
typedef void InterfaceType
 

Public Member Functions

 TMultiReferenceMember ()
 
void Init (const IComponent *ownerPtr, const IRealAttributeStaticInfo &staticInfo)
 
bool IsValid () const
 Check if this reference can be resolved. More...
 
bool EnsureInitialized () const
 Ensure that initlization process is closed. More...
 
Interface * operator[] (int index) const
 Access to interface of component at specified index. More...
 
- Public Member Functions inherited from icomp::TMultiAttributeMember< CMultiReferenceAttribute >
 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

 TMultiReferenceMember (const TMultiReferenceMember &ptr)
 
- Protected Member Functions inherited from icomp::TMultiAttributeMember< CMultiReferenceAttribute >
bool InitInternal (const IComponent *ownerPtr, const IRealAttributeStaticInfo &staticInfo, const IComponent **definitionComponentPtr)
 

Additional Inherited Members

- Static Public Member Functions inherited from istd::CIdManipBase
static bool SplitId (const QByteArray &complexId, QByteArray &baseId, QByteArray &subId)
 Split component ID into separated ID's. More...
 
static QByteArray JoinId (const QByteArray &baseId, const QByteArray &subId)
 Join base component ID and sub ID into composed component ID. More...
 
- Static Protected Member Functions inherited from icomp::CInterfaceManipBase
template<class Interface >
static Interface * ExtractInterface (IComponent *componentPtr, const QByteArray &subId="")
 Extract interface from component. More...
 

Detailed Description

template<class Interface>
class icomp::TMultiReferenceMember< Interface >

Pointer to list of referenced component objects.

Don't use direct this class, use macros I_MULTI_REF and I_ASSIGN_MULTI_* instead.

Definition at line 20 of file TMultiReferenceMember.h.

Member Typedef Documentation

template<class Interface >
typedef TMultiAttributeMember<CMultiReferenceAttribute> icomp::TMultiReferenceMember< Interface >::BaseClass

Definition at line 23 of file TMultiReferenceMember.h.

template<class Interface >
typedef CInterfaceManipBase icomp::TMultiReferenceMember< Interface >::BaseClass2

Definition at line 24 of file TMultiReferenceMember.h.

template<class Interface >
typedef Interface icomp::TMultiReferenceMember< Interface >::InterfaceType

Definition at line 25 of file TMultiReferenceMember.h.

Constructor & Destructor Documentation

template<class Interface >
icomp::TMultiReferenceMember< Interface >::TMultiReferenceMember ( )

Definition at line 64 of file TMultiReferenceMember.h.

template<class Interface >
icomp::TMultiReferenceMember< Interface >::TMultiReferenceMember ( const TMultiReferenceMember< Interface > &  ptr)
protected

Definition at line 137 of file TMultiReferenceMember.h.

Member Function Documentation

template<class Interface >
bool icomp::TMultiReferenceMember< 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 87 of file TMultiReferenceMember.h.

References icomp::IComponent::GetParentComponent(), icomp::ICompositeComponent::GetSubcomponent(), and NULL.

template<class Interface >
void icomp::TMultiReferenceMember< Interface >::Init ( const IComponent ownerPtr,
const IRealAttributeStaticInfo staticInfo 
)

Definition at line 71 of file TMultiReferenceMember.h.

template<class Interface >
bool icomp::TMultiReferenceMember< Interface >::IsValid ( ) const

Check if this reference can be resolved.

It calls EnsureInitialized().

Definition at line 80 of file TMultiReferenceMember.h.

template<class Interface >
Interface * icomp::TMultiReferenceMember< Interface >::operator[] ( int  index) const

Access to interface of component at specified index.

Returns
pointer to interface or NULL if there is no associated object at this index.

Definition at line 120 of file TMultiReferenceMember.h.

References NULL.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy