STYLE: provide boolField and labelField typedefs in Field.H

- as per boolList, labelList typedefs in List.H
This commit is contained in:
Mark Olesen
2019-08-09 17:39:54 +02:00
parent 5b04d8f75d
commit b94e708322
3 changed files with 8 additions and 7 deletions

View File

@ -69,6 +69,11 @@ Ostream& operator<<(Ostream&, const Field<Type>&);
template<class Type>
Ostream& operator<<(Ostream&, const tmp<Field<Type>>&);
// Basic Field types
typedef Field<bool> boolField; //!< A Field of bools
typedef Field<label> labelField; //!< A Field of labels
/*---------------------------------------------------------------------------*\
Class Field Declaration
\*---------------------------------------------------------------------------*/

View File

@ -23,9 +23,6 @@ License
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Description
Specialisation of Field\<T\> for label.
\*---------------------------------------------------------------------------*/
#include "labelField.H"

View File

@ -2,10 +2,8 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2004-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -48,7 +46,8 @@ SourceFiles
namespace Foam
{
typedef Field<label> labelField;
// labelField = defined in Field.H
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //