Public Member Functions | Private Member Functions
CompactIOField Class Reference

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...
 

Detailed Description

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

Source files

Definition at line 50 of file CompactIOField.H.

Constructor & Destructor Documentation

◆ CompactIOField() [1/4]

CompactIOField ( const IOobject )

Construct from IOobject.

◆ CompactIOField() [2/4]

CompactIOField ( const IOobject ,
const  label 
)

Construct from IOobject and size.

◆ CompactIOField() [3/4]

CompactIOField ( const IOobject ,
const Field< T > &   
)

Construct from IOobject and a Field.

◆ CompactIOField() [4/4]

CompactIOField ( const IOobject ,
const Xfer< Field< T > > &   
)

Construct by transferring the Field contents.

◆ ~CompactIOField()

~CompactIOField ( )
virtual

Definition at line 151 of file CompactIOField.C.

Member Function Documentation

◆ readFromStream()

void readFromStream ( )
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().

Here is the call graph for this function:

◆ TypeName()

TypeName ( "FieldField"  )

Runtime type information.

◆ writeObject()

bool writeObject ( IOstream::streamFormat  fmt,
IOstream::versionNumber  ver,
IOstream::compressionType  cmp 
) const
virtual

Definition at line 160 of file CompactIOField.C.

References IOstream::ASCII, and regIOobject::writeObject().

Here is the call graph for this function:

◆ writeData()

bool writeData ( Ostream os) const
virtual

Definition at line 188 of file CompactIOField.C.

◆ operator=() [1/2]

void operator= ( const CompactIOField< T, BaseType > &  )

◆ operator=() [2/2]

void operator= ( const Field< T > &  )

The documentation for this class was generated from the following files: