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

#include <tree.h>

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

List of all members.

Public Member Functions

virtual void checkVectorSize () const
 Check the consistency in vectors' size.
virtual void emit (PreLinkBytecode &bytecodes) const
 Generate bytecode.
 FoldedIfWhenNode (const SourcePos &sourcePos)
 Constructor.
virtual unsigned getStackDepth () const
 Return the stack depth requirement for this node and its children.
virtual Nodeoptimize (std::wostream *dump)
 Optimize this node, return the optimized node.
virtual FoldedIfWhenNodeshallowCopy ()
 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.

Public Attributes

bool edgeSensitive
 if true, true block is triggered only if previous comparison was false ("when" block). If false, true block is triggered every time comparison is true
unsigned endLine
 line of end keyword
AsebaBinaryOperator op
 operator

Detailed Description

Node for L"if" and L"when" with operator folded inside. children[0] is left part of expression children[1] is right part of expression children[2] is true block children[3] is false block

Definition at line 171 of file tree.h.


Constructor & Destructor Documentation

Aseba::FoldedIfWhenNode::FoldedIfWhenNode ( const SourcePos sourcePos) [inline]

Constructor.

Definition at line 178 of file tree.h.


Member Function Documentation

void Aseba::FoldedIfWhenNode::checkVectorSize ( ) const [virtual]

Check the consistency in vectors' size.

Reimplemented from Aseba::Node.

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

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

Implements Aseba::Node.

Definition at line 179 of file tree.h.

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

Return a string representation of the name of this node.

Implements Aseba::Node.

Definition at line 186 of file tree.h.


Member Data Documentation

if true, true block is triggered only if previous comparison was false ("when" block). If false, true block is triggered every time comparison is true

Definition at line 174 of file tree.h.

line of end keyword

Definition at line 175 of file tree.h.

operator

Definition at line 173 of file tree.h.


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


aseba
Author(s): Stéphane Magnenat
autogenerated on Sun Oct 5 2014 23:46:39