libcsdbg  1.28
C++ exception (and generic) stack trace debug library
csdbg::tracer::tracer ( const tracer src)
protected

Object copy constructor.

Parameters
[in]srcthe source object
Exceptions
std::bad_alloc

Definition at line 486 of file tracer.cpp.

References csdbg::process::clone(), m_filters, m_plugins, and m_proc.

487  :
488 m_proc(NULL)
489 #ifdef CSDBG_WITH_PLUGIN
490 ,m_plugins(NULL)
491 #endif
492 #ifdef CSDBG_WITH_FILTER
493 ,m_filters(NULL)
494 #endif
495 {
496 #ifdef CSDBG_WITH_PLUGIN
497  m_plugins = src.m_plugins->clone();
498 #endif
499 #ifdef CSDBG_WITH_FILTER
500  m_filters = new chain<filter>;
501 #endif
502 
503  m_proc = src.m_proc->clone();
504 }
505 
506 catch (...) {
507  destroy();
508 }
virtual tracer & destroy()
Release object resources.
Definition: tracer.cpp:561
chain< plugin > * m_plugins
Instrumentation plugins.
Definition: tracer.hpp:48
process * m_proc
Process handle.
Definition: tracer.hpp:45
virtual process * clone() const
Object virtual copy constructor.
Definition: process.cpp:147
chain< filter > * m_filters
Instrumentation filters.
Definition: tracer.hpp:51

+ Here is the call graph for this function: