Cadabra
Computer algebra system for field theory problems
|
A class which enables access to a Python-side defined Server object with ProgressMonitor interface.
It forwards calls on the group/progress members via Boost.Python to the Python defined Server object, thereby allowing the ProgressMonitor functionality to be exposed to Cadabra algorithms through a a single C++ interface, independent of whether it is implemented in the C++ Server object or in the Python one.
#include <ServerWrapper.hh>
Public Member Functions | |
ServerWrapper () | |
virtual void | group (std::string name="") override |
virtual void | progress (int n, int total) override |
Public Member Functions inherited from ProgressMonitor | |
ProgressMonitor () | |
virtual | ~ProgressMonitor () |
void | print () const |
std::vector< Total > | totals () const |
Private Attributes | |
boost::python::object | server |
boost::python::object | python_group |
boost::python::object | python_progress |
ServerWrapper::ServerWrapper | ( | ) |
|
overridevirtual |
Reimplemented from ProgressMonitor.
|
overridevirtual |
Reimplemented from ProgressMonitor.
|
private |
|
private |
|
private |