Garfield++ v2r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
prstream.h File Reference
#include <iostream>

Go to the source code of this file.

Classes

class  Heed::indentation
 

Namespaces

namespace  Heed
 

Macros

#define USE_DEFAULT_STREAMS
 
#define mcout   std::cout /* change to ordinary default C++ stream */
 
#define mcerr   std::cerr
 
#define Ifile   file << indn
 
#define Imcout   mcout << indn
 
#define Iprint(file, name)    file << indn << #name << "=" << noindent << name << yesindent;
 
#define Iprintf(file, name)
 
#define Iprintn(file, name)    file << indn << #name << "=" << noindent << name << '\n' << yesindent;
 
#define Iprintnf(file, name)
 
#define Iprintan(file, name, addition)
 
#define Iprint2(file, name1, name2)
 
#define Iprint2n(file, name1, name2)
 
#define Iprint2nf(file, name1, name2)
 
#define Iprint3(file, name1, name2, name3)
 
#define Iprint3n(file, name1, name2, name3)
 
#define Iprint3nf(file, name1, name2, name3)
 
#define Iprint4n(file, name1, name2, name3, name4)
 

Functions

std::ostream & Heed::operator<< (std::ostream &file, indentation &ind)
 
std::ostream & Heed::noindent (std::ostream &f)
 
std::ostream & Heed::yesindent (std::ostream &f)
 

Macro Definition Documentation

◆ Ifile

#define Ifile   file << indn

Definition at line 196 of file prstream.h.

◆ Imcout

#define Imcout   mcout << indn

Definition at line 197 of file prstream.h.

◆ Iprint

#define Iprint (   file,
  name 
)     file << indn << #name << "=" << noindent << name << yesindent;

Definition at line 198 of file prstream.h.

◆ Iprint2

#define Iprint2 (   file,
  name1,
  name2 
)
Value:
file << indn << #name1 << "=" << noindent << name1 << ", " << #name2 << "=" \
<< noindent << name2 << yesindent;

Definition at line 217 of file prstream.h.

◆ Iprint2n

#define Iprint2n (   file,
  name1,
  name2 
)
Value:
file << indn << #name1 << "=" << noindent << name1 << ", " << #name2 << "=" \
<< noindent << name2 << '\n' << yesindent;

Definition at line 220 of file prstream.h.

◆ Iprint2nf

#define Iprint2nf (   file,
  name1,
  name2 
)
Value:
{ \
file << indn << #name1 << "=" << noindent << name1 << ", " << #name2 \
<< "=" << noindent << name2 << '\n' << yesindent; \
file.flush(); \
}

Definition at line 223 of file prstream.h.

◆ Iprint3

#define Iprint3 (   file,
  name1,
  name2,
  name3 
)
Value:
file << indn << #name1 << "=" << noindent << name1 << ", " << #name2 << "=" \
<< noindent << name2 << ", " << #name3 << "=" << noindent << name3 \
<< yesindent;

Definition at line 229 of file prstream.h.

◆ Iprint3n

#define Iprint3n (   file,
  name1,
  name2,
  name3 
)
Value:
file << indn << #name1 << "=" << noindent << name1 << ", " << #name2 << "=" \
<< noindent << name2 << ", " << #name3 << "=" << noindent << name3 \
<< '\n' << yesindent;

Definition at line 233 of file prstream.h.

◆ Iprint3nf

#define Iprint3nf (   file,
  name1,
  name2,
  name3 
)
Value:
{ \
file << indn << #name1 << "=" << noindent << name1 << ", " << #name2 \
<< "=" << noindent << name2 << ", " << #name3 << "=" << noindent \
<< name3 << '\n' << yesindent; \
file.flush(); \
}

Definition at line 237 of file prstream.h.

◆ Iprint4n

#define Iprint4n (   file,
  name1,
  name2,
  name3,
  name4 
)
Value:
file << indn << #name1 << "=" << noindent << name1 << ", " << #name2 << "=" \
<< noindent << name2 << ", " << #name3 << "=" << noindent << name3 \
<< ", " << #name4 << "=" << noindent << name4 << '\n' << yesindent;

Definition at line 244 of file prstream.h.

◆ Iprintan

#define Iprintan (   file,
  name,
  addition 
)
Value:
file << indn << #name << "=" << noindent << name << ' ' << addition << '\n' \
<< yesindent;

Definition at line 212 of file prstream.h.

◆ Iprintf

#define Iprintf (   file,
  name 
)
Value:
{ \
file << indn << #name << "=" << noindent << name << yesindent; \
file.flush(); \
}

Definition at line 200 of file prstream.h.

◆ Iprintn

#define Iprintn (   file,
  name 
)     file << indn << #name << "=" << noindent << name << '\n' << yesindent;

Definition at line 205 of file prstream.h.

◆ Iprintnf

#define Iprintnf (   file,
  name 
)
Value:
{ \
file << indn << #name << "=" << noindent << name << '\n' << yesindent; \
file.flush(); \
}

Definition at line 207 of file prstream.h.

◆ mcerr

#define mcerr   std::cerr

Definition at line 128 of file prstream.h.

◆ mcout

#define mcout   std::cout /* change to ordinary default C++ stream */

Definition at line 126 of file prstream.h.

◆ USE_DEFAULT_STREAMS

#define USE_DEFAULT_STREAMS

Definition at line 107 of file prstream.h.