6 #ifndef __eigenpy_registration_hpp__
7 #define __eigenpy_registration_hpp__
25 const bp::converter::registration* reg = bp::converter::registry::query(info);
28 else if ((*reg).m_to_python == NULL)
43 if (eigenpy::check_registration<T>()) {
45 const bp::converter::registration* reg =
46 bp::converter::registry::query(info);
47 bp::handle<> class_obj(reg->get_class_object());
48 bp::incref(class_obj.get());
49 bp::scope().attr(reg->get_class_object()->tp_name) = bp::object(class_obj);
58 template <
typename T,
typename Visitor>
60 if (eigenpy::check_registration<T>()) {
62 const bp::converter::registration* reg =
63 bp::converter::registry::query(info);
64 bp::handle<> class_obj(reg->get_class_object());
65 bp::incref(class_obj.get());
66 bp::object object(class_obj);
67 bp::scope().attr(reg->get_class_object()->tp_name) = object;
77 #endif // ifndef __eigenpy_registration_hpp__