Commit c0de4662 authored by Brian Panneton's avatar Brian Panneton Committed by Kenneth Leiter

FIX: Added more SWIG overriding equals for Python

parent 31a8e054
......@@ -96,6 +96,31 @@ swig -v -c++ -python -o XdmfPython.cpp Xdmf.i
return(self->IsEqual(attributeCenter));
}
};
%extend XdmfAttributeType {
bool __eq__(boost::shared_ptr<XdmfAttributeType> attributeType) {
return(self->IsEqual(attributeType));
}
};
%extend XdmfGeometryType {
bool __eq__(boost::shared_ptr<XdmfGeometryType> geometryType) {
return(self->IsEqual(geometryType));
}
};
%extend XdmfGridCollectionType {
bool __eq__(boost::shared_ptr<XdmfGridCollectionType> collectionType) {
return(self->IsEqual(collectionType));
}
};
%extend XdmfSetType {
bool __eq__(boost::shared_ptr<XdmfSetType> setType) {
return(self->IsEqual(setType));
}
};
%extend XdmfTopologyType {
bool __eq__(boost::shared_ptr<XdmfTopologyType> topologyType) {
return(self->IsEqual(topologyType));
}
};
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment