mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: relocate typeOfRank partial specialization to products.H
This commit is contained in:
committed by
Andrew Heather
parent
4c91d068fa
commit
b0ffdbcfb1
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2018 OpenCFD Ltd.
|
||||
\\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
| Copyright (C) 2011 OpenFOAM Foundation
|
||||
@ -38,26 +38,6 @@ License
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
template<class Cmpt>
|
||||
class typeOfRank<Cmpt, 0>
|
||||
{
|
||||
public:
|
||||
|
||||
typedef Cmpt type;
|
||||
};
|
||||
|
||||
|
||||
template<class Cmpt>
|
||||
class symmTypeOfRank<Cmpt, 0>
|
||||
{
|
||||
public:
|
||||
|
||||
typedef Cmpt type;
|
||||
};
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
//- Compare two values for equality
|
||||
|
||||
@ -159,6 +159,28 @@ public:
|
||||
};
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Partial Specializations for non-VectorSpace quantities
|
||||
|
||||
template<class Cmpt>
|
||||
class typeOfRank<Cmpt, 0>
|
||||
{
|
||||
public:
|
||||
|
||||
typedef Cmpt type;
|
||||
};
|
||||
|
||||
|
||||
template<class Cmpt>
|
||||
class symmTypeOfRank<Cmpt, 0>
|
||||
{
|
||||
public:
|
||||
|
||||
typedef Cmpt type;
|
||||
};
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
||||
Reference in New Issue
Block a user