IOField< Type > Class Template Reference

A primitive field of type <T> with automated input and output. More...

Public Member Functions

 TypeName ("Field")
 
 IOField (const IOField &)=default
 Default copy construct. More...
 
 IOField (const IOobject &io)
 Construct from IOobject. More...
 
 IOField (const IOobject &io, const bool valid)
 Construct from IOobject; does local processor require reading? More...
 
 IOField (const IOobject &io, const label size)
 Construct from IOobject and size (does not set values) More...
 
 IOField (const IOobject &io, const UList< Type > &content)
 Construct from IOobject and a List/Field content. More...
 
 IOField (const IOobject &io, Field< Type > &&content)
 Construct by transferring the Field content. More...
 
 IOField (const IOobject &io, const tmp< Field< Type >> &tfld)
 Construct by copying/moving tmp content. More...
 
virtual ~IOField ()=default
 Destructor. More...
 
bool writeData (Ostream &os) const
 
void operator= (const IOField< Type > &rhs)
 Copy assignment of entries. More...
 

Detailed Description

template<class Type>
class Foam::IOField< Type >

A primitive field of type <T> with automated input and output.

Source files

Definition at line 61 of file foamVtkLagrangianWriter.H.

Constructor & Destructor Documentation

◆ IOField() [1/7]

IOField ( const IOField< Type > &  )
default

Default copy construct.

◆ IOField() [2/7]

IOField ( const IOobject io)
explicit

Construct from IOobject.

Definition at line 34 of file IOField.C.

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

Here is the call graph for this function:

◆ IOField() [3/7]

IOField ( const IOobject io,
const bool  valid 
)

Construct from IOobject; does local processor require reading?

Definition at line 57 of file IOField.C.

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

Here is the call graph for this function:

◆ IOField() [4/7]

IOField ( const IOobject io,
const label  size 
)

Construct from IOobject and size (does not set values)

Definition at line 94 of file IOField.C.

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

Here is the call graph for this function:

◆ IOField() [5/7]

IOField ( const IOobject io,
const UList< Type > &  content 
)

Construct from IOobject and a List/Field content.

Definition at line 121 of file IOField.C.

References IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED, Field< Type >::operator=(), IOobject::READ_IF_PRESENT, and IOobject::readOpt().

Here is the call graph for this function:

◆ IOField() [6/7]

IOField ( const IOobject io,
Field< Type > &&  content 
)

Construct by transferring the Field content.

Definition at line 148 of file IOField.C.

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

Here is the call graph for this function:

◆ IOField() [7/7]

IOField ( const IOobject io,
const tmp< Field< Type >> &  tfld 
)

Construct by copying/moving tmp content.

Definition at line 173 of file IOField.C.

References IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED, Field< Type >::operator=(), IOobject::READ_IF_PRESENT, and IOobject::readOpt().

Here is the call graph for this function:

◆ ~IOField()

virtual ~IOField ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "Field"  )

◆ writeData()

bool writeData ( Ostream os) const

Definition at line 208 of file IOField.C.

References os().

Here is the call graph for this function:

◆ operator=()

void operator= ( const IOField< Type > &  rhs)

Copy assignment of entries.

Definition at line 217 of file IOField.C.

References Field< Type >::operator=().

Here is the call graph for this function:

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