Salome HOME
Intersect2DMeshWith1DLine: bug fix (collinear edges not always detected)
[tools/medcoupling.git] / src / MEDCoupling / MEDCouplingMap.txx
index 6248b4ee6030231db020634fecbaa83ad6186e79..9358f1cde6360fd807c64d93f83e8ea0d5f5f3dd 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2019  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
 
 namespace MEDCoupling
 {
-  template<class T>
-  MCAuto< MapKeyVal<T> > MapKeyVal<T>::New()
+  template<class ID, class T>
+  MCAuto< MapKeyVal<ID, T> > MapKeyVal<ID, T>::New()
   {
-    MCAuto< MapKeyVal<T> > ret(new MapKeyVal<T>);
+    MCAuto< MapKeyVal<ID, T> > ret(new MapKeyVal<ID, T>);
     return ret;
   }
   
-  template<class T>
-  std::size_t MapKeyVal<T>::getHeapMemorySizeWithoutChildren() const
+  template<class ID, class T>
+  std::size_t MapKeyVal<ID, T>::getHeapMemorySizeWithoutChildren() const
   {
-    return _m.size()*sizeof(std::pair<T,T>);
+    return _m.size()*sizeof(std::pair<ID, T>);
   }
   
-  template<class T>
-  std::vector<const BigMemoryObject*> MapKeyVal<T>::getDirectChildrenWithNull() const
+  template<class ID, class T>
+  std::vector<const BigMemoryObject*> MapKeyVal<ID, T>::getDirectChildrenWithNull() const
   {
     return std::vector<const BigMemoryObject*>();//not a bug no child. Leaf object !
   }