A container that holds many Interfaces. More...
#include <memcore/Interface.hpp>
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.
RefPtr<InterfaceBase> Intercube::findInterface | ( | const type_info & | t | ) | const |
Find a certain interface of specified type.
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.