%newobject MEDCoupling::MEDCouplingGaussLocalization::localizePtsInRefCooForEachCell;
%newobject MEDCoupling::MEDCouplingGaussLocalization::buildRefCell;
%newobject MEDCoupling::MEDCouplingSkyLineArray::BuildFromPolyhedronConn;
+%newobject MEDCoupling::MEDCouplingSkyLineArray::getSuperIndexArray;
+%newobject MEDCoupling::MEDCouplingSkyLineArray::getIndexArray;
+%newobject MEDCoupling::MEDCouplingSkyLineArray::getValuesArray;
%feature("unref") MEDCouplingPointSet "$this->decrRef();"
%feature("unref") MEDCouplingMesh "$this->decrRef();"
int getNumberOf() const;
int getLength() const;
- DataArrayInt* getSuperIndexArray() const;
- DataArrayInt* getIndexArray() const;
- DataArrayInt* getValuesArray() const;
-
void deletePack(const int i, const int j) throw(INTERP_KERNEL::Exception);
%extend
{
return self->simpleRepr();
}
+
+ DataArrayInt *getSuperIndexArray() const
+ {
+ DataArrayInt *ret(self->getSuperIndexArray());
+ if(ret)
+ ret->incrRef();
+ return ret;
+ }
+
+ DataArrayInt *getIndexArray() const
+ {
+ DataArrayInt *ret(self->getIndexArray());
+ if(ret)
+ ret->incrRef();
+ return ret;
+ }
+
+ DataArrayInt *getValuesArray() const
+ {
+ DataArrayInt *ret(self->getValuesArray());
+ if(ret)
+ ret->incrRef();
+ return ret;
+ }
PyObject *getSimplePackSafe(int absolutePackId) const throw(INTERP_KERNEL::Exception)
{
%newobject MEDPARTITIONER::MEDPartitioner::New;
%newobject MEDPARTITIONER::MEDPartitioner::Graph;
+%newobject MEDPARTITIONER::MEDPartitioner::Graph::getGraph;
+%newobject MEDPARTITIONER::MEDPartitioner::Graph::getPartition;
%newobject MEDPARTITIONER::MEDPartitioner::getMEDFileData;
%feature("unref") MEDCoupling::MEDFileData "$this->decrRef();"
typedef enum {METIS,SCOTCH} splitter_type;
public:
virtual void partGraph(int ndomain, const std::string& options_string="", ParaDomainSelector *sel=0) throw(INTERP_KERNEL::Exception);
- const MEDCoupling::MEDCouplingSkyLineArray *getGraph() const;
- const MEDCoupling::MEDCouplingSkyLineArray *getPartition() const;
+ MEDCoupling::MEDCouplingSkyLineArray *getGraph() const
+ {
+ const MEDCoupling::MEDCouplingSkyLineArray *ret(self->getGraph());
+ if(ret)
+ ret->incrRef();
+ return const_cast<MEDCoupling::MEDCouplingSkyLineArray *>(ret);
+ }
+ const MEDCoupling::MEDCouplingSkyLineArray *getPartition() const
+ {
+ const MEDCoupling::MEDCouplingSkyLineArray *ret(self->getPartition());
+ if(ret)
+ ret->incrRef();
+ return const_cast<MEDCoupling::MEDCouplingSkyLineArray *>(ret);
+ }
int nbVertices() const;
};