![]() |
Zen
A cross-platform functional programming language
|
Concrete AST Node representing the out-parameters of a function which returns a set of values (a tuple) More...
#include <Ast.hpp>
Public Member Functions | |
| OutParam (const AccessType::T &accessType, const z::string &name, const NativeType &ntype, const VariableDefMap &defList, const bool &isTuple) | |
| Default constructor. | |
| const VariableDefMap & | getDefList () const |
| Returns the list of values in the tuple. | |
| const bool & | getIsTuple () const |
| Checks if it is a single value or a tuple. | |
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 tuple member exists. | |
Private Attributes | |
| const VariableDefMap & | _defList |
| Tuple member list node. | |
| const bool | _isTuple |
| True if this is a tuple, false if it is a single value. | |
Concrete AST Node representing the out-parameters of a function which returns a set of values (a tuple)
| OutParam | ( | const AccessType::T & | accessType, |
| const z::string & | name, | ||
| const NativeType & | ntype, | ||
| const VariableDefMap & | defList, | ||
| const bool & | isTuple | ||
| ) | [inline] |
Default constructor.
| accessType | The AccessType for this UDT. |
| name | Name of the UDT |
| ntype | The NativeType of this UDT. |
| defList | List of enumeration members for this type. |
| isTuple | True if this out-param of a function is a single value or a tuple |
| const VariableDefMap& getDefList | ( | ) | const [inline] |
Returns the list of values in the tuple.
| const bool& getIsTuple | ( | ) | const [inline] |
Checks if it is a single value or a tuple.
| const Ast::VariableDef * hasMember | ( | const z::string & | name | ) | const [private, virtual] |
Checks if tuple member exists.
| name | Name of member to be checked |
Reimplemented from TypeSpec.
| void visit | ( | TypeSpec::Visitor & | visitor | ) | const [private, virtual] |