A cross-platform functional programming language

UnaryOpExpr Class Reference

Base class for all unary expression AST nodes. More...

#include <Ast.hpp>

Inheritance diagram for UnaryOpExpr:
Expr Node PostfixOpExpr PrefixOpExpr

List of all members.

Public Member Functions

const z::stringgetOp () const
 Returns the operator of the expression.
const ExprgetExpr () const
 Returns the operand expression.

Protected Member Functions

 UnaryOpExpr (const QualifiedType &type, const z::string &op, const Expr &expr)
 Default constructor.

Private Attributes

const z::string _op
 The operator.
const Expr_expr
 The operand expression.

Detailed Description

Base class for all unary expression AST nodes.

Constructor & Destructor Documentation

UnaryOpExpr ( const QualifiedType type,
const z::string op,
const Expr expr 
) [inline, protected]

Default constructor.

typeExpression type
opThe operator of the expression
exprThe operand expression

Member Function Documentation

const Expr& getExpr ( ) const [inline]

Returns the operand expression.

The operand expression
const z::string& getOp ( ) const [inline]

Returns the operator of the expression.

The operator

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