fart/parser/nodes.cc
Josh Holtrop 9849ba06b5 adding tree node classes, updated addChild() and added addChildren() to Node
git-svn-id: svn://anubis/fart/trunk@107 7f9b0f55-74a9-4bce-be96-3c2cd072584d
2009-02-16 17:29:57 +00:00

15 lines
277 B
C++

#include "nodes.h"
#include <vector>
using namespace std;
void Node::addChildren(refptr<Node> other)
{
for (typeof(other.m_children)::const_iterator it = other.m_children.begin();
it != other.m_children.end();
it++)
{
addChild(*it);
}
}