The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
GaudiPython::Interface< TYPE > Struct Template Reference

Minor mofidication of original Pere's structure GaudiPython::Interface This helper class is nesessary to perform C++ castings from python. More...

#include <GaudiPython/Interface.h>

Public Member Functions

TYPE * operator() (const IInterface *in) const
 the only one important method
 

Static Public Member Functions

static TYPE * cast (const IInterface *in)
 the only one important method (static)
 
static TYPE * cast (const InterfaceID &iid, const IInterface *in)
 the only one important method (static)
 

Detailed Description

template<class TYPE>
struct GaudiPython::Interface< TYPE >

Minor mofidication of original Pere's structure GaudiPython::Interface This helper class is nesessary to perform C++ castings from python.

Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@l.nosp@m.app..nosp@m.in2p3.nosp@m..fr
Date
2005-08-03

Definition at line 42 of file Interface.h.

Member Function Documentation

◆ cast() [1/2]

template<class TYPE>
static TYPE * GaudiPython::Interface< TYPE >::cast ( const IInterface< TYPE > * in)
inlinestatic

the only one important method (static)

Parameters
ininput interface
Returns
resutl of "cast"

Definition at line 55 of file Interface.h.

55{ return SmartIF<TYPE>( const_cast<IInterface*>( in ) ); }
Minor mofidication of original Pere's structure GaudiPython::Interface This helper class is nesessary...
Definition Interface.h:42

◆ cast() [2/2]

template<class TYPE>
static TYPE * GaudiPython::Interface< TYPE >::cast ( const InterfaceID & iid,
const IInterface< TYPE > * in )
inlinestatic

the only one important method (static)

Parameters
iidunique identifier of 'target' interface
ininput interface
Returns
resutl of "cast"

Definition at line 62 of file Interface.h.

62 {
63 return SmartIF<TYPE>( iid, const_cast<IInterface*>( in ) );
64 }

◆ operator()()

template<class TYPE>
TYPE * GaudiPython::Interface< TYPE >::operator() ( const IInterface< TYPE > * in) const
inline

the only one important method

Parameters
ininput interface
Returns
resutl of "cast"

Definition at line 47 of file Interface.h.

47 {
48 return SmartIF<TYPE>( TYPE::interfaceID(), const_cast<IInterface*>( in ) );
49 }

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