Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

CContainer Class Reference

#include <hyp.com.container.h>

Inheritance diagram for CContainer::

IContainer IContainerKey IContainerIterator List of all members.

Common Functions

See the Hyperion Pattern.

 CContainer (hyp_ker::IUnknown *)
virtual ~CContainer ()
virtual hyp_DECLARE_IUNKNOWN
hyp_ker::com_result 
NondelegatingQueryInterface (const hyp_ker::hypIID &, void **)
hyp_ker::com_result CreateInstance (hyp_ker::IUnknown *,hyp_ker::CUnknown **)

IContainer Implementation

virtual void Add (hyp_ker::IUnknown *)
virtual void RemoveAll ()
virtual t_size GetSize () const
virtual void Remove (hyp_ker::IUnknown *)

IContainerKey Implementation

virtual void Add (hyp_ker::IUnknown *, const t_label &)
virtual void Remove (const t_label &)
virtual hyp_ker::IUnknown * GetContent (const t_label &)
virtual t_label GetKey (hyp_ker::IUnknown *)
virtual void SetKey (hyp_ker::IUnknown *, const t_label &)

IContainerIterator Implementation

virtual hyp_ker::IUnknown * SetBeginSelection ()
virtual hyp_ker::IUnknown * GetSelection ()
virtual hyp_ker::IUnknown * IncrSelection ()

Detailed Description

This is the default implementation of the interface s IContainer, IContainerKey and IContainerIterator.
CLSID
Here are the Class Indetifiers (CLSID) supported by the class:
Supported Interfaces
Here is the interfaces which are supported by the component.

    hyp_ker::com_result CContainer::NondelegatingQueryInterface(const hyp_ker::hypIID& iid,void** ppv)
    {
            if(iid==IID_hypIContainer) {
                    return FinishQI(static_cast<IContainer*>(this),ppv);
            } else if(iid==IID_hypIContainerIterator) {
                    return FinishQI(static_cast<IContainerIterator*>(this),ppv);
            } else if(iid==IID_hypIContainerKey) {
                    return FinishQI(static_cast<IContainerKey*>(this),ppv);
            } else {
                    return CUnknown::NondelegatingQueryInterface(iid,ppv);
            }
    }
    //DOXYTAG
Implementation Details


Member Function Documentation

void CContainer::Add hyp_ker::IUnknown *   pObject,
const t_label &   Label
[virtual]
 

Adds a component to the container.

Parameters:
pObject   Inserted component
Label   ContainerLabel of the inserted component

Reimplemented from IContainerKey.

void CContainer::Add hyp_ker::IUnknown *   pObject [virtual]
 

The inserted interface has not associated label, so the implementation finds the first label which is superior to the other keys in the container.

Reimplemented from IContainer.

hyp_ker::IUnknown * CContainer::GetContent const t_label &   Label [virtual]
 

Returns a reference to a component.

Parameters:
Label   ContainerLabel of the accessed component

Reimplemented from IContainerKey.

t_label CContainer::GetKey hyp_ker::IUnknown *   pObject [virtual]
 

Returns the ContainerLabel of a component.

Parameters:
pObject   Component associated to the ContainerLabel

Reimplemented from IContainerKey.

hyp_ker::IUnknown * CContainer::GetSelection   [virtual]
 

Returns the current component of the sequence.

Reimplemented from IContainerIterator.

t_size CContainer::GetSize   const [virtual]
 

The inserted interface has not associated label, so the implementation finds the first label which is superior to the other keys in the container.

Reimplemented from IContainer.

hyp_ker::IUnknown * CContainer::IncrSelection   [virtual]
 

Increments the pointer of the sequence. Afterwards, returns GetSelection.

Reimplemented from IContainerIterator.

void CContainer::Remove const t_label &   Label [virtual]
 

Removes a component from the container.

Parameters:
Label   ContainerLabel of the removed component

Reimplemented from IContainerKey.

void CContainer::Remove hyp_ker::IUnknown *   pObject [virtual]
 

The inserted interface has not associated label, so the implementation finds the first label which is superior to the other keys in the container.

Reimplemented from IContainer.

void CContainer::RemoveAll   [virtual]
 

The inserted interface has not associated label, so the implementation finds the first label which is superior to the other keys in the container.

Reimplemented from IContainer.

hyp_ker::IUnknown * CContainer::SetBeginSelection   [virtual]
 

Returns the beginning of the sequence.

Reimplemented from IContainerIterator.

void CContainer::SetKey hyp_ker::IUnknown *   pObject,
const t_label &   Label
[virtual]
 

Modifies the label of an inserted component.

Parameters:
pObject   Component
Label   New ContainerLabel

Reimplemented from IContainerKey.


The documentation for this class was generated from the following files:
Top of Page
written by Pierre Rebours © 2000-2001. Terms of Use.