MCPcopy Create free account
hub / github.com/YACReader/yacreader / TreeNode

Class TreeNode

YACReaderLibrary/db/query_parser.h:50–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48{
49public:
50 struct TreeNode {
51 std::string t;
52 std::vector<TreeNode> children;
53 std::string expOperator;
54
55 explicit TreeNode(std::string t, std::vector<TreeNode> children, std::string expOperator = "")
56 : t(t), children(children), expOperator(expOperator)
57 {
58 }
59
60 int buildSqlString(std::string &sqlString, int bindPosition = 0) const;
61 int bindValues(QSqlQuery &selectQuery, int bindPosition = 0) const;
62 };
63
64 explicit QueryParser();
65 TreeNode parse(const std::string &expr);

Callers 5

orExpressionMethod · 0.85
andExpressionMethod · 0.85
notExpressionMethod · 0.85
expressionMethod · 0.85
baseTokenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected