All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
extends3< BASE, I1, I2, I3 > Struct Template Reference

Base class used to extend a class implementing other interfaces. More...

#include <GaudiKernel/extends.h>

Inheritance diagram for extends3< BASE, I1, I2, I3 >:
Collaboration diagram for extends3< BASE, I1, I2, I3 >:

Public Types

typedef extends3 base_class
 Typedef to this class. More...
 
typedef extend_interfaces3< I1,
I2, I3 > 
extend_interfaces_base
 Typedef to the base of this class. More...
 
typedef
extend_interfaces_base::ext_iids 
interfaces
 MPL set of all the implemented interfaces. More...
 
- Public Types inherited from extend_interfaces3< I1, I2, I3 >
typedef mpl::fold< typename
I1::iid::iids::type, typename
mpl::fold< typename
I2::iid::iids::type, typename
I3::iid::iids::type,
mpl::insert< mpl::_1, mpl::_2 >
>::type, mpl::insert< mpl::_1,
mpl::_2 > >::type 
ext_iids
 MPL set of interfaces extended by this one. More...
 

Public Member Functions

template<typename A1 , typename A2 , typename A3 >
 extends3 (A1 a1, A2 a2, A3 a3)
 Templated constructor with 3 arguments. More...
 
template<typename A1 , typename A2 >
 extends3 (A1 a1, A2 a2)
 Templated constructor with 2 arguments. More...
 
template<typename A1 >
 extends3 (A1 a1)
 Templated constructor with 1 argument. More...
 
 extends3 ()
 Default constructor. More...
 
virtual void * i_cast (const InterfaceID &tid) const
 Implementation of IInterface::i_cast. More...
 
virtual StatusCode queryInterface (const InterfaceID &ti, void **pp)
 Implementation of IInterface::queryInterface. More...
 
virtual std::vector< std::string > getInterfaceNames () const
 Implementation of IInterface::getInterfaceNames. More...
 
virtual ~extends3 ()
 Virtual destructor. More...
 
- Public Member Functions inherited from extend_interfaces3< I1, I2, I3 >
virtual ~extend_interfaces3 ()
 Virtual destructor. More...
 

Detailed Description

template<typename BASE, typename I1, typename I2, typename I3>
struct extends3< BASE, I1, I2, I3 >

Base class used to extend a class implementing other interfaces.

Version for three interfaces.

Author
Marco Clemencic

Definition at line 140 of file extends.h.

Member Typedef Documentation

template<typename BASE, typename I1, typename I2, typename I3>
typedef extends3 extends3< BASE, I1, I2, I3 >::base_class

Typedef to this class.

Definition at line 142 of file extends.h.

template<typename BASE, typename I1, typename I2, typename I3>
typedef extend_interfaces3<I1,I2,I3> extends3< BASE, I1, I2, I3 >::extend_interfaces_base

Typedef to the base of this class.

Definition at line 144 of file extends.h.

template<typename BASE, typename I1, typename I2, typename I3>
typedef extend_interfaces_base::ext_iids extends3< BASE, I1, I2, I3 >::interfaces

MPL set of all the implemented interfaces.

Definition at line 147 of file extends.h.

Constructor & Destructor Documentation

template<typename BASE, typename I1, typename I2, typename I3>
template<typename A1 , typename A2 , typename A3 >
extends3< BASE, I1, I2, I3 >::extends3 ( A1  a1,
A2  a2,
A3  a3 
)
inline

Templated constructor with 3 arguments.

Definition at line 151 of file extends.h.

151 : BASE(a1,a2,a3){}
template<typename BASE, typename I1, typename I2, typename I3>
template<typename A1 , typename A2 >
extends3< BASE, I1, I2, I3 >::extends3 ( A1  a1,
A2  a2 
)
inline

Templated constructor with 2 arguments.

Definition at line 153 of file extends.h.

153 : BASE(a1, a2){}
template<typename BASE, typename I1, typename I2, typename I3>
template<typename A1 >
extends3< BASE, I1, I2, I3 >::extends3 ( A1  a1)
inline

Templated constructor with 1 argument.

Definition at line 155 of file extends.h.

155 : BASE(a1){}
template<typename BASE, typename I1, typename I2, typename I3>
extends3< BASE, I1, I2, I3 >::extends3 ( )
inline

Default constructor.

Definition at line 157 of file extends.h.

157 : BASE(){}
template<typename BASE, typename I1, typename I2, typename I3>
virtual extends3< BASE, I1, I2, I3 >::~extends3 ( )
inlinevirtual

Virtual destructor.

Definition at line 198 of file extends.h.

198 {}

Member Function Documentation

template<typename BASE, typename I1, typename I2, typename I3>
virtual std::vector<std::string> extends3< BASE, I1, I2, I3 >::getInterfaceNames ( ) const
inlinevirtual

Implementation of IInterface::getInterfaceNames.

Definition at line 188 of file extends.h.

188  {
189  std::vector<std::string> v = BASE::getInterfaceNames(); // start from the base
190 #ifndef __GCCXML__
191  AppendInterfaceName appender(v);
192  mpl::for_each<interfaces>(appender);
193 #endif
194  return v;
195  }
Helper class for the cast used in the MPL for_each algorithm in the implementation of query_interface...
Definition: implements.h:33
template<typename BASE, typename I1, typename I2, typename I3>
virtual void* extends3< BASE, I1, I2, I3 >::i_cast ( const InterfaceID tid) const
inlinevirtual

Implementation of IInterface::i_cast.

Definition at line 160 of file extends.h.

160  {
161  void *ptr = 0;
162 #ifndef __GCCXML__
163  interfaceMatch<base_class> matcher(this,tid,ptr);
164  mpl::for_each<interfaces>(matcher);
165 #endif
166  if (!ptr) {
167  ptr = BASE::i_cast(tid);
168  }
169  return ptr;
170  }
Helper class for the cast used in the MPL for_each algorithm in the implementation of queryInterface...
Definition: implements.h:11
template<typename BASE, typename I1, typename I2, typename I3>
virtual StatusCode extends3< BASE, I1, I2, I3 >::queryInterface ( const InterfaceID ti,
void **  pp 
)
inlinevirtual

Implementation of IInterface::queryInterface.

Definition at line 173 of file extends.h.

173  {
174  if (!pp) return StatusCode::FAILURE;
175  *pp = 0;
176 #ifndef __GCCXML__
177  interfaceMatch<base_class> matcher(this,ti,*pp);
178  mpl::for_each<interfaces>(matcher);
179  if (!*pp) { // cast failed, try the base class
180  return BASE::queryInterface(ti,pp);
181  }
182  this->addRef();
183 #endif
184  return StatusCode::SUCCESS;
185  }
Helper class for the cast used in the MPL for_each algorithm in the implementation of queryInterface...
Definition: implements.h:11

The documentation for this struct was generated from the following file: