Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Verbose_ostream Class Reference

#include <Verbose_ostream.h>

Collaboration diagram for Verbose_ostream:

Public Member Functions

 Verbose_ostream (bool active=false, std::ostream &out=std::cerr)
 
bool verbose () const
 
void set_verbose (bool active)
 
std::ostream & out ()
 
template<class T >
Verbose_ostreamoperator<< (const T &t)
 
Verbose_ostreamoperator<< (char c)
 
Verbose_ostreamoperator<< (const char *s)
 
Verbose_ostreamoperator<< (int a)
 
Verbose_ostreamoperator<< (long l)
 
Verbose_ostreamoperator<< (double d)
 
Verbose_ostreamoperator<< (float f)
 
Verbose_ostreamoperator<< (unsigned int a)
 
Verbose_ostreamoperator<< (unsigned long l)
 
Verbose_ostreamoperator<< (void *p)
 
Verbose_ostreamoperator<< (short i)
 
Verbose_ostreamoperator<< (unsigned short i)
 
Verbose_ostreamoperator<< (std::ostream &(*f)(std::ostream &))
 
Verbose_ostreamoperator<< (std::ios &(*f)(std::ios &))
 
Verbose_ostreamflush ()
 
Verbose_ostreamput (char c)
 
Verbose_ostreamwrite (const char *s, int n)
 

Private Attributes

bool b
 
std::ostream * o
 

Detailed Description

Definition at line 63 of file Verbose_ostream.h.

Constructor & Destructor Documentation

Verbose_ostream ( bool  active = false,
std::ostream &  out = std::cerr 
)
inline

Definition at line 67 of file Verbose_ostream.h.

68  : b(active), o(&out){}
std::ostream & out()
std::ostream * o

Member Function Documentation

Verbose_ostream& flush ( )
inline

Definition at line 99 of file Verbose_ostream.h.

References b, and o.

99  {
100  if (b)
101  o->flush();
102  return *this;
103  }
std::ostream * o
Verbose_ostream& operator<< ( const T &  t)
inline

Definition at line 76 of file Verbose_ostream.h.

References CGAL__VERB.

76 { CGAL__VERB(t);}
#define CGAL__VERB(x)
Verbose_ostream& operator<< ( char  c)
inline

Definition at line 79 of file Verbose_ostream.h.

References CGAL__VERB.

79 { CGAL__VERB(c);}
#define CGAL__VERB(x)
Verbose_ostream& operator<< ( const char *  s)
inline

Definition at line 80 of file Verbose_ostream.h.

References CGAL__VERB.

80 { CGAL__VERB(s);}
double s
Definition: blastest.C:80
#define CGAL__VERB(x)
Verbose_ostream& operator<< ( int  a)
inline

Definition at line 81 of file Verbose_ostream.h.

References CGAL__VERB.

81 { CGAL__VERB(a);}
#define CGAL__VERB(x)
Verbose_ostream& operator<< ( long  l)
inline

Definition at line 82 of file Verbose_ostream.h.

References CGAL__VERB.

82 { CGAL__VERB(l);}
#define CGAL__VERB(x)
Verbose_ostream& operator<< ( double  d)
inline

Definition at line 83 of file Verbose_ostream.h.

References CGAL__VERB.

83 { CGAL__VERB(d);}
const NT & d
#define CGAL__VERB(x)
Verbose_ostream& operator<< ( float  f)
inline

Definition at line 84 of file Verbose_ostream.h.

References CGAL__VERB.

84 { CGAL__VERB(f);}
#define CGAL__VERB(x)
Verbose_ostream& operator<< ( unsigned int  a)
inline

Definition at line 85 of file Verbose_ostream.h.

References CGAL__VERB.

85 { CGAL__VERB(a);}
#define CGAL__VERB(x)
Verbose_ostream& operator<< ( unsigned long  l)
inline

Definition at line 86 of file Verbose_ostream.h.

References CGAL__VERB.

86 { CGAL__VERB(l);}
#define CGAL__VERB(x)
Verbose_ostream& operator<< ( void *  p)
inline

Definition at line 91 of file Verbose_ostream.h.

References CGAL__VERB.

91 { CGAL__VERB(p);}
#define CGAL__VERB(x)
Verbose_ostream& operator<< ( short  i)
inline

Definition at line 92 of file Verbose_ostream.h.

References CGAL__VERB.

92 { CGAL__VERB(i);}
blockLoc i
Definition: read.cpp:79
#define CGAL__VERB(x)
Verbose_ostream& operator<< ( unsigned short  i)
inline

Definition at line 93 of file Verbose_ostream.h.

References CGAL__VERB.

93 { CGAL__VERB(i);}
blockLoc i
Definition: read.cpp:79
#define CGAL__VERB(x)
Verbose_ostream& operator<< ( std::ostream &(*)(std::ostream &)  f)
inline

Definition at line 95 of file Verbose_ostream.h.

References CGAL__VERB.

96  { CGAL__VERB(f);}
#define CGAL__VERB(x)
Verbose_ostream& operator<< ( std::ios &(*)(std::ios &)  f)
inline

Definition at line 97 of file Verbose_ostream.h.

References CGAL__VERB.

98  { CGAL__VERB(f);}
#define CGAL__VERB(x)
std::ostream& out ( )
inline

Definition at line 72 of file Verbose_ostream.h.

References o.

Referenced by setup_py::steadytemp().

72 { return *o; }
std::ostream * o

Here is the caller graph for this function:

Verbose_ostream& put ( char  c)
inline

Definition at line 104 of file Verbose_ostream.h.

References b, and o.

104  {
105  if (b)
106  o->put(c);
107  return *this;
108  }
std::ostream * o
void set_verbose ( bool  active)
inline

Definition at line 71 of file Verbose_ostream.h.

References b.

71 { b = active; }
bool verbose ( ) const
inline

Definition at line 70 of file Verbose_ostream.h.

References b.

70 { return b; }
Verbose_ostream& write ( const char *  s,
int  n 
)
inline

Definition at line 109 of file Verbose_ostream.h.

References b, and o.

109  {
110  if (b)
111  o->write( s, n);
112  return *this;
113  }
double s
Definition: blastest.C:80
const NT & n
std::ostream * o

Member Data Documentation

bool b
private

Definition at line 64 of file Verbose_ostream.h.

Referenced by flush(), put(), set_verbose(), verbose(), and write().

std::ostream* o
private

Definition at line 65 of file Verbose_ostream.h.

Referenced by flush(), out(), put(), and write().


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