X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCoupling%2FMEDCouplingMap.hxx;h=fa17dccfe6bcf1c853790d48b4fb13464c534fd7;hb=e7a9d4f59978fd384ee98db1dfdd5ec2118331ca;hp=9a5b1cfe3b5a758ccee43bba97912aab4540c6c5;hpb=0f701440d44fa7cb707df111658460ef5c447ff3;p=tools%2Fmedcoupling.git diff --git a/src/MEDCoupling/MEDCouplingMap.hxx b/src/MEDCoupling/MEDCouplingMap.hxx index 9a5b1cfe3..fa17dccfe 100644 --- a/src/MEDCoupling/MEDCouplingMap.hxx +++ b/src/MEDCoupling/MEDCouplingMap.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 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 @@ -23,6 +23,7 @@ #include "MEDCoupling.hxx" #include "MCAuto.hxx" +#include "MCType.hxx" #include "MEDCouplingTimeLabel.hxx" #include "MEDCouplingRefCountObject.hxx" #include "InterpKernelException.hxx" @@ -31,13 +32,14 @@ namespace MEDCoupling { - template + template class MapKeyVal : public RefCountObject, public TimeLabel { public: - static MCAuto< MapKeyVal > New(); - std::map& data() { return _m; } - const std::map& data() const { return _m; } + static MCAuto< MapKeyVal > New(); + std::string getClassName() const override { return std::string("MapKeyVal"); } + std::map& data() { return _m; } + const std::map& data() const { return _m; } std::size_t getHeapMemorySizeWithoutChildren() const; std::vector getDirectChildrenWithNull() const; void updateTime() const { } @@ -45,10 +47,10 @@ namespace MEDCoupling MapKeyVal() { } ~MapKeyVal() { } private: - std::map _m; + std::map _m; }; - using MapII = MapKeyVal; + using MapII = MapKeyVal; } #endif