#ifndef AST_BRANCH_H #define AST_BRANCH_H #include "astnode.h" #include class AstBranch : public AstNode { friend Bu::Formatter &operator<<( Bu::Formatter &f, const AstBranch &b ); public: AstBranch( Type eType ); virtual ~AstBranch(); AstNode *addNode( AstNode *pNode ); AstBranch *getParent() const { return pParent; } typedef Bu::List NodeList; const NodeList &getNodeList() const { return lNodes; } private: AstBranch *pParent; NodeList lNodes; }; Bu::Formatter &operator<<( Bu::Formatter &f, const AstBranch &b ); #endif