Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::DumpWEnsight7::WriteBase Class Referenceabstract

Functor for writing a variable. More...

Inheritance diagram for Arcane::DumpWEnsight7::WriteBase:
Collaboration diagram for Arcane::DumpWEnsight7::WriteBase:

Public Member Functions

 WriteBase (DumpWEnsight7 &dw)
 WriteBase (DumpWEnsight7 &dw, GroupIndexTable *idx)
 WriteBase (const WriteBase &wb)
virtual WriteBase * clone ()=0
virtual void begin ()
virtual void end ()
virtual void write (ConstArrayView< Item > items)=0
virtual void init ()
virtual void putValue (std::ostream &ofile)
std::ostream & stream ()

Protected Attributes

DumpWEnsight7 & m_dw
std::ostringstream m_ofile
GroupIndexTablem_idx = nullptr

Detailed Description

Functor for writing a variable.

This is the base class of functors allowing a variable to be saved on the elements of a given group. Derived classes must define the operator() with the element identifier as the only parameter.

For example, if we have a cell group containing 3 cells with IDs 2, 5, and 9, the functor will be called three times with each of its indices.

See also
WriteDouble, WriteReal3, WriteArrayDouble, WriteArrayReal3

Definition at line 367 of file DumpWEnsight7.cc.

Constructor & Destructor Documentation

◆ WriteBase() [1/3]

Arcane::DumpWEnsight7::WriteBase::WriteBase ( DumpWEnsight7 & dw)
inlineexplicit

Definition at line 371 of file DumpWEnsight7.cc.

◆ WriteBase() [2/3]

Arcane::DumpWEnsight7::WriteBase::WriteBase ( DumpWEnsight7 & dw,
GroupIndexTable * idx )
inline

Definition at line 374 of file DumpWEnsight7.cc.

◆ WriteBase() [3/3]

Arcane::DumpWEnsight7::WriteBase::WriteBase ( const WriteBase & wb)
inline

Definition at line 378 of file DumpWEnsight7.cc.

◆ ~WriteBase()

virtual Arcane::DumpWEnsight7::WriteBase::~WriteBase ( )
inlinevirtual

Definition at line 382 of file DumpWEnsight7.cc.

Member Function Documentation

◆ begin()

virtual void Arcane::DumpWEnsight7::WriteBase::begin ( )
inlinevirtual

Definition at line 387 of file DumpWEnsight7.cc.

◆ end()

virtual void Arcane::DumpWEnsight7::WriteBase::end ( )
inlinevirtual

Definition at line 388 of file DumpWEnsight7.cc.

◆ init()

virtual void Arcane::DumpWEnsight7::WriteBase::init ( )
inlinevirtual

Definition at line 391 of file DumpWEnsight7.cc.

◆ putValue()

virtual void Arcane::DumpWEnsight7::WriteBase::putValue ( std::ostream & ofile)
inlinevirtual

Definition at line 396 of file DumpWEnsight7.cc.

◆ stream()

std::ostream & Arcane::DumpWEnsight7::WriteBase::stream ( )
inline

Definition at line 400 of file DumpWEnsight7.cc.

Member Data Documentation

◆ m_dw

DumpWEnsight7& Arcane::DumpWEnsight7::WriteBase::m_dw
protected

Definition at line 404 of file DumpWEnsight7.cc.

◆ m_idx

GroupIndexTable* Arcane::DumpWEnsight7::WriteBase::m_idx = nullptr
protected

Definition at line 406 of file DumpWEnsight7.cc.

◆ m_ofile

std::ostringstream Arcane::DumpWEnsight7::WriteBase::m_ofile
protected

Definition at line 405 of file DumpWEnsight7.cc.


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