![]() |
Home | Libraries | People | FAQ | More |
boost::stacktrack::scopeloc_base — common base class for all Scope types
#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 };
instances live as static local data inside function bodies, and are used to initialize scope Entry instances
scopeloc_base(SCOPE_STYLE style, scopecstr & purpose, const sourceloc & location, scope_base * _parent);
scopeloc_base();
scopeloc_base(const scope_base & );
~scopeloc_base();
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;
scope_base * parentscope() ;
Returns: pointer to parent scope
| Copyright © 2005 James Fowler |