Field: Added constructor from UIndirectList
Patch contributed by Mattijs Janssens
This commit is contained in:
parent
ff28c48477
commit
a316584c72
2 changed files with 10 additions and 0 deletions
|
|
@ -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>>&);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue