Public Member Functions | Protected Attributes

Intercube Class Reference

A container that holds many Interfaces. More...

#include <memcore/Interface.hpp>

Inheritance diagram for Intercube:
Creature MemCore::LoaderParameters CreatorBase< Domain > CreatorBase< RefType > Creator< RefType >

List of all members.

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> Intercube::findInterface ( const type_info &  t  )  const

Find a certain interface of specified type.

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

Retrieve an interface object from a certain type.

Might create the interface on demand.

bool 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 file: