|
Gaudi Framework, version v23r2 |
| Home | Generated: Thu Jun 28 2012 |
Helper class for the cast used in the MPL for_each algorithm in the implementation of queryInterface. More...
#include <implements.h>

Public Member Functions | |
| interfaceMatch (const T *_instance, const InterfaceID &_tid, void *&_ptr) | |
| template<typename IID > | |
| void | operator() (IID) |
Public Attributes | |
| const InterfaceID & | target |
| InterfaceID for the requested interface. | |
| void *& | ptr |
| Pointer to be filled. | |
| const T * | instance |
| Value of this. | |
Helper class for the cast used in the MPL for_each algorithm in the implementation of queryInterface.
Definition at line 11 of file implements.h.
| interfaceMatch< T >::interfaceMatch | ( | const T * | _instance, |
| const InterfaceID & | _tid, | ||
| void *& | _ptr | ||
| ) | [inline] |
Definition at line 18 of file implements.h.
Definition at line 24 of file implements.h.
{
if ((!ptr) && target.versionMatch(IID::interfaceID())) {
ptr = const_cast<void*>(reinterpret_cast<const void*>(static_cast<const typename IID::iface_type*>(instance)));
}
}
| const T* interfaceMatch< T >::instance |
Value of this.
Definition at line 17 of file implements.h.
| void*& interfaceMatch< T >::ptr |
Pointer to be filled.
Definition at line 15 of file implements.h.
| const InterfaceID& interfaceMatch< T >::target |
InterfaceID for the requested interface.
Definition at line 13 of file implements.h.