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

common::CContainer Class Reference

#include <hyp.fem.intern.h>

Inheritance diagram for common::CContainer::

IContainer IContainerKey IContainerIterator List of all members.

Public Methods

 CContainer (hyp_ker::IUnknown *)
virtual ~CContainer ()
virtual hyp_DECLARE_IUNKNOWN
hyp_ker::com_result 
NondelegatingQueryInterface (const hyp_ker::hypIID &, void **)
virtual void Add (hyp_ker::IUnknown *)
virtual void RemoveAll ()
virtual t_size GetSize () const
virtual void Remove (hyp_ker::IUnknown *)
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 &)
virtual hyp_ker::IUnknown * SetBeginSelection ()
virtual hyp_ker::IUnknown * GetSelection ()
virtual hyp_ker::IUnknown * IncrSelection ()

Static Public Methods

hyp_ker::com_result CreateInstance (hyp_ker::IUnknown *pUnknownOuter, hyp_ker::CUnknown **)

Detailed Description

Description
    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


Member Function Documentation

virtual void common::CContainer::Add hyp_ker::IUnknown *   component,
const t_label &   key
[virtual]
 

Adds a interface.

Parameters:
pObject   Interface inserted
Label   Label of the interface inserted.
Invariant:
If a label already exists, the client is motified.

Reimplemented from IContainerKey.

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

Add an interface in the container.

Parameters:
pObject   Interface inserted
Invariant:
Implemetation increment the counting reference of the inserted interface.

Reimplemented from IContainer.

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

Returns the interface.

Parameters:
Label   Label of the acceded interface

Reimplemented from IContainerKey.

virtual t_label common::CContainer::GetKey hyp_ker::IUnknown *   component [virtual]
 

Returns the label of a interface.

Parameters:
pObject   Interface which is associated with the label

Reimplemented from IContainerKey.

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

Returns the current element of the sequence.

Reimplemented from IContainerIterator.

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

Increments the pointer of the sequence. Returns the new pointed interface.

Reimplemented from IContainerIterator.

virtual void common::CContainer::Remove const t_label &   key [virtual]
 

Removes an interface.

Parameters:
Label   Label of the removed interface.

Reimplemented from IContainerKey.

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

Remove an interface from the container.

Parameters:
pObject   Interfaced removed
Invariant:
Implementation decrement the counting reference of the removed interface.

Reimplemented from IContainer.

virtual void common::CContainer::RemoveAll void   [virtual]
 

Remove all the interfaces handles by the container.

Invariant:
Implementation decrements the counting reference for each release interface

Reimplemented from IContainer.

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

Returns the beginning of the sequence.

Reimplemented from IContainerIterator.

virtual void common::CContainer::SetKey hyp_ker::IUnknown *   component,
const t_label &   key
[virtual]
 

Modifies the label of an inserted interface.

Parameters:
pObject   Interface
Label   New label
Invariant:
If Label alreday exists in the container, the client is notified.

Reimplemented from IContainerKey.


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