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 ST >
FILE * print (ST &st, FILE *os=stderr)
 
template<typename IT >
FILE * print (IT begin, IT end, FILE *os=stderr, size_t thread_id=0)
 
 Printer ()
 

Public Attributes

bool address
 
bool color
 
int inliner_context_size
 
bool object
 
bool snippet
 
int trace_context_size
 

Private Member Functions

void print_header (FILE *os, unsigned thread_id)
 
void print_snippet (FILE *os, const char *indent, const ResolvedTrace::SourceLoc &source_loc, Colorize &colorize, Color::type color_code, int context_size)
 
void print_source_loc (FILE *os, const char *indent, const ResolvedTrace::SourceLoc &source_loc, void *addr=0)
 
void print_trace (FILE *os, const ResolvedTrace &trace, Colorize &colorize)
 

Private Attributes

TraceResolver _resolver
 
SnippetFactory _snippets
 

Detailed Description

Definition at line 1726 of file backward.hpp.

Constructor & Destructor Documentation

backward::Printer::Printer ( )
inline

Definition at line 1735 of file backward.hpp.

Member Function Documentation

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

Definition at line 1745 of file backward.hpp.

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

Definition at line 1759 of file backward.hpp.

void backward::Printer::print_header ( FILE *  os,
unsigned  thread_id 
)
inlineprivate

Definition at line 1774 of file backward.hpp.

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

Definition at line 1822 of file backward.hpp.

void backward::Printer::print_source_loc ( FILE *  os,
const char *  indent,
const ResolvedTrace::SourceLoc source_loc,
void *  addr = 0 
)
inlineprivate

Definition at line 1848 of file backward.hpp.

void backward::Printer::print_trace ( FILE *  os,
const ResolvedTrace trace,
Colorize colorize 
)
inlineprivate

Definition at line 1783 of file backward.hpp.

Member Data Documentation

TraceResolver backward::Printer::_resolver
private

Definition at line 1771 of file backward.hpp.

SnippetFactory backward::Printer::_snippets
private

Definition at line 1772 of file backward.hpp.

bool backward::Printer::address

Definition at line 1730 of file backward.hpp.

bool backward::Printer::color

Definition at line 1729 of file backward.hpp.

int backward::Printer::inliner_context_size

Definition at line 1732 of file backward.hpp.

bool backward::Printer::object

Definition at line 1731 of file backward.hpp.

bool backward::Printer::snippet

Definition at line 1728 of file backward.hpp.

int backward::Printer::trace_context_size

Definition at line 1733 of file backward.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:19