Public Member Functions | Public Attributes
Aseba::UnaryArithmeticNode Struct Reference

#include <tree.h>

Inheritance diagram for Aseba::UnaryArithmeticNode:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void emit (PreLinkBytecode &bytecodes) const
 Generate bytecode.
virtual NodeexpandToAsebaTree (std::wostream *dump, unsigned int index=0)
 expand to (op)left[index]
virtual Nodeoptimize (std::wostream *dump)
 Optimize this node, return the optimized node.
virtual UnaryArithmeticNodeshallowCopy ()
 Return a shallow copy of the object (children point to the same objects)
virtual std::wstring toNodeName () const
 Return a string representation of the name of this node.
virtual std::wstring toWString () const
 Return a string representation of this node.
virtual ReturnType typeCheck () const
 Typecheck this node, throw an exception if there is any type violation.
 UnaryArithmeticNode (const SourcePos &sourcePos)
 Constructor.
 UnaryArithmeticNode (const SourcePos &sourcePos, AsebaUnaryOperator op, Node *child)
 Constructor.

Public Attributes

AsebaUnaryOperator op
 operator

Detailed Description

Node for unary arithmetic children[0] is the expression to negate

Definition at line 322 of file tree.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 327 of file tree.h.


Member Function Documentation

Node * Aseba::UnaryArithmeticNode::expandToAsebaTree ( std::wostream *  dump,
unsigned int  index = 0 
) [virtual]

expand to (op)left[index]

Reimplemented from Aseba::Node.

Definition at line 78 of file tree-expand.cpp.

Return a shallow copy of the object (children point to the same objects)

Implements Aseba::Node.

Definition at line 329 of file tree.h.

virtual std::wstring Aseba::UnaryArithmeticNode::toNodeName ( ) const [inline, virtual]

Return a string representation of the name of this node.

Implements Aseba::Node.

Definition at line 336 of file tree.h.


Member Data Documentation

operator

Definition at line 324 of file tree.h.


The documentation for this struct was generated from the following files:


aseba
Author(s): Stéphane Magnenat
autogenerated on Thu Jan 2 2014 11:17:18