6 #ifndef __eigenpy_registration_hpp__ 7 #define __eigenpy_registration_hpp__ 25 const bp::type_info info = bp::type_id<T>();
26 const bp::converter::registration* reg = bp::converter::registry::query(info);
27 if (reg == NULL)
return false;
28 else if ((*reg).m_to_python == NULL)
return false;
45 if(eigenpy::check_registration<T>())
47 const bp::type_info info = bp::type_id<T>();
48 const bp::converter::registration* reg = bp::converter::registry::query(info);
49 bp::handle<> class_obj(reg->get_class_object());
50 bp::scope().attr(reg->get_class_object()->tp_name) = bp::object(class_obj);
58 #endif // ifndef __eigenpy_registration_hpp__ bool check_registration()
Check at runtime the registration of the type T inside the boost python registry. ...
bool register_symbolic_link_to_registered_type()
Symlink to the current scope the already registered class T.