KDECore
ktraderparsetree_p.h
Go to the documentation of this file.
70 explicit ParseContext( const ParseContext* _ctx ) : service( _ctx->service ), maxima( _ctx->maxima ),
116 ParseTreeOR( ParseTreeBase *_ptr1, ParseTreeBase *_ptr2 ) { m_pLeft = _ptr1; m_pRight = _ptr2; }
131 ParseTreeAND( ParseTreeBase *_ptr1, ParseTreeBase *_ptr2 ) { m_pLeft = _ptr1; m_pRight = _ptr2; }
146 ParseTreeCMP( ParseTreeBase *_ptr1, ParseTreeBase *_ptr2, int _i ) { m_pLeft = _ptr1; m_pRight = _ptr2; m_cmd = _i; }
162 ParseTreeIN(ParseTreeBase *ptr1, ParseTreeBase *ptr2, Qt::CaseSensitivity cs, bool substring = false)
185 ParseTreeMATCH( ParseTreeBase *_ptr1, ParseTreeBase *_ptr2, Qt::CaseSensitivity cs ) { m_pLeft = _ptr1; m_pRight = _ptr2; m_cs = cs; }
201 ParseTreeCALC( ParseTreeBase *_ptr1, ParseTreeBase *_ptr2, int _i ) { m_pLeft = _ptr1; m_pRight = _ptr2; m_cmd = _i; }
291 bool eval( ParseContext *_context ) const { _context->type = ParseContext::T_NUM; _context->i = m_int; return true; }
305 bool eval( ParseContext *_context ) const { _context->type = ParseContext::T_DOUBLE; _context->f = m_double; return true; }
319 bool eval( ParseContext *_context ) const { _context->type = ParseContext::T_BOOL; _context->b = m_bool; return true; }
ParseTreeNOT(ParseTreeBase *_ptr)
Definition: ktraderparsetree_p.h:231
ParseTreeBRACKETS(ParseTreeBase *_ptr)
Definition: ktraderparsetree_p.h:217
ParseTreeCALC(ParseTreeBase *_ptr1, ParseTreeBase *_ptr2, int _i)
Definition: ktraderparsetree_p.h:201
bool eval(ParseContext *_context) const
Definition: ktraderparsetree.cpp:84
bool eval(ParseContext *_context) const
Definition: ktraderparsetree.cpp:214
bool eval(ParseContext *_context) const
Definition: ktraderparsetree_p.h:319
ParseTreeID(const char *arg)
Definition: ktraderparsetree_p.h:259
ParseTreeOR(ParseTreeBase *_ptr1, ParseTreeBase *_ptr2)
Definition: ktraderparsetree_p.h:116
ParseTreeBase::Ptr m_pRight
Definition: ktraderparsetree_p.h:191
ParseTreeBase::Ptr m_pLeft
Definition: ktraderparsetree_p.h:222
bool eval(ParseContext *_context) const
Definition: ktraderparsetree_p.h:219
bool eval(ParseContext *_context) const
Definition: ktraderparsetree.cpp:24
ParseContext(const ParseContext *_ctx)
This is NOT a copy constructor.
Definition: ktraderparsetree_p.h:70
ParseTreeCMP(ParseTreeBase *_ptr1, ParseTreeBase *_ptr2, int _i)
Definition: ktraderparsetree_p.h:146
ParseTreeMIN2(const char *_id)
Definition: ktraderparsetree_p.h:345
ParseTreeBase::Ptr m_pRight
Definition: ktraderparsetree_p.h:207
bool eval(ParseContext *_context) const
Definition: ktraderparsetree.cpp:495
virtual bool eval(ParseContext *_context) const =0
QMap< QString, PreferencesMaxima > & maxima
Definition: ktraderparsetree_p.h:91
bool initMaxima(const QString &_prop)
Definition: ktraderparsetree.cpp:632
ParseTreeAND(ParseTreeBase *_ptr1, ParseTreeBase *_ptr2)
Definition: ktraderparsetree_p.h:131
bool eval(ParseContext *_context) const
Definition: ktraderparsetree_p.h:275
int matchConstraint(const ParseTreeBase *_tree, const KService::Ptr &_service, const KService::List &_list)
Definition: ktraderparsetree.cpp:611
bool eval(ParseContext *_context) const
Definition: ktraderparsetree.cpp:547
bool eval(ParseContext *_context) const
Definition: ktraderparsetree.cpp:58
ParseTreeMATCH(ParseTreeBase *_ptr1, ParseTreeBase *_ptr2, Qt::CaseSensitivity cs)
Definition: ktraderparsetree_p.h:185
ParseTreeBase::Ptr parseConstraints(const QString &_constr)
Definition: ktraderparse.cpp:52
bool eval(ParseContext *_context) const
Definition: ktraderparsetree.cpp:578
bool eval(ParseContext *_context) const
Definition: ktraderparsetree.cpp:414
PreferencesMaxima()
Definition: ktraderparsetree_p.h:47
ParseTreeDOUBLE(double arg)
Definition: ktraderparsetree_p.h:303
bool eval(ParseContext *_context) const
Definition: ktraderparsetree.cpp:404
bool eval(ParseContext *_context) const
Definition: ktraderparsetree.cpp:432
ParseContext(const KService::Ptr &_service, const KService::List &_offers, QMap< QString, PreferencesMaxima > &_m)
Definition: ktraderparsetree_p.h:72
ParseTreeIN(ParseTreeBase *ptr1, ParseTreeBase *ptr2, Qt::CaseSensitivity cs, bool substring=false)
Definition: ktraderparsetree_p.h:162
ParseTreeBOOL(bool arg)
Definition: ktraderparsetree_p.h:317
bool eval(ParseContext *_context) const
Definition: ktraderparsetree_p.h:291
bool eval(ParseContext *_context) const
Definition: ktraderparsetree.cpp:390
virtual ~ParseTreeBase()
Definition: ktraderparsetree_p.h:103
ParseTreeSTRING(const char *arg)
Definition: ktraderparsetree_p.h:273
ParseTreeMAX2(const char *_id)
Definition: ktraderparsetree_p.h:331
ParseTreeEXIST(const char *_id)
Definition: ktraderparsetree_p.h:245
Definition: kaboutdata.h:33
bool eval(ParseContext *_context) const
Definition: ktraderparsetree_p.h:305
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.