From: ageay Date: Wed, 29 Feb 2012 11:53:38 +0000 (+0000) Subject: missing throw in prototype -> problems in swig wrapping. X-Git-Tag: V6_main_FINAL~812 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bef6f77243e9f9dfbe60b4fe2014aa77aafbea4b;p=tools%2Fmedcoupling.git missing throw in prototype -> problems in swig wrapping. --- diff --git a/src/MEDCoupling/MEDCouplingMemArray.cxx b/src/MEDCoupling/MEDCouplingMemArray.cxx index 55c685872..ce1bb6810 100644 --- a/src/MEDCoupling/MEDCouplingMemArray.cxx +++ b/src/MEDCoupling/MEDCouplingMemArray.cxx @@ -438,7 +438,7 @@ void DataArrayDouble::iota(double init) throw(INTERP_KERNEL::Exception) declareAsNew(); } -bool DataArrayDouble::isUniform(double val, double eps) const +bool DataArrayDouble::isUniform(double val, double eps) const throw(INTERP_KERNEL::Exception) { checkAllocated(); if(getNumberOfComponents()!=1) @@ -2667,14 +2667,14 @@ void DataArrayInt::alloc(int nbOfTuple, int nbOfCompo) declareAsNew(); } -void DataArrayInt::fillWithZero() +void DataArrayInt::fillWithZero() throw(INTERP_KERNEL::Exception) { checkAllocated(); _mem.fillWithValue(0); declareAsNew(); } -void DataArrayInt::fillWithValue(int val) +void DataArrayInt::fillWithValue(int val) throw(INTERP_KERNEL::Exception) { checkAllocated(); _mem.fillWithValue(val); @@ -3378,7 +3378,7 @@ DataArrayInt *DataArrayInt::buildPermArrPerLevel() const throw(INTERP_KERNEL::Ex * stdext::iota() of size getNumberOfTuples. This method is particalary usefull for DataArrayInt instances * that represents a renumbering array to check the real need in renumbering. */ -bool DataArrayInt::isIdentity() const +bool DataArrayInt::isIdentity() const throw(INTERP_KERNEL::Exception) { checkAllocated(); if(getNumberOfComponents()!=1) @@ -3391,7 +3391,7 @@ bool DataArrayInt::isIdentity() const return true; } -bool DataArrayInt::isUniform(int val) const +bool DataArrayInt::isUniform(int val) const throw(INTERP_KERNEL::Exception) { checkAllocated(); if(getNumberOfComponents()!=1) diff --git a/src/MEDCoupling/MEDCouplingMemArray.hxx b/src/MEDCoupling/MEDCouplingMemArray.hxx index 22ee1a151..3fb4d1952 100644 --- a/src/MEDCoupling/MEDCouplingMemArray.hxx +++ b/src/MEDCoupling/MEDCouplingMemArray.hxx @@ -147,7 +147,7 @@ namespace ParaMEDMEM MEDCOUPLING_EXPORT void fillWithZero() throw(INTERP_KERNEL::Exception); MEDCOUPLING_EXPORT void fillWithValue(double val) throw(INTERP_KERNEL::Exception); MEDCOUPLING_EXPORT void iota(double init=0.) throw(INTERP_KERNEL::Exception); - MEDCOUPLING_EXPORT bool isUniform(double val, double eps) const; + MEDCOUPLING_EXPORT bool isUniform(double val, double eps) const throw(INTERP_KERNEL::Exception); MEDCOUPLING_EXPORT void sort() throw(INTERP_KERNEL::Exception); MEDCOUPLING_EXPORT void reverse() throw(INTERP_KERNEL::Exception); MEDCOUPLING_EXPORT void checkMonotonic(bool increasing, double eps) const throw(INTERP_KERNEL::Exception); @@ -324,8 +324,8 @@ namespace ParaMEDMEM MEDCOUPLING_EXPORT DataArrayInt *buildPermutationArr(const DataArrayInt& other) const throw(INTERP_KERNEL::Exception); MEDCOUPLING_EXPORT void sort() throw(INTERP_KERNEL::Exception); MEDCOUPLING_EXPORT void reverse() throw(INTERP_KERNEL::Exception); - MEDCOUPLING_EXPORT void fillWithZero(); - MEDCOUPLING_EXPORT void fillWithValue(int val); + MEDCOUPLING_EXPORT void fillWithZero() throw(INTERP_KERNEL::Exception); + MEDCOUPLING_EXPORT void fillWithValue(int val) throw(INTERP_KERNEL::Exception); MEDCOUPLING_EXPORT void iota(int init=0) throw(INTERP_KERNEL::Exception); MEDCOUPLING_EXPORT std::string repr() const; MEDCOUPLING_EXPORT std::string reprZip() const; @@ -358,8 +358,8 @@ namespace ParaMEDMEM MEDCOUPLING_EXPORT void changeSurjectiveFormat(int targetNb, DataArrayInt *&arr, DataArrayInt *&arrI) const throw(INTERP_KERNEL::Exception); MEDCOUPLING_EXPORT static DataArrayInt *BuildOld2NewArrayFromSurjectiveFormat2(int nbOfOldTuples, const DataArrayInt *arr, const DataArrayInt *arrI, int &newNbOfTuples) throw(INTERP_KERNEL::Exception); MEDCOUPLING_EXPORT DataArrayInt *buildPermArrPerLevel() const throw(INTERP_KERNEL::Exception); - MEDCOUPLING_EXPORT bool isIdentity() const; - MEDCOUPLING_EXPORT bool isUniform(int val) const; + MEDCOUPLING_EXPORT bool isIdentity() const throw(INTERP_KERNEL::Exception); + MEDCOUPLING_EXPORT bool isUniform(int val) const throw(INTERP_KERNEL::Exception); MEDCOUPLING_EXPORT DataArrayInt *substr(int tupleIdBg, int tupleIdEnd=-1) const throw(INTERP_KERNEL::Exception); MEDCOUPLING_EXPORT void rearrange(int newNbOfCompo) throw(INTERP_KERNEL::Exception); MEDCOUPLING_EXPORT DataArrayInt *changeNbOfComponents(int newNbOfComp, int dftValue) const throw(INTERP_KERNEL::Exception);