Common base for graph patterns. More...
Public Types | |
enum | Type { TypeInvalid, TypePattern, TypePatternGroup, TypeUnion, TypeGraph, TypeExists, TypeCompositionalSelect } |
Public Member Functions | |
PatternBase (const PatternBase &other) | |
PatternBase & | operator= (const PatternBase &other) |
bool | operator== (const PatternBase &other) const |
bool | operator!= (const PatternBase &other) const |
Q_DECL_DEPRECATED bool | isExists () const |
Returns true if the instance is a Exists. | |
Q_DECL_DEPRECATED bool | isPattern () const |
Returns true if the instance is a Pattern. | |
Q_DECL_DEPRECATED bool | isPatternGroup () const |
Returns true if the instance is a PatternGroup. | |
Q_DECL_DEPRECATED bool | isGraph () const |
Returns true if the instance is a Graph. | |
Q_DECL_DEPRECATED bool | isUnion () const |
Returns true if the instance is a Union. | |
Q_DECL_DEPRECATED bool | isCompositionalSelect () const |
Returns true if the instance is a CompositionalSelect. | |
Type | type () const |
Returns the type of the PatternBase. | |
bool | isValid () const |
Returns true if the pattern is valid. | |
QString | sparql (Options::SparqlOptions options=Options::DefaultSparqlOptions) const |
Protected Member Functions | |
PatternBase (PatternBaseData *data) | |
Protected Attributes | |
QSharedDataPointer < PatternBaseData > | d |
Common base for graph patterns.
The PatternBase class serves as a common base for all graph patterns. It does not provide any useful function to the user in itself.
bool PatternBase::isCompositionalSelect | ( | ) | const |
Returns true if the instance is a CompositionalSelect.
bool PatternBase::isExists | ( | ) | const |
Returns true if the instance is a Exists.
bool PatternBase::isGraph | ( | ) | const |
Returns true if the instance is a Graph.
bool PatternBase::isPattern | ( | ) | const |
Returns true if the instance is a Pattern.
bool PatternBase::isPatternGroup | ( | ) | const |
Returns true if the instance is a PatternGroup.
bool PatternBase::isUnion | ( | ) | const |
Returns true if the instance is a Union.