![]() |
Home | Libraries | People | FAQ | More |
boost::stacktrack::enter_scope — enter_scope objects create entry and exit events An entry event is created when the constructor is called, and an exit event is created by the destructor
#include <boost/stacktrack/entry.hpp> using namespace boost::stacktrack; class enter_scope { public: // construct/copy/destruct enter_scope(scope_base &, enter_outer_scope &); enter_scope(outer_scope &); ~enter_scope(); // public member functions const enter_outer_scope & root() const; const scope_base & base() const; // protected member functions enter_outer_scope & outer_root() ; scope_base & root_scope() ; scope_base * _base; enter_outer_scope * _root; };
enter_scope(scope_base & scope, enter_outer_scope & parent_entry);
Parameters
active entry for locally available scope
parent scope
enter_scope(outer_scope & scope);
for use in Main and Nested scopes
~enter_scope();
const enter_outer_scope & root() const;
const scope_base & base() const;
enter_outer_scope & outer_root() ;
Returns: active root entry
scope_base & root_scope() ;
Returns: scope of active root entry
| Copyright © 2005 James Fowler |