jtlc/nodes/Node.cc
josh 19dd46d14d created nodes subdir and moved Node.{h,cc} there
git-svn-id: svn://anubis/jtlc/trunk@11 f5bc74b8-7b62-4e90-9214-7121d538519f
2010-01-13 19:38:31 +00:00

23 lines
361 B
C++

#include "Node.h"
#include <vector>
#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);
}
}
Node::~Node()
{
}