![]() |
Zen
A cross-platform functional programming language
|
Base class for all user defined methods such as functions, routines, grammars, etc. More...
#include <Ast.hpp>
Public Member Functions | |
| const QualifiedType & | getOutType () const |
| Returns the out-params for the method. | |
| Scope & | getInType () |
| Returns the in-params for the method. | |
| const Scope & | getInType () const |
| Returns a const-ref to the in-params for the method. | |
| void | setIsTuple (const bool &val) |
| Set true if out-param for this method is a tuple. | |
| const bool & | getIsTuple () const |
| Returns true if out-param for this method is a tuple. | |
Protected Member Functions | |
| MethodTypeSpec (const AccessType::T &accessType, const QualifiedType &out, const z::string &name, Ast::Scope &in, const NativeType &ntype) | |
| Default constructor. | |
Private Attributes | |
| const QualifiedType & | _out |
| out-param for this method | |
| Scope & | _in |
| in-param for this method | |
| bool | _isTuple |
| true if out-params is a tuple | |
Base class for all user defined methods such as functions, routines, grammars, etc.
| MethodTypeSpec | ( | const AccessType::T & | accessType, |
| const QualifiedType & | out, | ||
| const z::string & | name, | ||
| Ast::Scope & | in, | ||
| const NativeType & | ntype | ||
| ) | [inline, protected] |
Default constructor.
| accessType | The AccessType for this UDT. |
| out | The out-params of the method |
| name | Name of the UDT |
| in | The scope holding the in-params for this method |
| ntype | The NativeType of this UDT. |
| Scope& getInType | ( | ) | [inline] |
Returns the in-params for the method.
| const Scope& getInType | ( | ) | const [inline] |
Returns a const-ref to the in-params for the method.
| const bool& getIsTuple | ( | ) | const [inline] |
Returns true if out-param for this method is a tuple.
| const QualifiedType& getOutType | ( | ) | const [inline] |
Returns the out-params for the method.
| void setIsTuple | ( | const bool & | val | ) | [inline] |
Set true if out-param for this method is a tuple.
| val | True if out-param for this method is a tuple |