LSSTApplications  20.0.0
LSSTDataManagementBasePackage
Public Member Functions | Static Public Member Functions | List of all members
lsst::utils::Backtrace Class Referencefinal

Singleton, enables automatic backtraces on the following signals: More...

#include <Backtrace.h>

Public Member Functions

 Backtrace (Backtrace const &)=delete
 
 Backtrace (Backtrace &&)=delete
 
Backtraceoperator= (Backtrace const &)=delete
 
Backtraceoperator= (Backtrace &&)=delete
 
bool const isEnabled () const noexcept
 

Static Public Member Functions

static Backtraceget () noexcept
 Get a reference to the singleton. More...
 

Detailed Description

Singleton, enables automatic backtraces on the following signals:

Note
Uses low level malloc and fprintf since higher level constructs may not be available when a signal is received.

Definition at line 42 of file Backtrace.h.

Constructor & Destructor Documentation

◆ Backtrace() [1/2]

lsst::utils::Backtrace::Backtrace ( Backtrace const &  )
delete

◆ Backtrace() [2/2]

lsst::utils::Backtrace::Backtrace ( Backtrace &&  )
delete

Member Function Documentation

◆ get()

static Backtrace& lsst::utils::Backtrace::get ( )
inlinestaticnoexcept

Get a reference to the singleton.

Definition at line 51 of file Backtrace.h.

51  {
52  static Backtrace st;
53  return st;
54  }

◆ isEnabled()

bool const lsst::utils::Backtrace::isEnabled ( ) const
inlinenoexcept

Definition at line 56 of file Backtrace.h.

56 { return enabled; }

◆ operator=() [1/2]

Backtrace& lsst::utils::Backtrace::operator= ( Backtrace &&  )
delete

◆ operator=() [2/2]

Backtrace& lsst::utils::Backtrace::operator= ( Backtrace const &  )
delete

The documentation for this class was generated from the following files:
lsst::utils::Backtrace::Backtrace
Backtrace(Backtrace const &)=delete