/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2021 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM, distributed under GPL-3.0-or-later. Description Basic tests of expression traits \*---------------------------------------------------------------------------*/ #include "IOstreams.H" #include "ITstream.H" #include "exprTraits.H" #include "uLabel.H" #include "error.H" #include "stringList.H" #include "exprScanToken.H" using namespace Foam; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // template void printTraits() { const auto typeCode = exprTypeTraits::value; Info<< "type " << pTraits::typeName << " code:" << int(typeCode) << " name:" << exprTypeTraits::name; if (pTraits::typeName != word(exprTypeTraits::name)) { Info<< " (UNSUPPORTED)"; } Info << endl; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // int main() { Info<< nl << "Traits:" << nl; printTraits(); printTraits(); printTraits(); printTraits