|
Gaudi Framework, version v23r4 |
| Home | Generated: Mon Sep 17 2012 |
general class to embed the existing algorithm/base class into the python More...
#include <Algorithm.h>
Public Member Functions | |
| PyAlg (PyObject *self, const std::string &name) | |
| constructor from Python object and the name | |
| virtual StatusCode | initialize () |
| virtual StatusCode | start () |
| virtual StatusCode | beginRun () |
| virtual StatusCode | endRun () |
| virtual StatusCode | execute () |
| virtual StatusCode | stop () |
| virtual StatusCode | finalize () |
| virtual IAlgorithm * | ialgorithm () |
| virtual IProperty * | iproperty () |
| virtual StatusCode | initialize_ () |
| virtual StatusCode | finalize_ () |
Protected Member Functions | |
| virtual | ~PyAlg () |
| virtual destructor | |
| PyObject * | _obj () const |
| get the object | |
Private Member Functions | |
| PyAlg () | |
| the default constructor is disabled | |
| PyAlg (const PyAlg &) | |
| the copy constructor is disabled | |
| PyAlg & | operator= (const PyAlg &) |
| the assignment operator is disabled | |
Private Attributes | |
| PyObject * | m_self |
| "shadow" python class | |
general class to embed the existing algorithm/base class into the python
Definition at line 65 of file Algorithm.h.
| GaudiPython::PyAlg< ALGORITHM >::PyAlg | ( | PyObject * | self, |
| const std::string & | name | ||
| ) | [inline] |
constructor from Python object and the name
| self | python object |
| name | name of algorithm instance |
Definition at line 75 of file Algorithm.h.
: ALGORITHM ( name , Gaudi::svcLocator() ) , m_self ( self ) { // the printout of actual type for embedded algorithm has no sense this -> setProperty ( "TypePrint" , "false" ) ; this -> setProperty ( "StatPrint" , "true" ) ; // The owner of the Algorithm is Python (as creator) therefore // it should not be deleted by Gaudi (added an extra addRef()). this -> addRef() ; this -> addRef() ; }
| virtual GaudiPython::PyAlg< ALGORITHM >::~PyAlg | ( | ) | [inline, protected, virtual] |
| GaudiPython::PyAlg< ALGORITHM >::PyAlg | ( | ) | [private] |
the default constructor is disabled
| GaudiPython::PyAlg< ALGORITHM >::PyAlg | ( | const PyAlg< ALGORITHM > & | ) | [private] |
the copy constructor is disabled
| PyObject* GaudiPython::PyAlg< ALGORITHM >::_obj | ( | ) | const [inline, protected] |
| virtual StatusCode GaudiPython::PyAlg< ALGORITHM >::beginRun | ( | ) | [inline, virtual] |
Definition at line 102 of file Algorithm.h.
{ return GaudiPython::call_python_method ( m_self , "beginRun" ) ; }
| virtual StatusCode GaudiPython::PyAlg< ALGORITHM >::endRun | ( | ) | [inline, virtual] |
Definition at line 104 of file Algorithm.h.
{ return GaudiPython::call_python_method ( m_self , "endRun" ) ; }
| virtual StatusCode GaudiPython::PyAlg< ALGORITHM >::execute | ( | ) | [inline, virtual] |
Definition at line 106 of file Algorithm.h.
{ return GaudiPython::call_python_method ( m_self , "execute" ) ; }
| virtual StatusCode GaudiPython::PyAlg< ALGORITHM >::finalize | ( | ) | [inline, virtual] |
Definition at line 110 of file Algorithm.h.
{ return GaudiPython::call_python_method ( m_self , "finalize" ) ; }
| virtual StatusCode GaudiPython::PyAlg< ALGORITHM >::finalize_ | ( | ) | [inline, virtual] |
Definition at line 118 of file Algorithm.h.
{ return ALGORITHM::finalize () ; }
| virtual IAlgorithm* GaudiPython::PyAlg< ALGORITHM >::ialgorithm | ( | ) | [inline, virtual] |
Definition at line 113 of file Algorithm.h.
{ return this ; }
| virtual StatusCode GaudiPython::PyAlg< ALGORITHM >::initialize | ( | ) | [inline, virtual] |
Definition at line 98 of file Algorithm.h.
{ return GaudiPython::call_python_method ( m_self , "initialize" ) ; }
| virtual StatusCode GaudiPython::PyAlg< ALGORITHM >::initialize_ | ( | ) | [inline, virtual] |
Definition at line 117 of file Algorithm.h.
{ return ALGORITHM::initialize () ; }
| virtual IProperty* GaudiPython::PyAlg< ALGORITHM >::iproperty | ( | ) | [inline, virtual] |
Definition at line 114 of file Algorithm.h.
{ return this ; }
| PyAlg& GaudiPython::PyAlg< ALGORITHM >::operator= | ( | const PyAlg< ALGORITHM > & | ) | [private] |
the assignment operator is disabled
| virtual StatusCode GaudiPython::PyAlg< ALGORITHM >::start | ( | ) | [inline, virtual] |
Definition at line 100 of file Algorithm.h.
{ return GaudiPython::call_python_method ( m_self , "start" ) ; }
| virtual StatusCode GaudiPython::PyAlg< ALGORITHM >::stop | ( | ) | [inline, virtual] |
Definition at line 108 of file Algorithm.h.
{ return GaudiPython::call_python_method ( m_self , "stop" ) ; }
PyObject* GaudiPython::PyAlg< ALGORITHM >::m_self [private] |
"shadow" python class
Definition at line 132 of file Algorithm.h.