Public Member Functions | List of all members
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")
 
 CompactIOField (const CompactIOField &)=default
 
 CompactIOField (const IOobject &io)
 
 CompactIOField (const IOobject &io, const bool valid)
 
 CompactIOField (const IOobject &io, const label size)
 
 CompactIOField (const IOobject &io, const UList< T > &content)
 
 CompactIOField (const IOobject &io, Field< T > &&content)
 
virtual ~CompactIOField ()=default
 
virtual bool writeObject (IOstreamOption streamOpt, const bool valid) const
 
virtual bool writeData (Ostream &os) const
 
void operator= (const CompactIOField< T, BaseType > &rhs)
 

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 49 of file CompactIOField.H.

Constructor & Destructor Documentation

◆ CompactIOField() [1/6]

CompactIOField ( const CompactIOField )
default

◆ CompactIOField() [2/6]

CompactIOField ( const IOobject io)
explicit

Definition at line 60 of file CompactIOField.C.

References IOobject::MUST_READ, IOobject::READ_IF_PRESENT, and IOobject::readOpt().

Here is the call graph for this function:

◆ CompactIOField() [3/6]

CompactIOField ( const IOobject io,
const bool  valid 
)

Definition at line 77 of file CompactIOField.C.

References IOobject::MUST_READ, IOobject::READ_IF_PRESENT, and IOobject::readOpt().

Here is the call graph for this function:

◆ CompactIOField() [4/6]

CompactIOField ( const IOobject io,
const label  size 
)

Definition at line 98 of file CompactIOField.C.

References IOobject::MUST_READ, IOobject::READ_IF_PRESENT, IOobject::readOpt(), and setSize().

Here is the call graph for this function:

◆ CompactIOField() [5/6]

CompactIOField ( const IOobject io,
const UList< T > &  content 
)

Definition at line 122 of file CompactIOField.C.

References IOobject::MUST_READ, Field::operator=(), IOobject::READ_IF_PRESENT, and IOobject::readOpt().

Here is the call graph for this function:

◆ CompactIOField() [6/6]

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

Definition at line 146 of file CompactIOField.C.

References IOobject::MUST_READ, IOobject::READ_IF_PRESENT, and IOobject::readOpt().

Here is the call graph for this function:

◆ ~CompactIOField()

virtual ~CompactIOField ( )
virtualdefault

Member Function Documentation

◆ TypeName()

TypeName ( "FieldField"  )

◆ writeObject()

bool writeObject ( IOstreamOption  streamOpt,
const bool  valid 
) const
virtual

Definition at line 170 of file CompactIOField.C.

References IOstreamOption::ASCII, IOstreamOption::format(), and regIOobject::writeObject().

Here is the call graph for this function:

◆ writeData()

bool writeData ( Ostream os) const
virtual

Definition at line 195 of file CompactIOField.C.

References os().

Here is the call graph for this function:

◆ operator=()

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

Definition at line 205 of file CompactIOField.C.

References Field::operator=().

Here is the call graph for this function:

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