data_points_filter_registrar.cpp
Go to the documentation of this file.
2 
3 namespace python
4 {
5  namespace pointmatchersupport
6  {
7  namespace registrars
8  {
9  void pybindDataPointsFilterRegistrar(py::module& p_module)
10  {
11  py::class_<DataPointsFilterRegistrar, std::shared_ptr<DataPointsFilterRegistrar>>(p_module, "DataPointsFilterRegistrar")
12  .def("getDescriptor", &DataPointsFilterRegistrar::getDescriptor, py::arg("name"), "Return a descriptor following a name, throw an exception if name is invalid")
13  .def("create", &DataPointsFilterRegistrar::create, py::arg("name"), py::arg("params") = Parameters(), "Create an instance")
14  .def("getDescription", &DataPointsFilterRegistrar::getDescription, py::arg("name"), "Get the description of a class")
15  .def("getAvailableParameters", &DataPointsFilterRegistrar::getAvailableParameters, py::arg("name"), "Get all available parameters of a class")
16  .def("dump", [](const DataPointsFilterRegistrar& self)
17  {
18  std::ostringstream oss;
19  self.dump(oss);
20  py::print(oss.str());
21  }, "Print the list of registered classes to stream");
22  }
23  }
24  }
25 }
PointMatcherSupport::Registrar::getDescription
const std::string getDescription(const std::string &name) const
Get the description of a class.
Definition: Registrar.h:178
Parameters
PM::Parameters Parameters
Definition: filterProfiler.cpp:20
PointMatcherSupport::Registrar::getDescriptor
std::shared_ptr< ClassDescriptor > getDescriptor(const std::string &name) const
Return a descriptor following a name, throw an exception if name is invalid.
Definition: Registrar.h:145
python::pointmatchersupport::registrars::pybindDataPointsFilterRegistrar
void pybindDataPointsFilterRegistrar(py::module &p_module)
Definition: data_points_filter_registrar.cpp:9
python
Definition: add_descriptor.cpp:5
PointMatcherSupport::Registrar::create
std::shared_ptr< Interface > create(const std::string &name, const Parametrizable::Parameters &params=Parametrizable::Parameters()) const
Create an instance.
Definition: Registrar.h:161
data_points_filter_registrar.h
PointMatcherSupport::Registrar::getAvailableParameters
const Parametrizable::ParametersDoc getAvailableParameters(const std::string &name) const
Get all available parameters of a class.
Definition: Registrar.h:184
PointMatcherSupport::Registrar
A factor for subclasses of Interface.
Definition: Registrar.h:59


libpointmatcher
Author(s):
autogenerated on Mon Jul 1 2024 02:22:42