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

IContainer Class Reference

#include <hyp.fem.interfaces.h>

Inheritance diagram for IContainer::

CContainer common::CContainer List of all members.

Public Methods

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

Detailed Description

Defines the basic functionnalities of a component container, that is, a set of references to component interfaces. Indeed, the container doesn't handle copy of components but references to the component, so the implementation must increment or decrement the counting reference of the interface.

Each interface has a common root : IUnknown, so the addition and the suppression of the elements are done throught the IUnknown interface.


Member Function Documentation

virtual void IContainer::Add hyp_ker::IUnknown *   component [pure virtual]
 

Add an interface in the container.

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

Reimplemented in CContainer, and common::CContainer.

virtual void IContainer::Remove hyp_ker::IUnknown *   component [pure virtual]
 

Remove an interface from the container.

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

Reimplemented in CContainer, and common::CContainer.

virtual void IContainer::RemoveAll void   [pure virtual]
 

Remove all the interfaces handles by the container.

Invariant:
Implementation decrements the counting reference for each release interface

Reimplemented in CContainer, and common::CContainer.


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