Interface cast: Given an Intercube, retrive the an interface object which is stored there. More...
#include <memcore/Interface.hpp>
Interface cast: Given an Intercube, retrive the an interface object which is stored there.
Example:
struct myInterface : Interface<int> { int i; }; int InterfaceExample() { Intercube Alpha; Alpha.addInterface( new myInterface() ); RefPtr<myInterface> m = Alpha.getInterface( typeid(int) ); RefPtr<myInterface> n = interface_cast<myInterface>( Alpha ); return 0; }
ComputeGridStreamLines.cpp, and ComputeMultiStreamLines.cpp.
typedef InterfaceType::InterfaceDomain_t 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.