10#include <boost/python/class.hpp>
11#include <boost/python/copy_const_reference.hpp>
12#include <boost/python/register_ptr_to_python.hpp>
20 register_ptr_to_python<std::shared_ptr<BoxController>>();
22 class_<BoxController, boost::noncopyable>(
"BoxController", no_init)
25 "Return the splitting threshold, in # of events")
27 "Return into how many to split along a dimension")
29 "Return the max recursion depth allowed for grid box splitting.")
31 "Return the total number of MD Boxes, irrespective of depth")
33 "Return the total number of MDGridBox'es, irrespective of depth")
35 "Return the average recursion depth of gridding.")
37 "Return True if the MDEventWorkspace is backed by a file ")
39 "Return the full path to the file open as the file-based back or "
40 "empty string if no file back-end is initiated")
#define GET_POINTER_SPECIALIZATION(TYPE)
void export_BoxController()
This class is used by MDBox and MDGridBox in order to intelligently determine optimal behavior.
size_t getSplitInto(size_t dim) const
Return into how many to split along a dimension.
double getAverageDepth() const
Return the average recursion depth of gridding.
bool isFileBacked() const
Returns if current box controller is file backed.
size_t getNDims() const
Get # of dimensions.
std::string getFilename() const
the function left for compartibility with the previous bc python interface.
size_t getTotalNumMDBoxes() const
Return the total number of MD Boxes, irrespective of depth.
size_t getTotalNumMDGridBoxes() const
Return the total number of MDGridBox'es, irrespective of depth.
size_t getSplitThreshold() const
Return the splitting threshold, in # of events.
bool useWriteBuffer() const
the compartibility function – the write buffer is always used for file based workspaces
size_t getMaxDepth() const