UIndirectList: Use UList<label> rather than the labelUList typedef

to avoid dependency on another file.
This commit is contained in:
Henry Weller
2023-06-21 12:21:16 +01:00
parent d0b2fe89e5
commit 0ba5ebb0cd
2 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -62,7 +62,7 @@ class UIndirectList
// Private Data
UList<T>& completeList_;
const labelUList& addressing_;
const UList<label>& addressing_;
public:
@ -70,7 +70,7 @@ public:
// Constructors
//- Construct given the complete list and the addressing array
inline UIndirectList(const UList<T>&, const labelUList&);
inline UIndirectList(const UList<T>&, const UList<label>&);
//- Copy constructor
UIndirectList(const UIndirectList<T>&) = default;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -29,7 +29,7 @@ template<class T>
inline Foam::UIndirectList<T>::UIndirectList
(
const UList<T>& completeList,
const labelUList& addr
const UList<label>& addr
)
:
completeList_(const_cast<UList<T>&>(completeList)),