22 lines
337 B
C++
22 lines
337 B
C++
|
|
#include "nodes.h"
|
|
#include <vector>
|
|
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()
|
|
{
|
|
}
|