boost.png (6897 bytes) Home Libraries People FAQ More

PrevUpHomeNext

Class enter_scope

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

Synopsis

#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;
};

Description

enter_scope construct/copy/destruct

  1. enter_scope(scope_base & scope, enter_outer_scope & parent_entry);

    Parameters

    parent_entry

    active entry for locally available scope

    scope

    parent scope

  2. enter_scope(outer_scope & scope);

    for use in Main and Nested scopes

  3. ~enter_scope();

enter_scope public member functions

  1. const enter_outer_scope & root() const;
  2. const scope_base & base() const;

enter_scope protected member functions

  1. enter_outer_scope & outer_root() ;

    Returns: active root entry

  2. scope_base & root_scope() ;

    Returns: scope of active root entry

Copyright © 2005 James Fowler

PrevUpHomeNext