ddc
|
#include <QueryFilter.h>
Public Member Functions | |
CQFHasField (const std::string &field, const std::string &val=string(""), bool isNegated=false) | |
virtual | ~CQFHasField () |
virtual CQFilter * | Clone () |
clone this filter More... | |
virtual void | Negate (void) |
negate the filter condition More... | |
virtual bool | Compile (CQueryCompiler *compiler, CQueryOptions *options) |
virtual string | valueString (void) |
value string for stringification More... | |
virtual string | toString (void) |
generic stringification; uses valueString() More... | |
virtual string | jsonClass (void) |
virtual string | jsonFieldValue (void) |
virtual string | jsonMinMax (void) |
Public Member Functions inherited from CQFSort | |
CQFSort (HitSortEnum ftype=NoSort, const string &arg0=string(""), const string &arg1=string(""), const string &arg2=string("")) | |
CQFSort (HitSortEnum ftype, const string &arg0, int arg1i, int arg2i) | |
virtual | ~CQFSort () |
virtual HitSortEnum | FilterType () const |
sort-type for this filter (if any) More... | |
void | SortBounds (void) |
swap lower- and upper-bounds if they not in logical order More... | |
string | ResolveAttributeName (CQueryCompiler *compiler, const string &attrName, bool allowBiblExpander=false) |
CFreeBiblIndex * | GetBiblConstant (CQueryCompiler *compiler, const string &attrName, bool allowBiblExpander=true) |
compilation & satisfiability-check utility: return constant bibliographic index for attrName (if it is one), or NULL More... | |
string | argString (const string &arg) const |
stringification utility: quoted strign for arg, or empty string More... | |
virtual string | jsonType (void) |
virtual string | jsonData (void) |
Public Member Functions inherited from CQFilter | |
CQFilter () | |
Default constructor. More... | |
virtual | ~CQFilter () |
Default destructor (empty) More... | |
virtual bool | CheckSatisfiable (CQueryCompiler *compiler, CQueryOptions *options) |
Run fast (un)satisfiability checks for filter before Compile() is called. Default just returns true. More... | |
Public Member Functions inherited from ddcObject | |
ddcObject () | |
Default constructor. More... | |
virtual | ~ddcObject () |
virtual destructor does nothing More... | |
virtual ddcObjectList | Children () const |
virtual void | DisownChildren () |
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 |
virtual string | toJson () |
Public Attributes | |
bool | m_Negated |
is this a negated filter? More... | |
Public Attributes inherited from CQFSort | |
CDDCFilterWithBounds | m_Filter |
underlying DDC Filter struct More... | |
std::string | m_arg0 |
0th argument (e.g. field name) More... | |
std::string | m_arg1 |
1st argument (e.g. lower bound) More... | |
std::string | m_arg2 |
2nd argument (e.g. upper bound) More... | |
Public Attributes inherited from ddcObject | |
void * | m_User |
user data associated with this object (for use e.g. by perl wrappers) More... | |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
clone this filter
Reimplemented from CQFSort.
Reimplemented in CQFHasFieldSet, CQFHasFieldInfix, CQFHasFieldSuffix, CQFHasFieldPrefix, CQFHasFieldRegex, and CQFHasFieldValue.
References CQFilter::Compile(), and CQFilter::toString().
|
virtual |
negate the filter condition
|
virtual |
compile the filter. requires reference to underlying CConcIndexator. CQFHasField implementation just ensures that m_arg0, m_arg1 are non-empty, throwing a CExpc otherwise
Reimplemented from CQFSort.
Reimplemented in CQFHasFieldSet, CQFHasFieldRegex, and CQFHasFieldValue.
References errParseError, CQFSort::m_arg0, CQFSort::m_arg1, CDDCFilterWithBounds::m_AttrName, CQFSort::m_Filter, CQFSort::ResolveAttributeName(), and CQFSort::toString().
Referenced by CQFHasFieldValue::Compile(), CQFHasFieldRegex::Compile(), and CQFHasFieldSet::Compile().
|
virtual |
value string for stringification
Reimplemented in CQFHasFieldSet, CQFHasFieldInfix, CQFHasFieldSuffix, CQFHasFieldPrefix, and CQFHasFieldRegex.
References CQFSort::m_arg1, and sqString().
|
virtual |
generic stringification; uses valueString()
Reimplemented from CQFSort.
References CQFSort::m_arg0, and sqString().
|
inlinevirtual |
class-name for json strinfication
Reimplemented from CQFSort.
Reimplemented in CQFHasFieldSet, CQFHasFieldInfix, CQFHasFieldSuffix, CQFHasFieldPrefix, CQFHasFieldRegex, and CQFHasFieldValue.
|
inlinevirtual |
|
virtual |
Reimplemented from CQFSort.
References jsonStr(), and CQFSort::m_arg0.
bool CQFHasField::m_Negated |
is this a negated filter?