/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License This file is part of OpenFOAM. OpenFOAM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenFOAM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenFOAM. If not, see . InClass Foam::contiguous Description Template function to specify if the data of a type are contiguous. The default function specifies that data are not contiguous. This is specialised for the types (eg, primitives) with contiguous data. \*---------------------------------------------------------------------------*/ #ifndef contiguous_H #define contiguous_H #include "int.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // Forward declaration of friend functions and operators template class FixedList; template class Pair; //- Assume the data associated with type T are not contiguous template inline bool contiguous() {return false;} // Data associated with primitive types (and simple fixed size containers // - only size 2 defined here) are contiguous template<> inline bool contiguous() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous() {return true;} template<> inline bool contiguous>() {return true;} template<> inline bool contiguous>() {return true;} // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #endif // ************************************************************************* //