query statement implementation More...
#include <query_impl.hh>
Public Member Functions | |
QueryImpl (const String &query_string="") | |
QueryImpl (Node *ast) | |
bool | IsValid () const |
bool | IsEmpty () const |
const String & | GetQueryString () const |
const QueryErrorDesc & | GetErrorDescription () const |
mol::QueryState | CreateQueryState (const EntityHandle &h) const |
mol::QueryState | CreateQueryState (const EntityView &v) const |
Protected Attributes | |
std::vector< SelStmt > | sel_values_ |
std::vector< SelStack > | sel_stacks_ |
std::vector< std::set< size_t > > | indices_ |
std::vector< bool > | inversion_stack_ |
std::vector< QueryImplP > | bracketed_expr_ |
Friends | |
class | mol::QueryState |
query statement implementation
Definition at line 164 of file query_impl.hh.
Construct new QueryImpl from AST tree. Used internally to build representation of bracketed sub expressions.
mol::QueryState CreateQueryState | ( | const EntityView & | v | ) | const |
mol::QueryState CreateQueryState | ( | const EntityHandle & | h | ) | const |
const QueryErrorDesc& GetErrorDescription | ( | ) | const |
const String& GetQueryString | ( | ) | const |
Retrieve query String.
bool IsEmpty | ( | ) | const |
Check if query was empty, ie matching all.
bool IsValid | ( | ) | const |
Find out if the query String is valid.
friend class mol::QueryState [friend] |
Definition at line 166 of file query_impl.hh.
std::vector<QueryImplP> bracketed_expr_ [protected] |
Definition at line 278 of file query_impl.hh.
std::vector<std::set<size_t> > indices_ [protected] |
Definition at line 276 of file query_impl.hh.
std::vector<bool> inversion_stack_ [protected] |
Definition at line 277 of file query_impl.hh.
std::vector<SelStack> sel_stacks_ [protected] |
Definition at line 275 of file query_impl.hh.
std::vector<SelStmt> sel_values_ [protected] |
Definition at line 274 of file query_impl.hh.