#include "Route.h" using namespace Core; Route::Route() { } Route::Route(const Route &other) : links_store(other.links_store) {} bool Route::isValid() const { return links_store.size() > 0; } QStringList Route::links() const { return links_store; } Route Route::operator |(const QString &node) const { Route exlink(*this); exlink.links_store.append(node); return exlink; } bool Route::operator==(const Route &other) const { if(links_store.size() == other.links_store.size()){ for(auto idx=0; idx &list) { Route v; v.links_store.append(list); return v; }