18 lines
318 B
C++
18 lines
318 B
C++
|
|
#include "nodes.h"
|
|
#include <vector>
|
|
using namespace std;
|
|
|
|
void Node::addChildren(refptr<Node> other)
|
|
{
|
|
if (other.isNull())
|
|
return;
|
|
|
|
for (typeof(other.m_children)::const_iterator it = other.m_children.begin();
|
|
it != other.m_children.end();
|
|
it++)
|
|
{
|
|
addChild(*it);
|
|
}
|
|
}
|