Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
KM3NeT_Debug Class Reference

#include <KM3NeT_Debug.h>

Public Member Functions

template<class T >
KM3NeT_Debugoperator<< (const T &s)
 

Static Public Member Functions

static KM3NeT_Debugget ()
 
static void kill ()
 

Private Member Functions

 KM3NeT_Debug ()
 
virtual ~KM3NeT_Debug ()
 

Private Attributes

std::mutex mtx_
 

Static Private Attributes

static KM3NeT_Debugsingleton_ = NULL
 

Detailed Description

Author
fsimeone

Definition at line 17 of file KM3NeT_Debug.h.

Constructor & Destructor Documentation

◆ KM3NeT_Debug()

KM3NeT_Debug::KM3NeT_Debug ( )
private

Definition at line 9 of file KM3NeT_Debug.cc.

10{
11}

◆ ~KM3NeT_Debug()

KM3NeT_Debug::~KM3NeT_Debug ( )
privatevirtual

Definition at line 13 of file KM3NeT_Debug.cc.

14{
15}

Member Function Documentation

◆ get()

static KM3NeT_Debug * KM3NeT_Debug::get ( )
inlinestatic

Definition at line 21 of file KM3NeT_Debug.h.

22 {
23 if (singleton_ == NULL) singleton_ = new KM3NeT_Debug();
24 return singleton_;
25 }
static KM3NeT_Debug * singleton_

◆ kill()

static void KM3NeT_Debug::kill ( )
inlinestatic

Definition at line 27 of file KM3NeT_Debug.h.

28 {
29 if (singleton_ != NULL)
30 {
31 delete singleton_;
32 singleton_ = NULL;
33 }
34 }

◆ operator<<()

template<class T >
KM3NeT_Debug & KM3NeT_Debug::operator<< ( const T & s)
inline

Definition at line 37 of file KM3NeT_Debug.h.

38 {
39 std::lock_guard<std::mutex> lock(mtx_);
40 std::cerr<<s;
41 return *this;
42 }
std::mutex mtx_

Member Data Documentation

◆ singleton_

KM3NeT_Debug * KM3NeT_Debug::singleton_ = NULL
staticprivate
Author
fsimeone

Definition at line 49 of file KM3NeT_Debug.h.

◆ mtx_

std::mutex KM3NeT_Debug::mtx_
private

Definition at line 50 of file KM3NeT_Debug.h.


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