Field: Added constructor from UIndirectList

Patch contributed by Mattijs Janssens
This commit is contained in:
Henry Weller
2016-09-30 18:48:26 +01:00
parent 4bdf712b35
commit ec9883f389
2 changed files with 10 additions and 0 deletions

View File

@ -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 #ifndef NoConstructFromTmp
template<class Type> template<class Type>
Foam::Field<Type>::Field(const tmp<Field<Type>>& tf) Foam::Field<Type>::Field(const tmp<Field<Type>>& tf)

View File

@ -123,6 +123,9 @@ public:
//- Construct as copy of a UList\<Type\> //- Construct as copy of a UList\<Type\>
explicit Field(const 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 //- Construct by transferring the List contents
explicit Field(const Xfer<List<Type>>&); explicit Field(const Xfer<List<Type>>&);