ENH: added xfer function to Field (stopped falling through to List)

This commit is contained in:
andy 2010-11-22 15:16:42 +00:00
parent 429ab2703a
commit 49331bf917
2 changed files with 10 additions and 0 deletions

View File

@ -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
{

View File

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