|
The Vish Visualization Shell 0.3
Vish
|
Interface cast: Given an Intercube, retrive the an interface object which is stored there. More...
#include <elementary/memcore/Interface.hpp>
Public Types | |
| typedef InterfaceType::InterfaceDomain_t | InterfaceDomain_t |
| The domain type, i.e. | |
Public Member Functions | |
| interface_cast (const Intercube &IC) | |
| Construct a temporary interface_cast<> object. | |
| template<class IntercubeType > | |
| interface_cast (const WeakPtr< IntercubeType > &IT) | |
| Construct an interface_cast<> object from a pointer to some arbitrary class which is convertible to an Intercube. | |
| operator RefPtr< InterfaceType > () const | |
| Conversion operator to reference pointer of interface implementation. | |
| InterfaceType & | operator() () const |
| Provide an interface object for the requested type, returning an existing one or creating a new one. | |
| template<class ... InitType> | |
| InterfaceType & | operator() (InitType... args) const |
| Provide an interface object for the requested type, returning an existing one or creating a new one with the given parameter as constructor argument. | |
Static Public Member Functions | |
| static RefPtr< InterfaceType > | findInterface (const Intercube &IC) |
| Static member function alternative. | |
Interface cast: Given an Intercube, retrive the an interface object which is stored there.
Example:
| typedef InterfaceType::InterfaceDomain_t MemCore::interface_cast< InterfaceType >::InterfaceDomain_t |
The domain type, i.e.
a possible base class of the given interface type, which is used to look up a certain interface. The returned interface may be an implementation of the InterfaceDomain_t.
|
inline |
Provide an interface object for the requested type, returning an existing one or creating a new one.
References MemCore::Intercube::findInterface().
|
inline |
Provide an interface object for the requested type, returning an existing one or creating a new one with the given parameter as constructor argument.
References MemCore::Intercube::findInterface().