Exemple #1
0
void GNode::AddNext(CNode *n)
{
    if(n)
    {
        if(!n->GetGNode())
        {
            new GNode(n);
        }

        AddNext(n->GetGNode());
    }
}
Exemple #2
0
bool CSketchRelinker::Do()
{
	if(m_old_list.size() > 0)
	{
		HeeksObj* new_object = m_old_list.front()->MakeACopy();
		std::list<HeeksObj*> empty_list;
		m_new_lists.push_back(empty_list);
		m_new_lists.back().push_back(new_object);
		m_added_from_old_set.insert(m_old_list.front());
		m_old_front = m_old_list.begin();
		m_new_back = new_object;
		m_new_front = new_object;

		while(AddNext()){}
	}

	return true;
}