mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: provide boolField and labelField typedefs in Field.H
- as per boolList, labelList typedefs in List.H
This commit is contained in:
@ -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
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
Reference in New Issue
Block a user