lsst.meas.base g67924a670a+6c888dcbf9
Loading...
Searching...
No Matches
Functions
lsst::meas::base::python Namespace Reference

Functions

template<class Algorithm , class PyAlg >
std::enable_if<!std::is_abstract< Algorithm >::value, void >::type declareAlgorithmConstructor (PyAlg &cls)
 Wrap the standard algorithm constructor.
 
template<class Algorithm , class PyAlg >
std::enable_if< std::is_abstract< Algorithm >::value, void >::type declareAlgorithmConstructor (PyAlg &cls)
 Dummy function for not wrapping the constructor of an abstract base class.
 
template<class Algorithm , class PyAlg >
void declareAlgorithm (PyAlg &clsAlgorithm)
 Wrap the implicit API used by meas_base's algorithms.
 
template<class Algorithm , class Control , class PyAlg , class PyCtrl >
void declareAlgorithm (PyAlg &clsAlgorithm, PyCtrl &clsControl)
 Wrap the implicit API used by meas_base's algorithm-control pairs (no transform).
 
template<class Algorithm , class Control , class Transform , class PyAlg , class PyCtrl , class PyXform >
void declareAlgorithm (PyAlg &clsAlgorithm, PyCtrl &clsControl, PyXform &clsTransform)
 Wrap the implicit API used by meas_base's algorithm-control-transform triads.
 

Function Documentation

◆ declareAlgorithm() [1/3]

template<class Algorithm , class PyAlg >
void lsst::meas::base::python::declareAlgorithm ( PyAlg &  clsAlgorithm)

Wrap the implicit API used by meas_base's algorithms.

This function only initializes constructors, fields, and methods common to all Algorithms.

Template Parameters
AlgorithmThe algorithm class.
PyAlgThe pybind11::class_ class corresponding to Algorithm.
Parameters
[in,out]clsAlgorithmThe pybind11 wrapper for Algorithm.

Definition at line 87 of file python.h.

◆ declareAlgorithm() [2/3]

template<class Algorithm , class Control , class PyAlg , class PyCtrl >
void lsst::meas::base::python::declareAlgorithm ( PyAlg &  clsAlgorithm,
PyCtrl &  clsControl 
)

Wrap the implicit API used by meas_base's algorithm-control pairs (no transform).

This function only initializes constructors, fields, and methods common to all Algorithms and Controls.

Template Parameters
AlgorithmThe algorithm class.
ControlThe control class. Must equal Algorithm::Control and Transform::Control.
PyAlgThe pybind11::class_ class corresponding to Algorithm.
PyCtrlThe pybind11::class_ class corresponding to Control.
Parameters
[in,out]clsAlgorithm,clsControlThe pybind11 wrappers for the respective C++ classes.

Definition at line 116 of file python.h.

◆ declareAlgorithm() [3/3]

template<class Algorithm , class Control , class Transform , class PyAlg , class PyCtrl , class PyXform >
void lsst::meas::base::python::declareAlgorithm ( PyAlg &  clsAlgorithm,
PyCtrl &  clsControl,
PyXform &  clsTransform 
)

Wrap the implicit API used by meas_base's algorithm-control-transform triads.

This function only initializes constructors, fields, and methods common to all Algorithms, Controls, and Transforms.

Template Parameters
AlgorithmThe algorithm class.
ControlThe control class. Must equal Algorithm::Control and Transform::Control.
TransformThe transform class.
PyAlgThe pybind11::class_ class corresponding to Algorithm.
PyCtrlThe pybind11::class_ class corresponding to Control.
PyXformThe pybind11::class_ class corresponding to Transform.
Parameters
[in,out]clsAlgorithm,clsControl,clsTransformThe pybind11 wrappers for the respective C++ classes.

Definition at line 148 of file python.h.

◆ declareAlgorithmConstructor() [1/2]

template<class Algorithm , class PyAlg >
std::enable_if<!std::is_abstract< Algorithm >::value, void >::type lsst::meas::base::python::declareAlgorithmConstructor ( PyAlg &  cls)

Wrap the standard algorithm constructor.

Template Parameters
AlgorithmThe algorithm class.
PyAlgThe pybind11::class_ class corresponding to Algorithm.
Parameters
[in,out]clsThe pybind11 wrapper for Algorithm.

Definition at line 55 of file python.h.

◆ declareAlgorithmConstructor() [2/2]

template<class Algorithm , class PyAlg >
std::enable_if< std::is_abstract< Algorithm >::value, void >::type lsst::meas::base::python::declareAlgorithmConstructor ( PyAlg &  cls)

Dummy function for not wrapping the constructor of an abstract base class.

Pybind11 cannot wrap such constructors, and there is no reason to call them from Python anyway.

Template Parameters
AlgorithmThe algorithm class.
PyAlgThe pybind11::class_ class corresponding to Algorithm.
Parameters
[in,out]clsThe pybind11 wrapper for Algorithm.

Definition at line 72 of file python.h.