mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add UList typedefs for the various List counterparts
- eg,
labelUList <-> labelList
scalarUList <-> scalarList
...
Note the unallocLabelList typedef is still available.
However labelUList requires less typing (10 vs. 17 chars) and has a
more obvious to labelList.
This commit is contained in:
@ -579,7 +579,9 @@ WARN_LOGFILE =
|
|||||||
# $(WM_PROJECT_DIR)/applications/solvers
|
# $(WM_PROJECT_DIR)/applications/solvers
|
||||||
|
|
||||||
# limit input for testing purposes
|
# limit input for testing purposes
|
||||||
INPUT = $(WM_PROJECT_DIR)/src/OpenFOAM/global
|
INPUT = $(WM_PROJECT_DIR)/src/OpenFOAM/global \
|
||||||
|
$(WM_PROJECT_DIR)/src/OpenFOAM/containers \
|
||||||
|
$(WM_PROJECT_DIR)/src/OpenFOAM/primitives
|
||||||
|
|
||||||
# This tag can be used to specify the character encoding of the source files
|
# This tag can be used to specify the character encoding of the source files
|
||||||
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
|
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
|
||||||
|
|||||||
@ -51,6 +51,12 @@ SeeAlso
|
|||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// Forward declaration
|
||||||
|
class PackedBoolList;
|
||||||
|
|
||||||
|
//- @typedef A List of PackedBoolList
|
||||||
|
typedef List<PackedBoolList> PackedBoolListList;
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class PackedBoolList Declaration
|
Class PackedBoolList Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|||||||
@ -59,6 +59,7 @@ template<class T> class SubList;
|
|||||||
template<class T> class UList;
|
template<class T> class UList;
|
||||||
template<class T> Ostream& operator<<(Ostream&, const UList<T>&);
|
template<class T> Ostream& operator<<(Ostream&, const UList<T>&);
|
||||||
|
|
||||||
|
typedef UList<label> labelUList;
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class UList Declaration
|
Class UList Declaration
|
||||||
|
|||||||
@ -21,6 +21,12 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::boolUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of bool
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::boolList
|
Foam::boolList
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<bool> boolUList;
|
||||||
|
|
||||||
typedef List<bool> boolList;
|
typedef List<bool> boolList;
|
||||||
typedef List<List<bool> > boolListList;
|
typedef List<List<bool> > boolListList;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,11 +21,17 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::fileNameUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of fileNames.
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::fileNameList
|
Foam::fileNameList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
List of fileNames.
|
A List of fileNames.
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<fileName> fileNameUList;
|
||||||
|
|
||||||
typedef List<fileName> fileNameList;
|
typedef List<fileName> fileNameList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -25,7 +25,19 @@ Typedef
|
|||||||
Foam::labelList
|
Foam::labelList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Label container classes
|
A List of labels
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::labelListList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A List of labelList
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::labelListListList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A List of labelListList
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,11 +51,11 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
// Note: frequently used UList version is located in container itself
|
||||||
|
|
||||||
typedef List<label> labelList;
|
typedef List<label> labelList;
|
||||||
typedef List<labelList> labelListList;
|
typedef List<labelList> labelListList;
|
||||||
typedef List<labelListList> labelListListList;
|
typedef List<labelListList> labelListListList;
|
||||||
|
|
||||||
typedef UList<label> unallocLabelList;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -21,11 +21,17 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::scalarUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of scalars.
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::scalarList
|
Foam::scalarList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
List of scalars.
|
A List of scalars.
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<scalar> scalarUList;
|
||||||
|
|
||||||
typedef List<scalar> scalarList;
|
typedef List<scalar> scalarList;
|
||||||
typedef List<scalarList> scalarListList;
|
typedef List<scalarList> scalarListList;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,11 +21,17 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::sphericalTensorUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of sphericalTensors.
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::sphericalTensorList
|
Foam::sphericalTensorList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
List of sphericalTensors.
|
A List of sphericalTensors.
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<sphericalTensor> sphericalTensorUList;
|
||||||
|
|
||||||
typedef List<sphericalTensor> sphericalTensorList;
|
typedef List<sphericalTensor> sphericalTensorList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -21,11 +21,17 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::stringUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of strings.
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::stringList
|
Foam::stringList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
List of strings.
|
A List of strings.
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<string> stringUList;
|
||||||
|
|
||||||
typedef List<string> stringList;
|
typedef List<string> stringList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -21,11 +21,17 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::symmTensorUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of symmTensors.
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::symmTensorList
|
Foam::symmTensorList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
List of symmTensors.
|
A List of symmTensors.
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<symmTensor> symmTensorUList;
|
||||||
|
|
||||||
typedef List<symmTensor> symmTensorList;
|
typedef List<symmTensor> symmTensorList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -21,11 +21,17 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::tensorUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of tensors.
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::tensorList
|
Foam::tensorList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
List of tensors.
|
A List of tensors.
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<tensor> tensorUList;
|
||||||
|
|
||||||
typedef List<tensor> tensorList;
|
typedef List<tensor> tensorList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -21,11 +21,17 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::vectorUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of vectors.
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::vectorList
|
Foam::vectorList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
List of vectors.
|
A List of vectors.
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<vector> vectorUList;
|
||||||
|
|
||||||
typedef List<vector> vectorList;
|
typedef List<vector> vectorList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -21,11 +21,17 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::wordUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of words.
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::wordList
|
Foam::wordList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
List of words.
|
A List of words.
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<word> wordUList;
|
||||||
|
|
||||||
typedef List<word> wordList;
|
typedef List<word> wordList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2009-2010 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -21,11 +21,17 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::wordReUList
|
||||||
|
|
||||||
|
Description
|
||||||
|
A UList of wordRe (word or regular expression)
|
||||||
|
|
||||||
Typedef
|
Typedef
|
||||||
Foam::wordReList
|
Foam::wordReList
|
||||||
|
|
||||||
Description
|
Description
|
||||||
List of wordRe (word or regular expression)
|
A List of wordRe (word or regular expression)
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -39,6 +45,8 @@ Description
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
typedef UList<wordRe> wordReUList;
|
||||||
|
|
||||||
typedef List<wordRe> wordReList;
|
typedef List<wordRe> wordReList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2009-2010 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2009-2010 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2009-2010 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|||||||
Reference in New Issue
Block a user