Gaudi Framework, version v23r0 |
Home | Generated: Mon Jan 30 2012 |
Base class used to extend a class implementing other interfaces. More...
#include <extends.h>
Public Types | |
typedef extends3 | base_class |
Typedef to this class. | |
typedef extend_interfaces3< I1, I2, I3 > | extend_interfaces_base |
Typedef to the base of this class. | |
typedef extend_interfaces_base::ext_iids | interfaces |
MPL set of all the implemented interfaces. | |
Public Member Functions | |
template<typename A1 , typename A2 , typename A3 > | |
extends3 (A1 a1, A2 a2, A3 a3) | |
Templated constructor with 3 arguments. | |
template<typename A1 , typename A2 > | |
extends3 (A1 a1, A2 a2) | |
Templated constructor with 2 arguments. | |
template<typename A1 > | |
extends3 (A1 a1) | |
Templated constructor with 1 argument. | |
extends3 () | |
Default constructor. | |
virtual void * | i_cast (const InterfaceID &tid) const |
Implementation of IInterface::i_cast. | |
virtual StatusCode | queryInterface (const InterfaceID &ti, void **pp) |
Implementation of IInterface::queryInterface. | |
virtual std::vector< std::string > | getInterfaceNames () const |
Implementation of IInterface::getInterfaceNames. | |
virtual | ~extends3 () |
Virtual destructor. |
Base class used to extend a class implementing other interfaces.
Version for three interfaces.
Definition at line 140 of file extends.h.
typedef extends3 extends3< BASE, I1, I2, I3 >::base_class |
typedef extend_interfaces3<I1,I2,I3> extends3< BASE, I1, I2, I3 >::extend_interfaces_base |
typedef extend_interfaces_base::ext_iids extends3< BASE, I1, I2, I3 >::interfaces |
virtual std::vector<std::string> extends3< BASE, I1, I2, I3 >::getInterfaceNames | ( | ) | const [inline, virtual] |
Implementation of IInterface::getInterfaceNames.
Definition at line 188 of file extends.h.
{ std::vector<std::string> v = BASE::getInterfaceNames(); // start from the base #ifndef __GCCXML__ AppendInterfaceName appender(v); mpl::for_each<interfaces>(appender); #endif return v; }
virtual void* extends3< BASE, I1, I2, I3 >::i_cast | ( | const InterfaceID & | tid ) | const [inline, virtual] |
Implementation of IInterface::i_cast.
Definition at line 160 of file extends.h.
{ void *ptr = 0; #ifndef __GCCXML__ interfaceMatch<base_class> matcher(this,tid,ptr); mpl::for_each<interfaces>(matcher); #endif if (!ptr) { ptr = BASE::i_cast(tid); } return ptr; }
virtual StatusCode extends3< BASE, I1, I2, I3 >::queryInterface | ( | const InterfaceID & | ti, |
void ** | pp | ||
) | [inline, virtual] |
Implementation of IInterface::queryInterface.
Definition at line 173 of file extends.h.
{ if (!pp) return StatusCode::FAILURE; *pp = 0; #ifndef __GCCXML__ interfaceMatch<base_class> matcher(this,ti,*pp); mpl::for_each<interfaces>(matcher); if (!*pp) { // cast failed, try the base class return BASE::queryInterface(ti,pp); } this->addRef(); #endif return StatusCode::SUCCESS; }