24     typedef std::shared_ptr<VariableSetPimpl> 
Ptr;
 
   25     typedef std::map<std::string, std::shared_ptr<StackItem> > 
MapType;
 
   41     VariableSetPimpl::MapType::const_iterator found = pimpl->map.find(name);
 
   42     if(pimpl->map.end() == found) {
 
   43       return std::shared_ptr<StackItem>();
 
   50     pimpl->map[name] = value;
 
void clear()
Clear all set variables.
 
VariableSet()
Construct with an empty variable set.
 
void set(const std::string &name, std::shared_ptr< StackItem > value)
Set the value of name, overriding existing values.
 
std::shared_ptr< StackItem > get(const std::string &name) const
Get the value of name, if any.
 
std::map< std::string, std::shared_ptr< StackItem > > MapType
 
MapType map
Map of name to value.
 
std::shared_ptr< VariableSetPimpl > Ptr
 
Container of Calculator resources.