ddc
|
#include <Query.h>
Public Member Functions | |
CQNear (BYTE dist=1, CQuery *dtr1=NULL, CQuery *dtr2=NULL, CQuery *dtr3=NULL) | |
virtual | ~CQNear () |
destructor deletes daughter nodes More... | |
virtual void | ClearNode () |
deletes associated daughter nodes (avoiding double-free) More... | |
virtual void | Clear (bool deep=true) |
clear query contents. if deep is true, propagates operation to daughters More... | |
virtual ddcObjectList | Children () const |
get a list of direct non-NULL CQuery direct daughters of this node More... | |
virtual void | DisownChildren () |
"disown" any direct child nodes, preventing their destruction if the current object is deleted More... | |
virtual BYTE | GetMatchId () const |
get match-id: dtr3 > dtr2 > dtr1 More... | |
virtual BYTE | SetMatchId (BYTE matchId) |
Set match-id, returns new value; override propagates matchId to daughers. More... | |
virtual bool | Compile (CQueryCompiler *compiler) |
Compile() method implicitly compiles daughter nodes. More... | |
virtual string | toString () |
DEBUG: return a canonical string form for this query (default just returns m_Label) More... | |
virtual string | jsonClass () |
virtual string | jsonData () |
Public Member Functions inherited from CQNegatable | |
CQNegatable (const string &label=string(""), bool negated=false) | |
Default constructor. More... | |
CQNegatable (bool negated) | |
virtual | ~CQNegatable () |
virtual bool | Negate (void) |
toggle negation flag; returns new value More... | |
virtual bool | Negated () |
override returns current value of m_Negated More... | |
virtual string | NegString (const std::string &s) |
string creation utility More... | |
Public Member Functions inherited from CQuery | |
CQuery (const string &label=string("")) | |
Default constructor. More... | |
virtual | ~CQuery (void) |
virtual bool | CheckSatisfiable (CQueryCompiler *compiler) |
virtual bool | CompileOptions (CQueryCompiler *compiler=NULL) |
virtual void | Evaluate () |
virtual bool | HasMatchId () const |
Returns true iff this query uses a nontrival match-id operator; default checks (this->GetMatchId() != 0) More... | |
virtual bool | RootOK () |
Is this query an admissible root of a compiled parse tree (default returns !this->Negated()) More... | |
virtual string | optionsToString () |
DEBUG: return canonical option string More... | |
virtual string | optionsToJson () |
return json format option string More... | |
virtual string | toJson () |
void | SetCompiler (CQueryCompiler *compiler) |
virtual void | ClearOptions () |
deletes m_Options if non-NULL More... | |
virtual void | SetOptions (CQueryOptions *opts) |
set global query options ; deletes any pre-existing m_Options More... | |
Public Member Functions inherited from ddcObject | |
ddcObject () | |
Default constructor. More... | |
virtual | ~ddcObject () |
virtual destructor does nothing More... | |
template<typename Visit > | |
ddcObject * | Traverse (Visit &visit) |
template<typename Visit > | |
ddcObject * | Traverse (Visit &visit) const |
template<typename Visit > | |
ddcObject * | TraverseR (Visit &visit) |
template<typename Visit > | |
ddcObject * | TraverseR (Visit &visit) const |
virtual ddcObjectList | Descendants () const |
Public Attributes | |
CQuery * | m_dtr1 |
first query argument (required) More... | |
CQuery * | m_dtr2 |
second query argument (required) More... | |
CQuery * | m_dtr3 |
thrid query argument (NULL for none) More... | |
BYTE | m_Dist |
maximum distance More... | |
Public Attributes inherited from CQNegatable | |
bool | m_Negated |
whether this query is negated More... | |
Public Attributes inherited from CQuery | |
string | m_Label |
arbitrary name for this query node (e.g. string from which it was parsed) More... | |
CQueryCompiler * | m_Compiler |
associated query compiler (only set on Compile()) More... | |
CQueryNode * | m_Node |
underlying CQueryNode (DDC-v1.x API) More... | |
CQueryOptions * | m_Options |
root-level options (root queries only) More... | |
Public Attributes inherited from ddcObject | |
void * | m_User |
user data associated with this object (for use e.g. by perl wrappers) More... | |
'NEAR' query (e.g. NEAR(a,b,2)) un-ordered proximity constraint over 2 sub-queries
|
inline |
References CQuery::Children(), CQuery::Clear(), CQuery::ClearNode(), CQuery::Compile(), CQuery::DisownChildren(), CQuery::GetMatchId(), CQuery::SetMatchId(), and CQuery::toString().
|
virtual |
destructor deletes daughter nodes
References CQuery::Clear().
|
virtual |
deletes associated daughter nodes (avoiding double-free)
Reimplemented from CQuery.
References CQuery::ClearNode(), CQuery::m_Node, CQueryNearNode::m_pChild1, CQueryNearNode::m_pChild2, and CQueryNearNode::m_pChild3.
|
virtual |
clear query contents. if deep
is true, propagates operation to daughters
Reimplemented from CQuery.
References CQuery::ClearNode(), and CQuery::ClearOptions().
|
virtual |
get a list of direct non-NULL CQuery direct daughters of this node
Reimplemented from CQuery.
References CQuery::Children().
|
virtual |
"disown" any direct child nodes, preventing their destruction if the current object is deleted
Reimplemented from CQuery.
References CQuery::DisownChildren().
|
virtual |
get match-id: dtr3 > dtr2 > dtr1
Reimplemented from CQuery.
Set match-id, returns new value; override propagates matchId to daughers.
Reimplemented from CQuery.
|
virtual |
Compile() method implicitly compiles daughter nodes.
Reimplemented from CQNegatable.
References CQNegatable::Compile(), CQueryNearNode::Create(), errParseError, CQuery::m_Node, CQueryCompiler::m_pHolder, MaxDistanceForNear, CQuery::SetCompiler(), and CQuery::toString().
|
virtual |
|
inlinevirtual |
class-name for json strinfication
Reimplemented from CQNegatable.
References CQuery::jsonData().
|
virtual |
instance data for json stringification
Reimplemented from CQNegatable.
References Format(), and CQNegatable::jsonData().
CQuery* CQNear::m_dtr1 |
first query argument (required)
CQuery* CQNear::m_dtr2 |
second query argument (required)
CQuery* CQNear::m_dtr3 |
thrid query argument (NULL for none)
BYTE CQNear::m_Dist |
maximum distance