X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCoupling%2FMEDCouplingMap.hxx;h=e43a0dcc09b8aa8c03be8d2cba9ca869ae9f03dc;hb=9abc40a840f69fd7f07b356cd31876b64dc81e14;hp=68b084a77ec7e80c10219bd9b148a9d5e25fccf1;hpb=9727e779d56acece98be02cdccd0f99cc5ef0fa2;p=tools%2Fmedcoupling.git diff --git a/src/MEDCoupling/MEDCouplingMap.hxx b/src/MEDCoupling/MEDCouplingMap.hxx index 68b084a77..e43a0dcc0 100644 --- a/src/MEDCoupling/MEDCouplingMap.hxx +++ b/src/MEDCoupling/MEDCouplingMap.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2019 CEA/DEN, EDF R&D +// Copyright (C) 2007-2022 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