A Field of objects of type <T> with automated input and output using a compact storage. Behaves like IOField except when binary output in case it writes a CompactListList. More...
Public Member Functions | |
TypeName ("FieldField") | |
Runtime type information. More... | |
CompactIOField (const IOobject &) | |
Construct from IOobject. More... | |
CompactIOField (const IOobject &, const label) | |
Construct from IOobject and size. More... | |
CompactIOField (const IOobject &, const Field< T > &) | |
Construct from IOobject and a Field. More... | |
CompactIOField (const IOobject &, const Xfer< Field< T > > &) | |
Construct by transferring the Field contents. More... | |
virtual | ~CompactIOField () |
virtual bool | writeObject (IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType) const |
virtual bool | writeData (Ostream &) const |
void | operator= (const CompactIOField< T, BaseType > &) |
void | operator= (const Field< T > &) |
Private Member Functions | |
void | readFromStream () |
Read according to header type. More... | |
A Field of objects of type <T> with automated input and output using a compact storage. Behaves like IOField except when binary output in case it writes a CompactListList.
Useful for fields of small subfields e.g. in lagrangian
Definition at line 50 of file CompactIOField.H.
CompactIOField | ( | const IOobject & | ) |
Construct from IOobject.
CompactIOField | ( | const IOobject & | , |
const | label | ||
) |
Construct from IOobject and size.
CompactIOField | ( | const IOobject & | , |
const Xfer< Field< T > > & | |||
) |
Construct by transferring the Field contents.
|
virtual |
Definition at line 151 of file CompactIOField.C.
|
private |
Read according to header type.
Definition at line 32 of file CompactIOField.C.
References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, and Foam::name().
TypeName | ( | "FieldField" | ) |
Runtime type information.
|
virtual |
Definition at line 160 of file CompactIOField.C.
References IOstream::ASCII, and regIOobject::writeObject().
|
virtual |
Definition at line 188 of file CompactIOField.C.
void operator= | ( | const CompactIOField< T, BaseType > & | ) |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.