X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2FSupport%2FTree.h;h=9e8d5ae7efa7ee109e70aaa4da511ee8124203f5;hb=9fff7e194a2d8aa3abe92efa506b1fbe83583f53;hp=33b0bb7b0392841c97cb6fb5ac16c6ee254aa617;hpb=cee8f9ae67104576b2028125b56e9ba4856a1d66;p=oota-llvm.git diff --git a/include/Support/Tree.h b/include/Support/Tree.h index 33b0bb7b039..9e8d5ae7efa 100644 --- a/include/Support/Tree.h +++ b/include/Support/Tree.h @@ -12,21 +12,21 @@ template class Tree { - vector Children; // This nodes children, if any - ConcreteTreeNode *Parent; // Parent of this node... - Payload Data; // Data held in this node... + std::vector Children; // This nodes children, if any + ConcreteTreeNode *Parent; // Parent of this node... + Payload Data; // Data held in this node... protected: - void setChildren(const vector &children) { + void setChildren(const std::vector &children) { Children = children; } public: inline Tree(ConcreteTreeNode *parent) : Parent(parent) {} - inline Tree(const vector &children, ConcreteTreeNode *par) - : Children(children), Parent(par) {} + inline Tree(const std::vector &children, + ConcreteTreeNode *par) : Children(children), Parent(par) {} - inline Tree(const vector &children, ConcreteTreeNode *par, - const Payload &data) + inline Tree(const std::vector &children, + ConcreteTreeNode *par, const Payload &data) : Children(children), Parent(parent), Data(data) {} // Tree dtor - Free all children