Zen
A cross-platform functional programming language
|
This node stores a mapping between a variable and the variable itself. More...
#include <Ast.hpp>
Public Member Functions | |
VariableDefMap () | |
Default constructor. | |
const Ast::VariableDef * | hasDef (const z::string &name) const |
Checks if a VariableDef exists in the map. | |
const Ast::VariableDef & | addDef (const Ast::VariableDef &child) |
Adds a VariableDef to the map. | |
void | appendList (const VariableDefMap &src) |
Appends a VariableDef map to the current list. | |
Private Types | |
typedef z::dict< z::string, const VariableDef * > | DefMap |
The map type. | |
Private Attributes | |
DefMap | _defMap |
The VariableDef map managed by this class. |
This node stores a mapping between a variable and the variable itself.
The base class stores the list itself.
const Ast::VariableDef& addDef | ( | const Ast::VariableDef & | child | ) | [inline] |
Adds a VariableDef to the map.
child | VariableDef to add |
Reimplemented from VariableDefListBase.
void appendList | ( | const VariableDefMap & | src | ) | [inline] |
Appends a VariableDef map to the current list.
src | The list to be appended |
const Ast::VariableDef* hasDef | ( | const z::string & | name | ) | const [inline] |
Checks if a VariableDef exists in the map.
name | The item to be checked |