BIE::Node Class Reference

Node class for the tessellation tree. More...

#include <Node.h>

Inheritance diagram for BIE::Node:
Collaboration diagram for BIE::Node:

List of all members.

Public Member Functions

 Node ()
 Null constructor.
 Node (Tile *t, int tileid, int depth, int numchildren)
 Construct a node with some children.
Nodecopytree (int tileidoffset=0)
 Return an allocated copy of the entire tree, with existing tileids offset by the given amount.
int ID ()
 Get tileid.
TileGetTile ()
 Get tile object associated with the node.
void print (ostream &outputstream)
 Print tile boundaries.
NodeFirst ()
 Child node iterator method :returns the first child.
NodeLast ()
 Child node iterator method : returns the last child.
NodeCurrentItem ()
 Child node iterator method : returns the child node the cursor is currently pointing to.
NodeNext ()
 Child node iterator method : Advances the cursor to the next child node, and returns this node.
bool IsDone ()
 Child node iterator method : Returns true when Next() has returned the final child node.
void Reset ()
 Child node iterator method : Resets the cursor to the first child node.

Protected Attributes

vector< Node * > children
 Child nodes.

Friends

class boost::serialization::access


Detailed Description

Node class for the tessellation tree.

There is one of these corresponding to each tile. Node objects are used to describe the tessellation tree, while Tile objects describe the physical properties (e.g. boundaries) of each of the tiles in the tessellation.


Member Function Documentation

Node* BIE::Node::copytree ( int  tileidoffset = 0  ) 

Return an allocated copy of the entire tree, with existing tileids offset by the given amount.

This is used by the Container Tessellation, where tessellations must be copied but given a shifted tileid.

Node* BIE::Node::CurrentItem (  ) 

Child node iterator method : returns the child node the cursor is currently pointing to.

Node* BIE::Node::Next (  ) 

Child node iterator method : Advances the cursor to the next child node, and returns this node.

Returns NULL when called after the final child node is seen.

bool BIE::Node::IsDone (  ) 

Child node iterator method : Returns true when Next() has returned the final child node.


The documentation for this class was generated from the following file:
  • /home/weinberg/src/BIE/include/Node.h

Send suggestions, questions, and feedback to WEINBERG at ASTRO dot UMASS dot EDU.
Documentation generated at Fri Mar 26 00:35:12 2010 by doxygen