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 ff28c48477
commit a316584c72
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
template<class Type>
Foam::Field<Type>::Field(const tmp<Field<Type>>& tf)

View file

@ -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>>&);