QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Tracing Class Reference

#include <tracing.hpp>

+ Inheritance diagram for Tracing:
+ Collaboration diagram for Tracing:

Public Member Functions

void enable ()
 
void disable ()
 
void setStream (std::ostream &stream)
 
bool enabled () const
 
std::ostream & stream ()
 
Integer depth () const
 
void down ()
 
void up ()
 
- Public Member Functions inherited from Singleton< Tracing >
 Singleton (const Singleton &)=delete
 
 Singleton (Singleton &&)=delete
 
Singletonoperator= (const Singleton &)=delete
 
Singletonoperator= (Singleton &&)=delete
 
 ~Singleton ()=default
 

Private Member Functions

 Tracing ()
 

Private Attributes

std::ostream * out_
 
bool enabled_ = false
 
Integer depth_ = 0
 

Friends

class QuantLib::Singleton< Tracing >
 

Additional Inherited Members

- Static Public Member Functions inherited from Singleton< Tracing >
static Tracing & instance ()
 access to the unique instance More...
 
- Protected Member Functions inherited from Singleton< Tracing >
 Singleton ()=default
 

Detailed Description

Definition at line 37 of file tracing.hpp.

Constructor & Destructor Documentation

◆ Tracing()

Tracing ( )
private

Definition at line 29 of file tracing.cpp.

Member Function Documentation

◆ enable()

void enable ( )

Definition at line 42 of file tracing.hpp.

◆ disable()

void disable ( )

Definition at line 49 of file tracing.hpp.

◆ setStream()

void setStream ( std::ostream &  stream)

Definition at line 50 of file tracing.hpp.

+ Here is the call graph for this function:

◆ enabled()

bool enabled ( ) const

Definition at line 51 of file tracing.hpp.

◆ stream()

std::ostream & stream ( )

Definition at line 52 of file tracing.hpp.

+ Here is the caller graph for this function:

◆ depth()

Integer depth ( ) const

Definition at line 53 of file tracing.hpp.

◆ down()

void down ( )

Definition at line 54 of file tracing.hpp.

◆ up()

void up ( )

Definition at line 55 of file tracing.hpp.

Friends And Related Function Documentation

◆ QuantLib::Singleton< Tracing >

friend class QuantLib::Singleton< Tracing >
friend

Definition at line 1 of file tracing.hpp.

Member Data Documentation

◆ out_

std::ostream* out_
private

Definition at line 57 of file tracing.hpp.

◆ enabled_

bool enabled_ = false
private

Definition at line 58 of file tracing.hpp.

◆ depth_

Integer depth_ = 0
private

Definition at line 59 of file tracing.hpp.