You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 lines
456 B

#include "Node.h"
Node::Node(NodeType type) {
nodeType = type;
}
Node::~Node() {
}
std::vector<std::string> Node::getSourceList() {
std::vector<std::string> returnVec;
for (std::shared_ptr<Node>& child : children) {
auto childSrcs = std::move(child->getSourceList());
returnVec.insert(returnVec.end(),
childSrcs.begin(),
childSrcs.end());
}
return returnVec;
}