OPAL (Object Oriented Parallel Accelerator Library)
2022.1
OPAL
src
src
_PyOpal
PyOpalElement.cpp
Go to the documentation of this file.
1
#include "
PyOpal/ExceptionTranslation.h
"
2
#include "
PyOpal/PyOpalObject.h
"
3
4
#include "
Elements/OpalElement.h
"
5
6
//using namespace boost::python;
7
namespace
PyOpal
{
8
namespace
PyOpalElement {
9
10
std::string
track_run_docstring
= std::string();
11
12
13
const
char
*
module_docstring
=
"opal element base class"
;
14
15
template
<>
16
std::vector<PyOpalObjectNS::AttributeDef>
PyOpalObjectNS::PyOpalObject<OpalElement>::attributes
= {
17
};
18
19
template
<>
20
std::string
PyOpalObjectNS::PyOpalObject<OpalElement>::classDocstring
=
""
;
21
22
23
template
<>
24
PyOpalObjectNS::PyOpalObject<OpalElement>::PyOpalObject
() : object_m(NULL) {}
25
26
BOOST_PYTHON_MODULE
(opal_element) {
27
ExceptionTranslation::registerExceptions
();
28
PyOpalObjectNS::PyOpalObject<OpalElement>
element;
29
element.
make_class
(
"OpalElement"
);
30
}
31
32
}
33
}
OpalElement.h
BOOST_PYTHON_MODULE
BOOST_PYTHON_MODULE(boost_field)
Definition:
PyBoostField.cpp:51
PyOpal
Definition:
ExceptionTranslation.cpp:5
PyOpal::ExceptionTranslation::registerExceptions
void registerExceptions()
Definition:
ExceptionTranslation.cpp:7
PyOpal::PyOpalElement::module_docstring
const char * module_docstring
Definition:
PyOpalElement.cpp:13
PyOpal::PyOpalElement::track_run_docstring
std::string track_run_docstring
Definition:
PyOpalElement.cpp:10
PyOpal::PyOpalObjectNS::PyOpalObject
Definition:
PyOpalObject.h:119
PyOpal::PyOpalObjectNS::PyOpalObject::PyOpalObject
PyOpalObject()
Definition:
PyOpalObject.h:333
PyOpal::PyOpalObjectNS::PyOpalObject::make_class
boost::python::class_< PyC > make_class(const char *className)
Definition:
PyOpalObject.h:439
ExceptionTranslation.h
PyOpalObject.h
Generated on Thu Oct 20 2022 17:40:11 for OPAL (Object Oriented Parallel Accelerator Library) by
1.9.3