VISH  0.2
Classes | Public Member Functions | Protected Attributes
MemCore::Intercube Class Reference

A container that holds many Interfaces. More...

#include </home/werner/origo/vish/memcore/Interface.hpp>

List of all members.

Classes

Public Member Functions

Protected Attributes


Detailed Description

A container that holds many Interfaces.

An interface is an object that is associated with a certain "domain type". Many interface classes may exist for the same domain type, but only one interface object may exist per container. The domain type itself is a dummy type which is never instantiated, it is used only to group certain interface classes into a common hierarchy.

Its name stems from the observation that a cube has multiple faces, so an Intercube must have multiple Interfaces as well.


Member Function Documentation

RefPtr< InterfaceBase > MemCore::Intercube::findInterface ( const type_info &  t) const

Find a certain interface of specified type.

Parameters:
tThe interface type to be queried.
RefPtr< InterfaceBase > MemCore::Intercube::getInterface ( const type_info &  t)

Retrieve an interface object from a certain type.

Might create the interface on demand.

bool MemCore::Intercube::hasInterface ( const type_info &  t) const

Check if some Interface might exist.

Does not create the interface if it does not exist.


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