Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
backward::Printer Class Reference

#include <backward.hpp>

Public Member Functions

template<typename IT >
FILE * print (IT begin, IT end, FILE *fp=stderr, size_t thread_id=0)
 
template<typename IT >
std::ostream & print (IT begin, IT end, std::ostream &os, size_t thread_id=0)
 
template<typename ST >
FILE * print (ST &st, FILE *fp=stderr)
 
template<typename ST >
std::ostream & print (ST &st, std::ostream &os)
 
 Printer ()
 
const TraceResolverresolver () const
 

Public Attributes

bool address
 
ColorMode::type color_mode
 
int inliner_context_size
 
bool object
 
bool snippet
 
int trace_context_size
 

Private Member Functions

void print_header (std::ostream &os, size_t thread_id)
 
void print_snippet (std::ostream &os, const char *indent, const ResolvedTrace::SourceLoc &source_loc, Colorize &colorize, Color::type color_code, int context_size)
 
void print_source_loc (std::ostream &os, const char *indent, const ResolvedTrace::SourceLoc &source_loc, void *addr=nullptr)
 
template<typename IT >
void print_stacktrace (IT begin, IT end, std::ostream &os, size_t thread_id, Colorize &colorize)
 
template<typename ST >
void print_stacktrace (ST &st, std::ostream &os, Colorize &colorize)
 
void print_trace (std::ostream &os, const ResolvedTrace &trace, Colorize &colorize)
 

Private Attributes

TraceResolver _resolver
 
SnippetFactory _snippets
 

Detailed Description

Definition at line 3691 of file backward.hpp.

Constructor & Destructor Documentation

◆ Printer()

backward::Printer::Printer ( )
inline

Definition at line 3700 of file backward.hpp.

Member Function Documentation

◆ print() [1/4]

template<typename IT >
FILE* backward::Printer::print ( IT  begin,
IT  end,
FILE *  fp = stderr,
size_t  thread_id = 0 
)
inline

Definition at line 3721 of file backward.hpp.

◆ print() [2/4]

template<typename IT >
std::ostream& backward::Printer::print ( IT  begin,
IT  end,
std::ostream &  os,
size_t  thread_id = 0 
)
inline

Definition at line 3731 of file backward.hpp.

◆ print() [3/4]

template<typename ST >
FILE* backward::Printer::print ( ST &  st,
FILE *  fp = stderr 
)
inline

Definition at line 3704 of file backward.hpp.

◆ print() [4/4]

template<typename ST >
std::ostream& backward::Printer::print ( ST &  st,
std::ostream &  os 
)
inline

Definition at line 3713 of file backward.hpp.

◆ print_header()

void backward::Printer::print_header ( std::ostream &  os,
size_t  thread_id 
)
inlineprivate

Definition at line 3763 of file backward.hpp.

◆ print_snippet()

void backward::Printer::print_snippet ( std::ostream &  os,
const char *  indent,
const ResolvedTrace::SourceLoc source_loc,
Colorize colorize,
Color::type  color_code,
int  context_size 
)
inlineprivate

Definition at line 3809 of file backward.hpp.

◆ print_source_loc()

void backward::Printer::print_source_loc ( std::ostream &  os,
const char *  indent,
const ResolvedTrace::SourceLoc source_loc,
void *  addr = nullptr 
)
inlineprivate

Definition at line 3833 of file backward.hpp.

◆ print_stacktrace() [1/2]

template<typename IT >
void backward::Printer::print_stacktrace ( IT  begin,
IT  end,
std::ostream &  os,
size_t  thread_id,
Colorize colorize 
)
inlineprivate

Definition at line 3755 of file backward.hpp.

◆ print_stacktrace() [2/2]

template<typename ST >
void backward::Printer::print_stacktrace ( ST &  st,
std::ostream &  os,
Colorize colorize 
)
inlineprivate

Definition at line 3746 of file backward.hpp.

◆ print_trace()

void backward::Printer::print_trace ( std::ostream &  os,
const ResolvedTrace trace,
Colorize colorize 
)
inlineprivate

Definition at line 3771 of file backward.hpp.

◆ resolver()

const TraceResolver& backward::Printer::resolver ( ) const
inline

Definition at line 3739 of file backward.hpp.

Member Data Documentation

◆ _resolver

TraceResolver backward::Printer::_resolver
private

Definition at line 3742 of file backward.hpp.

◆ _snippets

SnippetFactory backward::Printer::_snippets
private

Definition at line 3743 of file backward.hpp.

◆ address

bool backward::Printer::address

Definition at line 3695 of file backward.hpp.

◆ color_mode

ColorMode::type backward::Printer::color_mode

Definition at line 3694 of file backward.hpp.

◆ inliner_context_size

int backward::Printer::inliner_context_size

Definition at line 3697 of file backward.hpp.

◆ object

bool backward::Printer::object

Definition at line 3696 of file backward.hpp.

◆ snippet

bool backward::Printer::snippet

Definition at line 3693 of file backward.hpp.

◆ trace_context_size

int backward::Printer::trace_context_size

Definition at line 3698 of file backward.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:51