CompositeScope Class Reference

Scope implementation that combines other scopes. More...

#include <compositescope.h>

Inherits Scope.

List of all members.

Public Member Functions

void addScope (Scope *scope)
 Add a scope and owns the memory.
void addScope (const Scope::Ptr &scope)
void addSubscope (const std::string &key, const Scope::Ptr &scope)
void addSubscope (const std::string &key, Scope *scope)

Protected Member Functions

Variable doGet (const Variant &key, bool modifiable) override
 Implementation for get.
Ptr doGetScope (const Variant &key) override
 Implementation for getScope.
Variable doDeclare (const Variant &key, const Variant &initialValue) override
 Implementation for declare.

Detailed Description

Scope implementation that combines other scopes.

When a request is made the scopes added are enqueried consecutively in the order that they have been added until a query is successful in which case the response of the scope is transferred.


Member Function Documentation

void CompositeScope::addScope ( Scope scope)

Add a scope and owns the memory.

void CompositeScope::addScope ( const Scope::Ptr scope)
void CompositeScope::addSubscope ( const std::string &  key,
const Scope::Ptr scope 
)
void CompositeScope::addSubscope ( const std::string &  key,
Scope scope 
)
Variable CompositeScope::doDeclare ( const Variant key,
const Variant initialValue 
) [override, protected, virtual]

Implementation for declare.

Reimplemented from Scope.

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

Implementation for get.

Reimplemented from Scope.

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

Implementation for getScope.

Reimplemented from Scope.


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