|
Gaudi Framework, version v23r2 |
| Home | Generated: Thu Jun 28 2012 |
Base class used to extend a class implementing other interfaces. More...
#include <extends.h>


Public Types | |
| typedef extends1 | base_class |
| Typedef to this class. | |
| typedef extend_interfaces1< I1 > | 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 > | |
| extends1 (A1 a1, A2 a2, A3 a3) | |
| Templated constructor with 3 arguments. | |
| template<typename A1 , typename A2 > | |
| extends1 (A1 a1, A2 a2) | |
| Templated constructor with 2 arguments. | |
| template<typename A1 > | |
| extends1 (A1 a1) | |
| Templated constructor with 1 argument. | |
| extends1 () | |
| 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 | ~extends1 () |
| Virtual destructor. | |
Base class used to extend a class implementing other interfaces.
Version for one interface.
Definition at line 10 of file extends.h.
| typedef extends1 extends1< BASE, I1 >::base_class |
| typedef extend_interfaces1<I1> extends1< BASE, I1 >::extend_interfaces_base |
| typedef extend_interfaces_base::ext_iids extends1< BASE, I1 >::interfaces |
| virtual std::vector<std::string> extends1< BASE, I1 >::getInterfaceNames | ( | ) | const [inline, virtual] |
Implementation of IInterface::getInterfaceNames.
Definition at line 58 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* extends1< BASE, I1 >::i_cast | ( | const InterfaceID & | tid ) | const [inline, virtual] |
Implementation of IInterface::i_cast.
Definition at line 30 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 extends1< BASE, I1 >::queryInterface | ( | const InterfaceID & | ti, |
| void ** | pp | ||
| ) | [inline, virtual] |
Implementation of IInterface::queryInterface.
Definition at line 43 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;
}