Public Member Functions
Aseba::TupleVectorNode Struct Reference

#include <tree.h>

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

List of all members.

Public Member Functions

virtual void addImmediateValue (int value)
virtual void dump (std::wostream &dest, unsigned &indent) const
 Dump this node and the rest of the tree.
virtual NodeexpandToAsebaTree (std::wostream *dump, unsigned int index=0)
 expand to vector[index]
virtual int getImmediateValue (unsigned index) const
 return the n-th vector's element
virtual unsigned getVectorSize () const
 return the children's size, check for equal size, or E_NOVAL if no child
virtual bool isImmediateVector () const
virtual TupleVectorNodeshallowCopy ()
 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.
 TupleVectorNode (const SourcePos &sourcePos)
 Constructor.
 TupleVectorNode (const SourcePos &sourcePos, int value)

Detailed Description

Node for assembling values into an array children[x] is the x-th Node to be assembled

Definition at line 497 of file tree.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 500 of file tree.h.

Aseba::TupleVectorNode::TupleVectorNode ( const SourcePos sourcePos,
int  value 
) [inline]

Definition at line 501 of file tree.h.


Member Function Documentation

virtual void Aseba::TupleVectorNode::addImmediateValue ( int  value) [inline, virtual]

Definition at line 513 of file tree.h.

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

expand to vector[index]

Reimplemented from Aseba::Node.

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

int Aseba::TupleVectorNode::getImmediateValue ( unsigned  index) const [virtual]

return the n-th vector's element

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

unsigned Aseba::TupleVectorNode::getVectorSize ( ) const [virtual]

return the children's size, check for equal size, or E_NOVAL if no child

Reimplemented from Aseba::Node.

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

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

virtual TupleVectorNode* Aseba::TupleVectorNode::shallowCopy ( ) [inline, virtual]

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

Implements Aseba::Node.

Definition at line 502 of file tree.h.

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

Return a string representation of the name of this node.

Implements Aseba::Node.

Definition at line 506 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