X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCoupling%2FMEDCouplingMultiFields.hxx;h=1c1c424db6bbb7568502b7b120239b52f53a4bdf;hb=04f1c450d57b28c7c473bdc59dc87eeef7393ca5;hp=21b1816365584b70666478370e3991c9881aff10;hpb=5c5eac0685cacee529bf388d4369f3535c3803f9;p=tools%2Fmedcoupling.git diff --git a/src/MEDCoupling/MEDCouplingMultiFields.hxx b/src/MEDCoupling/MEDCouplingMultiFields.hxx index 21b181636..1c1c424db 100644 --- a/src/MEDCoupling/MEDCouplingMultiFields.hxx +++ b/src/MEDCoupling/MEDCouplingMultiFields.hxx @@ -1,9 +1,9 @@ -// Copyright (C) 2007-2013 CEA/DEN, EDF R&D +// Copyright (C) 2007-2020 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -23,13 +23,14 @@ #include "MEDCouplingRefCountObject.hxx" #include "MEDCouplingTimeLabel.hxx" -#include "MEDCouplingAutoRefCountObjectPtr.hxx" +#include "MCAuto.hxx" +#include "MCType.hxx" #include "InterpKernelException.hxx" #include -namespace ParaMEDMEM +namespace MEDCoupling { class MEDCouplingMesh; class DataArrayDouble; @@ -39,39 +40,40 @@ namespace ParaMEDMEM class MEDCouplingMultiFields : public RefCountObject, public TimeLabel { public: - MEDCOUPLING_EXPORT static MEDCouplingMultiFields *New(const std::vector& fs) throw(INTERP_KERNEL::Exception); + MEDCOUPLING_EXPORT static MEDCouplingMultiFields *New(const std::vector& fs); MEDCOUPLING_EXPORT static MEDCouplingMultiFields *New(); - MEDCOUPLING_EXPORT MEDCouplingMultiFields *deepCpy() const; + MEDCOUPLING_EXPORT std::string getClassName() const override { return std::string("MEDCouplingMultiFields"); } + MEDCOUPLING_EXPORT MEDCouplingMultiFields *deepCopy() const; MEDCOUPLING_EXPORT std::string getName() const; MEDCOUPLING_EXPORT std::string getDescription() const; MEDCOUPLING_EXPORT std::string getTimeUnit() const; - MEDCOUPLING_EXPORT double getTimeResolution() const throw(INTERP_KERNEL::Exception); + MEDCOUPLING_EXPORT double getTimeResolution() const; MEDCOUPLING_EXPORT virtual std::string simpleRepr() const; MEDCOUPLING_EXPORT virtual std::string advancedRepr() const; MEDCOUPLING_EXPORT virtual bool isEqual(const MEDCouplingMultiFields *other, double meshPrec, double valsPrec) const; MEDCOUPLING_EXPORT virtual bool isEqualWithoutConsideringStr(const MEDCouplingMultiFields *other, double meshPrec, double valsPrec) const; - MEDCOUPLING_EXPORT const MEDCouplingFieldDouble *getFieldWithId(int id) const throw(INTERP_KERNEL::Exception); + MEDCOUPLING_EXPORT const MEDCouplingFieldDouble *getFieldWithId(int id) const; MEDCOUPLING_EXPORT std::vector getFields() const; MEDCOUPLING_EXPORT int getNumberOfFields() const; - MEDCOUPLING_EXPORT const MEDCouplingFieldDouble *getFieldAtPos(int id) const throw(INTERP_KERNEL::Exception); - MEDCOUPLING_EXPORT virtual std::vector getMeshes() const throw(INTERP_KERNEL::Exception); - MEDCOUPLING_EXPORT virtual std::vector getDifferentMeshes(std::vector& refs) const throw(INTERP_KERNEL::Exception); - MEDCOUPLING_EXPORT virtual std::vector getArrays() const throw(INTERP_KERNEL::Exception); - MEDCOUPLING_EXPORT virtual std::vector getDifferentArrays(std::vector< std::vector >& refs) const throw(INTERP_KERNEL::Exception); + MEDCOUPLING_EXPORT const MEDCouplingFieldDouble *getFieldAtPos(int id) const; + MEDCOUPLING_EXPORT virtual std::vector getMeshes() const; + MEDCOUPLING_EXPORT virtual std::vector getDifferentMeshes(std::vector& refs) const; + MEDCOUPLING_EXPORT virtual std::vector getArrays() const; + MEDCOUPLING_EXPORT virtual std::vector getDifferentArrays(std::vector< std::vector >& refs) const; MEDCOUPLING_EXPORT void updateTime() const; MEDCOUPLING_EXPORT std::size_t getHeapMemorySizeWithoutChildren() const; - MEDCOUPLING_EXPORT std::vector getDirectChildren() const; - MEDCOUPLING_EXPORT void getTinySerializationInformation(std::vector& tinyInfo, std::vector& tinyInfo2, int& nbOfDiffMeshes, int& nbOfDiffArr) const; - MEDCOUPLING_EXPORT void finishUnserialization(const std::vector& tinyInfoI, const std::vector& tinyInfoD, + MEDCOUPLING_EXPORT std::vector getDirectChildrenWithNull() const; + MEDCOUPLING_EXPORT void getTinySerializationInformation(std::vector& tinyInfo, std::vector& tinyInfo2, int& nbOfDiffMeshes, int& nbOfDiffArr) const; + MEDCOUPLING_EXPORT void finishUnserialization(const std::vector& tinyInfoI, const std::vector& tinyInfoD, const std::vector& ft, const std::vector& ms, const std::vector& das); - MEDCOUPLING_EXPORT virtual void checkCoherency() const throw(INTERP_KERNEL::Exception); + MEDCOUPLING_EXPORT virtual void checkConsistencyLight() const; protected: - MEDCOUPLING_EXPORT MEDCouplingMultiFields(const std::vector& fs) throw(INTERP_KERNEL::Exception); + MEDCOUPLING_EXPORT MEDCouplingMultiFields(const std::vector& fs); MEDCOUPLING_EXPORT MEDCouplingMultiFields(const MEDCouplingMultiFields& other); MEDCOUPLING_EXPORT MEDCouplingMultiFields(); protected: - std::vector< MEDCouplingAutoRefCountObjectPtr > _fs; + std::vector< MCAuto > _fs; }; }