Skip to content
Snippets Groups Projects
Commit f573902b authored by Marco Biasini's avatar Marco Biasini
Browse files

the mmcif classes are in fact copyable

fixes a problem with the python export
parent 42154cb1
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ void export_mmcif_io() ...@@ -47,7 +47,7 @@ void export_mmcif_io()
return_value_policy<copy_const_reference>())) return_value_policy<copy_const_reference>()))
; ;
class_<MMCifInfoCitation, boost::noncopyable>("MMCifInfoCitation", init<>()) class_<MMCifInfoCitation>("MMCifInfoCitation", init<>())
.def("SetID", &MMCifInfoCitation::SetID) .def("SetID", &MMCifInfoCitation::SetID)
.def("GetID", &MMCifInfoCitation::GetID) .def("GetID", &MMCifInfoCitation::GetID)
.def("SetCAS", &MMCifInfoCitation::SetCAS) .def("SetCAS", &MMCifInfoCitation::SetCAS)
...@@ -102,7 +102,7 @@ void export_mmcif_io() ...@@ -102,7 +102,7 @@ void export_mmcif_io()
.def(vector_indexing_suite<std::vector<MMCifInfoCitation> >()) .def(vector_indexing_suite<std::vector<MMCifInfoCitation> >())
; ;
class_<MMCifInfo, boost::noncopyable>("MMCifInfo", init<>()) class_<MMCifInfo>("MMCifInfo", init<>())
.def("AddCitation", &MMCifInfo::AddCitation) .def("AddCitation", &MMCifInfo::AddCitation)
.def("GetCitations", make_function(&MMCifInfo::GetCitations, .def("GetCitations", make_function(&MMCifInfo::GetCitations,
return_value_policy<copy_const_reference>())) return_value_policy<copy_const_reference>()))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment