Zen
A cross-platform functional programming language

MethodTypeSpec Class Reference

Base class for all user defined methods such as functions, routines, grammars, etc. More...

#include <Ast.hpp>

Inheritance diagram for MethodTypeSpec:
UserDefinedTypeSpec ChildTypeSpec TypeSpec Node FunctionDef

List of all members.

Public Member Functions

const QualifiedTypegetOutType () const
 Returns the out-params for the method.
ScopegetInType ()
 Returns the in-params for the method.
const ScopegetInType () 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

Detailed Description

Base class for all user defined methods such as functions, routines, grammars, etc.

Todo:
Merge with FunctionDef below

Constructor & Destructor Documentation

MethodTypeSpec ( const AccessType::T accessType,
const QualifiedType out,
const z::string name,
Ast::Scope in,
const NativeType ntype 
) [inline, protected]

Default constructor.

Parameters:
accessTypeThe AccessType for this UDT.
outThe out-params of the method
nameName of the UDT
inThe scope holding the in-params for this method
ntypeThe NativeType of this UDT.

Member Function Documentation

Scope& getInType ( ) [inline]

Returns the in-params for the method.

Returns:
A reference to the in-params for the method
const Scope& getInType ( ) const [inline]

Returns a const-ref to the in-params for the method.

Returns:
A const-reference to the in-params for the method
const bool& getIsTuple ( ) const [inline]

Returns true if out-param for this method is a tuple.

Returns:
True if out-param for this method is a tuple
const QualifiedType& getOutType ( ) const [inline]

Returns the out-params for the method.

Returns:
A reference to the out-params for the method
void setIsTuple ( const bool &  val) [inline]

Set true if out-param for this method is a tuple.

Parameters:
valTrue if out-param for this method is a tuple

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines