PSCF v1.1
Public Member Functions | List of all members
Util::End Class Reference

End bracket of a ParamComposite parameter block. More...

#include <End.h>

Inheritance diagram for Util::End:
Util::ParamComponent Util::Serializable Util::MpiFileIo

Public Member Functions

 End ()
 Constructor. More...
 
virtual ~End ()
 Destructor. More...
 
virtual void readParam (std::istream &in)
 Read the closing bracket. More...
 
virtual void writeParam (std::ostream &out) const
 Write the closing bracket. More...
 
void resetParam ()
 Do-nothing implementation of virtual resetParam function. More...
 
- Public Member Functions inherited from Util::ParamComponent
virtual ~ParamComponent ()
 Destructor. More...
 
virtual void readParam (std::istream &in)=0
 Read parameter(s) from file. More...
 
virtual void writeParam (std::ostream &out) const =0
 Read parameter(s) to file. More...
 
virtual void load (Serializable::IArchive &ar)
 Load internal state from an archive. More...
 
virtual void save (Serializable::OArchive &ar)
 Save internal state to an archive. More...
 
virtual void resetParam ()
 Nontrivial implementation provided by ParamComposite subclass. More...
 
void setIndent (const ParamComponent &parent, bool next=true)
 Set indent level. More...
 
std::string indent () const
 Return indent string for this object (string of spaces). More...
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 Serialize this ParamComponent as a string. More...
 
- Public Member Functions inherited from Util::Serializable
virtual ~Serializable ()
 Destructor. More...
 
virtual void save (OArchive &ar)=0
 Save to an archive. More...
 
virtual void load (IArchive &ar)=0
 Load from an archive. More...
 
- Public Member Functions inherited from Util::MpiFileIo
 MpiFileIo ()
 Constructor. More...
 
 MpiFileIo (const MpiFileIo &other)
 Copy constructor. More...
 
bool isIoProcessor () const
 Can this processor do file I/O ? More...
 
void setIoCommunicator (MPI::Intracomm &communicator)
 Set the communicator. More...
 
void clearCommunicator ()
 Clear (nullify) the communicator. More...
 
bool hasIoCommunicator () const
 Does this object have an associated MPI communicator? More...
 
MPI::Intracomm & ioCommunicator () const
 Get the MPI communicator by reference. More...
 

Additional Inherited Members

- Public Types inherited from Util::Serializable
typedef BinaryFileOArchive OArchive
 Type of output archive used by save method. More...
 
typedef BinaryFileIArchive IArchive
 Type of input archive used by load method. More...
 
- Static Public Member Functions inherited from Util::ParamComponent
static void initStatic ()
 Initialize static echo member to false. More...
 
static void setEcho (bool echo=true)
 Enable or disable echoing for all subclasses of ParamComponent. More...
 
static bool echo ()
 Get echo parameter. More...
 
- Protected Member Functions inherited from Util::ParamComponent
 ParamComponent ()
 Constructor. More...
 
 ParamComponent (const ParamComponent &other)
 Copy constructor. More...
 

Detailed Description

End bracket of a ParamComposite parameter block.

Definition at line 24 of file End.h.

Constructor & Destructor Documentation

◆ End()

Util::End::End ( )

Constructor.

Definition at line 17 of file End.cpp.

◆ ~End()

Util::End::~End ( )
virtual

Destructor.

Definition at line 24 of file End.cpp.

Member Function Documentation

◆ readParam()

void Util::End::readParam ( std::istream &  in)
virtual

Read the closing bracket.

Parameters
ininput stream

Implements Util::ParamComponent.

Definition at line 30 of file End.cpp.

References Util::ParamComponent::echo(), Util::Log::file(), Util::MpiFileIo::isIoProcessor(), and writeParam().

Referenced by Util::ParamComposite::readEnd().

◆ writeParam()

void Util::End::writeParam ( std::ostream &  out) const
virtual

Write the closing bracket.

Parameters
outoutput stream

Implements Util::ParamComponent.

Definition at line 43 of file End.cpp.

References Util::ParamComponent::indent().

Referenced by Util::Manager< Data >::endReadManager(), Util::ParamComposite::load(), and readParam().

◆ resetParam()

void Util::End::resetParam ( )
virtual

Do-nothing implementation of virtual resetParam function.

Reimplemented from Util::ParamComponent.

Definition at line 49 of file End.cpp.


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