ENH: added xfer function to Field (stopped falling through to List)
This commit is contained in:
parent
429ab2703a
commit
49331bf917
@ -578,6 +578,13 @@ tmp<Field<Type> > Field<Type>::T() const
|
||||
}
|
||||
|
||||
|
||||
template<class Type>
|
||||
Xfer<Field<Type> > Field<Type>::xfer()
|
||||
{
|
||||
return xferMove(*this);
|
||||
}
|
||||
|
||||
|
||||
template<class Type>
|
||||
void Field<Type>::writeEntry(const word& keyword, Ostream& os) const
|
||||
{
|
||||
|
@ -302,6 +302,9 @@ public:
|
||||
//- Return the field transpose (only defined for second rank tensors)
|
||||
tmp<Field<Type> > T() const;
|
||||
|
||||
//- Transfer contents to the Xfer container
|
||||
Xfer<Field<Type> > xfer();
|
||||
|
||||
//- Write the field as a dictionary entry
|
||||
void writeEntry(const word& keyword, Ostream& os) const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user