jtlc/nodes/Node.cc
josh 3efad6cc0f added a default Node::process() routine which simply recurses
git-svn-id: svn://anubis/jtlc/trunk@16 f5bc74b8-7b62-4e90-9214-7121d538519f
2010-01-13 21:17:27 +00:00

33 lines
559 B
C++

#include <vector>
#include "Node.h"
#include "util/refptr.h"
using namespace std;
void Node::addChildren(refptr<Node> other)
{
if (other.isNull())
return;
for (vector< refptr<Node> >::const_iterator it = other->m_children.begin();
it != other->m_children.end();
it++)
{
addChild(*it);
}
}
void Node::process(FILE * out)
{
for (vector< refptr<Node> >::const_iterator it = m_children.begin();
it != m_children.end();
it++)
{
(*it)->process(out);
}
}
Node::~Node()
{
}