Modules | Files | Inheritance Tree | Inheritance Graph | Name Index | Config
namespace Synopsis::Parser::C++::AST
class Scope
Files: Synopsis/Parser/C++/syn/ast.hh
Scope-inheritance Scopes/Synopsis/Parser/C++/AST/Namespace.html Scopes/Synopsis/Parser/C++/AST/Class.html Scopes/Synopsis/Parser/C++/AST/Declaration.html Scopes/Synopsis/Parser/C++/FakeGC/cleanup.html

Base class for scopes with contained declarations. Each scope has its own Dictionary of names so far accumulated for this scope. Each scope also as a complete vector of scopes where name lookup is to proceed if unsuccessful in this scope. Name lookup is not recursive.


Public Member functions Summary:
 constructorScope(SourceFile* file, int line, const std::string& type, const ScopedName& name)
Constructor [Source]
virtual destructor~Scope()
Destructor. [Source]
virtual voidaccept(Visitor*)
Accepts the given visitor [Source]
const Declaration::vector&declarations()
Constant version of declarations() [Source]
Declaration::vector&declarations()
Returns the vector of declarations. [Source]

Private Data members Summary:
Declaration::vectorm_declarations
The vector of contained declarations [Source]

Public Typedefs Inherited from Declaration
vector

Public Member functions Inherited from Declaration
name, name, file, set_file, line, type, set_type, access, set_access, comments, comments, declared, declared

Public Data members Inherited from FakeGC::cleanup
cleanup_next

Public Member function Details:
virtual destructor ~Scope()

Destructor. Recursively destroys contained declarations


Declaration::vector& declarations()

Returns the vector of declarations. The vector returned is the private member vector of this Scope, so modifications will affect the Scope.