template class ParaDataArrayTemplate<Int32>;
template class ParaDataArrayTemplate<Int64>;
+
+ParaDataArrayInt32 *ParaDataArrayInt32::New(DataArrayInt32 *seqDa)
+{
+ return new ParaDataArrayInt32(seqDa);
+}
+
+ParaDataArrayInt64 *ParaDataArrayInt64::New(DataArrayInt64 *seqDa)
+{
+ return new ParaDataArrayInt64(seqDa);
+}
class ParaDataArrayInt32 : public ParaDataArrayDiscrete<Int32>
{
+ public:
+ static ParaDataArrayInt32 *New(DataArrayInt32 *seqDa);
private:
ParaDataArrayInt32(DataArrayInt32 *seqDa):ParaDataArrayDiscrete<Int32>(seqDa) { }
std::string getClassName() const override { return "ParaDataArrayInt32"; }
class ParaDataArrayInt64 : public ParaDataArrayDiscrete<Int64>
{
+ public:
+ static ParaDataArrayInt64 *New(DataArrayInt64 *seqDa);
private:
ParaDataArrayInt64(DataArrayInt64 *seqDa):ParaDataArrayDiscrete<Int64>(seqDa) { }
std::string getClassName() const override { return "ParaDataArrayInt64"; }
def MEDCouplingDenseMatrixIsub(self,*args):
import _ParaMEDMEM
return _ParaMEDMEM.DenseMatrix____isub___(self, self, *args)
+
+if MEDCouplingUse64BitIDs():
+ ParaDataArrayInt = ParaDataArrayInt64
+else:
+ ParaDataArrayInt = ParaDataArrayInt32
+pass
+
%}
%include "MEDCouplingFinalize.i"
#include "ComponentTopology.hxx"
#include "ParaUMesh.hxx"
#include "ParaSkyLineArray.hxx"
+#include "ParaDataArray.hxx"
using namespace INTERP_KERNEL;
using namespace MEDCoupling;
%newobject MEDCoupling::ParaUMesh::redistributeCells;
%newobject MEDCoupling::ParaUMesh::redistributeCellField;
%newobject MEDCoupling::ParaUMesh::redistributeNodeField;
+%newobject MEDCoupling::ParaDataArrayInt32::New;
+%newobject MEDCoupling::ParaDataArrayInt32::buildComplement;
+%newobject MEDCoupling::ParaDataArrayInt64::New;
+%newobject MEDCoupling::ParaDataArrayInt64::buildComplement;
%newobject MEDCoupling::ParaSkyLineArray::New;
%newobject MEDCoupling::ParaSkyLineArray::equiRedistribute;
%newobject MEDCoupling::ParaSkyLineArray::getSkyLineArray;
%feature("unref") ParaSkyLineArray "$this->decrRef();"
%feature("unref") ParaUMesh "$this->decrRef();"
+%feature("unref") ParaDataArrayInt32 "$this->decrRef();"
+%feature("unref") ParaDataArrayInt64 "$this->decrRef();"
%nodefaultctor;
}
};
+ class ParaDataArray : public RefCountObject
+ {
+ };
+
+ class ParaDataArrayInt32 : public ParaDataArray
+ {
+ public:
+ static ParaDataArrayInt32 *New(DataArrayInt32 *seqDa);
+ DataArrayInt32 *buildComplement(int nbOfElems) const;
+ %extend
+ {
+ ParaDataArrayInt32(DataArrayInt32 *seqDa)
+ {
+ return ParaDataArrayInt32::New(seqDa);
+ }
+ }
+ };
+
+ class ParaDataArrayInt64 : public ParaDataArray
+ {
+ public:
+ static ParaDataArrayInt64 *New(DataArrayInt64 *seqDa);
+ DataArrayInt64 *buildComplement(long nbOfElems) const;
+ %extend
+ {
+ ParaDataArrayInt64(DataArrayInt64 *seqDa)
+ {
+ return ParaDataArrayInt64::New(seqDa);
+ }
+ }
+ };
+
class ParaSkyLineArray : public RefCountObject
{
public: