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

PrevUpHomeNext

Class scopeloc_base

boost::stacktrack::scopeloc_base — common base class for all Scope types

Synopsis

#include <boost/stacktrack/scope.hpp>

using namespace boost::stacktrack;

class scopeloc_base {
public:
  // construct/copy/destruct
  scopeloc_base(SCOPE_STYLE, scopecstr &, const sourceloc &, scope_base *);
  scopeloc_base();
  scopeloc_base(const scope_base &);
  ~scopeloc_base();

  // public member functions
  scopecstr purpose() const;
  const scope_base * parentscope() const;
  const sourceloc & location() const;
  scope_index index() const;
  SCOPE_STYLE style() const;
  bool isWritten() const;
  long writeCount() const;

  // protected member functions
  scope_base * parentscope() ;

  // private member functions
};

Description

instances live as static local data inside function bodies, and are used to initialize scope Entry instances

scopeloc_base construct/copy/destruct

  1. scopeloc_base(SCOPE_STYLE style, scopecstr & purpose, 
                  const sourceloc & location, scope_base * _parent);
  2. scopeloc_base();
  3. scopeloc_base(const scope_base & );
  4. ~scopeloc_base();

scopeloc_base public member functions

  1. scopecstr purpose() const;
  2. const scope_base * parentscope() const;
  3. const sourceloc & location() const;
  4. scope_index index() const;
  5. SCOPE_STYLE style() const;
  6. bool isWritten() const;
  7. long writeCount() const;

scopeloc_base protected member functions

  1. scope_base * parentscope() ;

    Returns: pointer to parent scope

scopeloc_base private member functions

    Copyright © 2005 James Fowler

    PrevUpHomeNext