UIndirectList: Use UList<label> rather than the labelUList typedef
to avoid dependency on another file.
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user