rheolef  7.0
Public Member Functions | Protected Attributes | Friends | List of all members
rheolef::catchmark Class Reference

catchmark - iostream manipulator More...

#include <catchmark.h>

Public Member Functions

 catchmark (const std::string &x)
const std::string & mark () const

Protected Attributes

std::string _mark


std::istream & operator>> (std::istream &is, const catchmark &m)
std::ostream & operator<< (std::ostream &os, const catchmark &m)

Detailed Description

catchmark - iostream manipulator

The catchmark is used for building labels used for input-output of vector-valued fields (see field):

cin >> catchmark("f") >> fh;
cout << catchmark("u") << uh
<< catchmark("w") << wh
<< catchmark("psi") << psih;

Assuming its value for output is "u", the corresponding labels will be "#u0", "#u1", "#u2", ...

See also

Definition at line 30 of file catchmark.h.

Constructor & Destructor Documentation

◆ catchmark()

endcode rheolef::catchmark::catchmark ( const std::string &  x)

Definition at line 42 of file catchmark.h.

Member Function Documentation

◆ mark()

const std::string& rheolef::catchmark::mark ( ) const

Definition at line 33 of file catchmark.h.

Friends And Related Function Documentation

◆ operator>>

std::istream& operator>> ( std::istream &  is,
const catchmark m 

Definition at line 48 of file catchmark.h.

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const catchmark m 

Definition at line 59 of file catchmark.h.

Member Data Documentation

◆ _mark

std::string rheolef::catchmark::_mark

Definition at line 37 of file catchmark.h.

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