X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCoupling%2FMCType.hxx;h=d1822e384c02ebbee61df40409ed027f02aadd0c;hb=b8616069f6667dcec3f90574a05bfc9e66d87fa5;hp=ad07645918089bbd3e20f03d102f2eb1bcf12aba;hpb=a74cff369c36eeaa718af5178c265a1e76ce55ca;p=tools%2Fmedcoupling.git diff --git a/src/MEDCoupling/MCType.hxx b/src/MEDCoupling/MCType.hxx index ad0764591..d1822e384 100644 --- a/src/MEDCoupling/MCType.hxx +++ b/src/MEDCoupling/MCType.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2017 CEA/DEN, EDF R&D +// Copyright (C) 2017-2021 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 @@ -18,21 +18,38 @@ // // Author : Anthony Geay (EDF R&D) -#ifndef __MEDCOUPLING_MCTYPE_HXX__ -#define __MEDCOUPLING_MCTYPE_HXX__ +#pragma once + +#include "MCIdType.hxx" #include +#include +#include namespace MEDCoupling { + using mcIdType = ::mcIdType; using Int64 = std::int64_t; using Int32 = std::int32_t; - using mcIdType = std::int32_t; -} -#define DataArrayInt DataArrayInt32 + class DataArrayInt32; + class DataArrayInt32Iterator; + class DataArrayInt32Tuple; + class DataArrayInt64; + class DataArrayInt64Tuple; + +#ifndef MEDCOUPLING_USE_64BIT_IDS + #define DataArrayIdType DataArrayInt32 +#define DataArrayIdTypeTuple DataArrayInt32Tuple -#define DataArrayIntIterator DataArrayInt32Iterator +#else + +#define DataArrayIdType DataArrayInt64 +#define DataArrayIdTypeTuple DataArrayInt64Tuple #endif + +#define DataArrayInt DataArrayInt32 +#define DataArrayIntIterator DataArrayInt32Iterator +}