|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
#include <PyOpalObject.h>
Inherits boost::python::default_call_policies.
Public Member Functions | |
| PyOpalObjectGetProperty (AttributeType type, std::string opalName) | |
| ~PyOpalObjectGetProperty () | |
| template<class ArgumentPackage> | |
| PyObject * | postcall (ArgumentPackage const &, PyObject *result) |
Static Public Member Functions | |
| static void | setObject (const PyOpalObject< C > *object) |
Private Attributes | |
| AttributeType | type_m |
| std::string | opalName_m |
Static Private Attributes | |
| static const PyOpalObject< C > * | object_m |
Helper class to handle getting Attributes from python
Definition at line 409 of file PyOpalObject.h.
|
inline |
Constructor
type: type of the python object
opalName: name of the Opal Attribute
Definition at line 415 of file PyOpalObject.h.
References opalName_m, and type_m.
|
inline |
destructor
Definition at line 417 of file PyOpalObject.h.
| PyObject * PyOpal::PyOpalObjectNS::PyOpalObjectGetProperty< C >::postcall | ( | ArgumentPackage const & | , |
| PyObject * | result ) |
postcall action
ArgumentPackage: this is really a PyObject* holding the argument calls
result: filled by the postcall operation. Sets the element_m to nullptr. Note that the whole element_m stuff is a bit hacky. Probably possible to extract the element from ArgumentPackage, I didn't manage to do it yet.
Definition at line 933 of file PyOpalObject.h.
References object_m, opalName_m, and type_m.
|
inlinestatic |
Set pointer to the element; should be called before each postcall
Definition at line 430 of file PyOpalObject.h.
References object_m.
Referenced by PyOpal::PyOpalObjectNS::PyOpalObject< C >::dummyGet().
|
staticprivate |
Definition at line 435 of file PyOpalObject.h.
Referenced by postcall(), and setObject().
|
private |
Definition at line 434 of file PyOpalObject.h.
Referenced by postcall(), and PyOpalObjectGetProperty().
|
private |
Definition at line 433 of file PyOpalObject.h.
Referenced by postcall(), and PyOpalObjectGetProperty().