mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Field: Added constructor from UIndirectList
Patch contributed by Mattijs Janssens
This commit is contained in:
@ -244,6 +244,13 @@ Foam::Field<Type>::Field(const UList<Type>& list)
|
||||
{}
|
||||
|
||||
|
||||
template<class Type>
|
||||
Foam::Field<Type>::Field(const UIndirectList<Type>& list)
|
||||
:
|
||||
List<Type>(list)
|
||||
{}
|
||||
|
||||
|
||||
#ifndef NoConstructFromTmp
|
||||
template<class Type>
|
||||
Foam::Field<Type>::Field(const tmp<Field<Type>>& tf)
|
||||
|
||||
@ -123,6 +123,9 @@ public:
|
||||
//- Construct as copy of a UList\<Type\>
|
||||
explicit Field(const UList<Type>&);
|
||||
|
||||
//- Construct as copy of a UIndirectList\<Type\>
|
||||
explicit Field(const UIndirectList<Type>&);
|
||||
|
||||
//- Construct by transferring the List contents
|
||||
explicit Field(const Xfer<List<Type>>&);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user