OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
PyOpalElement.cpp
Go to the documentation of this file.
4
6
7// using namespace boost::python;
8namespace PyOpal {
9 template <>
10 std::vector<PyOpalObjectNS::AttributeDef>
12
13 template <>
15 "OpalElement is a base class for Opal element objects. In particular it is\n"
16 "used by Line class to handle wrapping of objects";
17
18 template <>
20 }
21
22 namespace PyOpalElement {
23
24 std::string track_run_docstring = std::string();
25
26 const char* module_docstring = "opal element base class";
27
28 BOOST_PYTHON_MODULE(opal_element) {
32 element.make_element_class("OpalElement");
33 }
34
35 } // namespace PyOpalElement
36} // namespace PyOpal
void registerExceptions()
Register exception translations with boost.
void Initialise()
Globals namespace provides routines to initialise global objects:
Definition: Globals.cpp:50
BOOST_PYTHON_MODULE(opal_element)
std::string track_run_docstring
const char * module_docstring
PyOpalObject<C> is the basic wrapper class for Opal Objects.
Definition: PyOpalObject.h:138
PyOpalObject()
Default constructor.
Definition: PyOpalObject.h:530
boost::python::class_< PyC > make_element_class(const char *className)
This is the basic method to make a class for elements.
Definition: PyOpalObject.h:752