Zen
A cross-platform functional programming language
|
Concrete AST Node representing the list of variables shared across a continuation. More...
#include <Ast.hpp>
Public Member Functions | |
SharedDef (const AccessType::T &accessType, const z::string &name, const NativeType &ntype, const VariableDefMap &defList) | |
Default constructor. | |
const VariableDefMap & | getDefList () const |
Returns the list of values in the shared list. | |
Private Member Functions | |
virtual void | visit (TypeSpec::Visitor &visitor) const |
Visitor pattern implementation. | |
virtual const Ast::VariableDef * | hasMember (const z::string &name) const |
Checks if shared variable exists. | |
Private Attributes | |
const VariableDefMap & | _defList |
Shared member list node. |
Concrete AST Node representing the list of variables shared across a continuation.
SharedDef | ( | const AccessType::T & | accessType, |
const z::string & | name, | ||
const NativeType & | ntype, | ||
const VariableDefMap & | defList | ||
) | [inline] |
Default constructor.
accessType | The AccessType for this UDT. |
name | Name of the UDT |
ntype | The NativeType of this UDT. |
defList | List of shared variables for this type. |
const VariableDefMap& getDefList | ( | ) | const [inline] |
Returns the list of values in the shared list.
const Ast::VariableDef * hasMember | ( | const z::string & | name | ) | const [private, virtual] |
Checks if shared variable exists.
name | Name of shared variable to be checked |
Reimplemented from TypeSpec.
void visit | ( | TypeSpec::Visitor & | visitor | ) | const [private, virtual] |