-// Copyright (C) 2016-2020 CEA/DEN, EDF R&D
+// Copyright (C) 2016-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// Author : Anthony Geay (EDF R&D)
-#ifndef __MEDCOUPLINGTRAITS_HXX__
-#define __MEDCOUPLINGTRAITS_HXX__
+#pragma once
#include "MEDCoupling.hxx"
#include "MCType.hxx"
template<class T>
struct MEDCOUPLING_EXPORT Traits
{
- typedef T EltType;
+ using EltType = T;
};
class DataArrayInt32;
class DataArrayInt64;
class MEDCouplingFieldDouble;
class MEDCouplingFieldFloat;
- class MEDCouplingFieldInt;
+ class MEDCouplingFieldInt32;
+ class MEDCouplingFieldInt64;
class DataArrayInt32Tuple;
class DataArrayInt64Tuple;
class DataArrayFloatTuple;
static const char VTKReprStr[];
using ArrayType = DataArrayInt32;
using ArrayTypeCh = DataArrayInt32;
- using FieldType = MEDCouplingFieldInt;
+ using FieldType = MEDCouplingFieldInt32;
using ArrayTuple = DataArrayInt32Tuple;
using IteratorType = DataArrayInt32Iterator;
};
static const char VTKReprStr[];
using ArrayType = DataArrayInt64;
using ArrayTypeCh = DataArrayInt64;
- //using FieldType = MEDCouplingFieldInt64;
+ using FieldType = MEDCouplingFieldInt64;
using ArrayTuple = DataArrayInt64Tuple;
using IteratorType = DataArrayInt64Iterator;
};
using IteratorType = DataArrayByteIterator;
};
}
-
-#endif