PH Logo
Logo intepreter modeled after UCB Logo.
Public Member Functions
phlogo::Scope Class Reference

#include <Scope.h>

List of all members.

Public Member Functions

 Scope (World *world)
void setThing (const std::string &name, const std::string &value, bool local)
void setThing (const std::string &name, pThing value, bool local)
pThing getThing (const std::string &name)
void removeThing (const std::string &name)
void removeThings ()
std::map< std::string, pThing >
::const_iterator 
begin ()
std::map< std::string, pThing >
::const_iterator 
end ()

Detailed Description

An execution scope.

Definition at line 25 of file Scope.h.


Member Function Documentation

pThing phlogo::Scope::getThing ( const std::string &  name)

Lookup a thing by walking this scope upwards to the global scope.

void phlogo::Scope::removeThing ( const std::string &  name)

Remove the thing.

Definition at line 83 of file Scope.cpp.

void phlogo::Scope::setThing ( const std::string &  name,
const std::string &  value,
bool  local 
)

Set things into the current scope.

Definition at line 37 of file Scope.cpp.


The documentation for this class was generated from the following files:
 All Classes Functions