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