Nepomuk-Core
#include <Nepomuk2/Query/AndTerm>
Public Member Functions | |
AndTerm () | |
AndTerm (const AndTerm &term) | |
AndTerm (const Term &term1, const Term &term2, const Term &term3=Term(), const Term &term4=Term(), const Term &term5=Term(), const Term &term6=Term()) | |
AndTerm (const QList< Term > &terms) | |
~AndTerm () | |
AndTerm & | operator= (const AndTerm &term) |
Public Member Functions inherited from Nepomuk2::Query::GroupTerm | |
~GroupTerm () | |
void | addSubTerm (const Term &term) |
void | setSubTerms (const QList< Term > &terms) |
QList< Term > | subTerms () const |
Public Member Functions inherited from Nepomuk2::Query::Term | |
Term () | |
Term (const Term &other) | |
~Term () | |
bool | isAndTerm () const |
bool | isComparisonTerm () const |
bool | isLiteralTerm () const |
bool | isNegationTerm () const |
bool | isOptionalTerm () const |
bool | isOrTerm () const |
bool | isResourceTerm () const |
bool | isResourceTypeTerm () const |
bool | isValid () const |
bool | operator!= (const Term &term) const |
QDebug | operator<< (QDebug) const |
Term & | operator= (const Term &other) |
bool | operator== (const Term &term) const |
Term | optimized () const |
void | setUserData (const QString &key, const QVariant &value) |
AndTerm | toAndTerm () const |
AndTerm & | toAndTerm () |
ComparisonTerm | toComparisonTerm () const |
ComparisonTerm & | toComparisonTerm () |
LiteralTerm | toLiteralTerm () const |
LiteralTerm & | toLiteralTerm () |
NegationTerm | toNegationTerm () const |
NegationTerm & | toNegationTerm () |
OptionalTerm | toOptionalTerm () const |
OptionalTerm & | toOptionalTerm () |
OrTerm | toOrTerm () const |
OrTerm & | toOrTerm () |
ResourceTerm | toResourceTerm () const |
ResourceTerm & | toResourceTerm () |
ResourceTypeTerm | toResourceTypeTerm () const |
ResourceTypeTerm & | toResourceTypeTerm () |
QString | toString () const |
Type | type () const |
QVariant | userData (const QString &key) const |
Related Functions | |
(Note that these are not member functions.) | |
Term | operator&& (const Term &term1, const Term &term2) |
Related Functions inherited from Nepomuk2::Query::Term | |
static Term | fromProperty (const Types::Property &property, const Variant &variant) |
Additional Inherited Members | |
Public Types inherited from Nepomuk2::Query::Term | |
enum | Type { Invalid, Literal, Resource, And, Or, Comparison, ResourceType, Negation, Optional } |
Static Public Member Functions inherited from Nepomuk2::Query::Term | |
static Term | fromString (const QString &s) |
static Term | fromVariant (const Variant &variant) |
Detailed Description
Match resource that match all sub terms.
This class - like OrTerm - is derived from GroupTerm which handles the sub terms.
- Since
- 4.4
Constructor & Destructor Documentation
Nepomuk2::Query::AndTerm::AndTerm | ( | ) |
Default constructor: creates an invalid and-term.
Definition at line 62 of file andterm.cpp.
Nepomuk2::Query::AndTerm::AndTerm | ( | const AndTerm & | term | ) |
Copy constructor.
Definition at line 68 of file andterm.cpp.
Nepomuk2::Query::AndTerm::AndTerm | ( | const Term & | term1, |
const Term & | term2, | ||
const Term & | term3 = Term() , |
||
const Term & | term4 = Term() , |
||
const Term & | term5 = Term() , |
||
const Term & | term6 = Term() |
||
) |
Convinience constructor which allows to combine several terms in one line.
Definition at line 74 of file andterm.cpp.
Nepomuk2::Query::AndTerm::AndTerm | ( | const QList< Term > & | terms | ) |
Combine terms
into one and-term.
Definition at line 91 of file andterm.cpp.
Nepomuk2::Query::AndTerm::~AndTerm | ( | ) |
Destructor.
Definition at line 98 of file andterm.cpp.
Member Function Documentation
Nepomuk2::Query::AndTerm & Nepomuk2::Query::AndTerm::operator= | ( | const AndTerm & | term | ) |
Assignment operator.
Definition at line 103 of file andterm.cpp.
Friends And Related Function Documentation
Logical and operator which combines two terms into one term matching both term1
and term2
.
- Since
- 4.6
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.