LocalScope Class Reference

Scope implementation that allows for variables to be declared. More...

#include <localscope.h>

Inherits Scope.

List of all members.

Public Member Functions

 LocalScope (const Scope::Ptr &contextScope=Ptr())
 LocalScope (Scope *contextScope)

Protected Member Functions

virtual Variable doGet (const Variant &key, bool modifiable) override
 Implementation for get.
virtual Variable doDeclare (const Variant &key, const Variant &initialValue) override
 Implementation for declare.
virtual Ptr doGetScope (const Variant &key) override
 Implementation for getScope.
virtual bool doAssignSubscope (const Variant &key, const Ptr &subscope) override
 Implementation for assignSubscope.
virtual void doRemove (const Variant &key) override
 Implementation for remove.

Detailed Description

Scope implementation that allows for variables to be declared.

The keys can only be strings


Constructor & Destructor Documentation

LocalScope::LocalScope ( const Scope::Ptr contextScope = Ptr())
LocalScope::LocalScope ( Scope contextScope)

Member Function Documentation

virtual bool LocalScope::doAssignSubscope ( const Variant key,
const Ptr subscope 
) [override, protected, virtual]

Implementation for assignSubscope.

Reimplemented from Scope.

virtual Variable LocalScope::doDeclare ( const Variant key,
const Variant initialValue 
) [override, protected, virtual]

Implementation for declare.

Reimplemented from Scope.

virtual Variable LocalScope::doGet ( const Variant key,
bool  modifiable 
) [override, protected, virtual]

Implementation for get.

Reimplemented from Scope.

virtual Ptr LocalScope::doGetScope ( const Variant key) [override, protected, virtual]

Implementation for getScope.

Reimplemented from Scope.

virtual void LocalScope::doRemove ( const Variant key) [override, protected, virtual]

Implementation for remove.

Reimplemented from Scope.


The documentation for this class was generated from the following file: