test: added GraphFilter and GraphFilterConductor tests

This commit is contained in:
Eberhard Graether
2014-09-01 12:15:17 +02:00
parent aee0b7c337
commit 5c89e49ff0
29 changed files with 554 additions and 48 deletions
+22
View File
@@ -14,6 +14,28 @@ Graph::~Graph()
m_nodes.clear();
}
Graph& Graph::operator=(const Graph& other)
{
if (&other != this)
{
other.forEachNode(
[this](Node* node)
{
addNodeAsPlainCopy(node);
}
);
other.forEachEdge(
[this](Edge* edge)
{
addEdgeAsPlainCopy(edge);
}
);
}
return *this;
}
void Graph::copy(const FilterableGraph* other)
{
clear();