Public Member Functions | Private Attributes
IOPosition Class Reference

Helper IO class to read and write particle positions. More...

Collaboration diagram for IOPosition:
Collaboration graph
[legend]

Public Member Functions

virtual const wordtype () const
 Runtime type name information. Use cloud type. More...
 
 IOPosition (const CloudType &)
 Construct from cloud. More...
 
virtual void readData (CloudType &c, bool checkClass)
 
virtual bool write () const
 
virtual bool writeData (Ostream &os) const
 
virtual bool readData (Istream &)
 Inherit readData from regIOobject. More...
 

Private Attributes

const CloudTypecloud_
 Reference to the cloud. More...
 

Detailed Description

Helper IO class to read and write particle positions.

Source files

Definition at line 55 of file Cloud.H.

Constructor & Destructor Documentation

◆ IOPosition()

IOPosition ( const CloudType c)

Construct from cloud.

Definition at line 31 of file IOPosition.C.

Member Function Documentation

◆ type()

virtual const word& type ( ) const
inlinevirtual

Runtime type name information. Use cloud type.

Definition at line 65 of file IOPosition.H.

◆ readData() [1/2]

void readData ( CloudType c,
bool  checkClass 
)
virtual

◆ write()

bool write ( ) const
virtual

Definition at line 51 of file IOPosition.C.

References regIOobject::write().

Referenced by parLagrangianRedistributor::redistributeLagrangianPositions(), and particle< Type >::writeFields().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeData()

bool writeData ( Ostream os) const
virtual

Definition at line 65 of file IOPosition.C.

References token::BEGIN_LIST, token::END_LIST, Foam::endl(), forAllConstIter(), IOstream::good(), and Foam::nl.

Here is the call graph for this function:

◆ readData() [2/2]

bool readData

Inherit readData from regIOobject.

Definition at line 165 of file regIOobjectRead.C.

Field Documentation

◆ cloud_

const CloudType& cloud_
private

Reference to the cloud.

Definition at line 57 of file IOPosition.H.


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