Syndication::RDF::Sequence
#include <sequence.h>
Public Member Functions | |
Sequence () | |
Sequence (const QString &uri) | |
Sequence (const Sequence &other) | |
~Sequence () override | |
void | accept (NodeVisitor *visitor, NodePtr ptr) override |
virtual void | append (NodePtr node) |
Sequence * | clone () const override |
bool | isSequence () const override |
virtual QList< NodePtr > | items () const |
virtual Sequence & | operator= (const Sequence &other) |
Public Member Functions inherited from Syndication::RDF::Resource | |
Resource () | |
Resource (const QString &uri) | |
Resource (const Resource &other) | |
~Resource () override | |
virtual bool | hasProperty (PropertyPtr property) const |
unsigned int | id () const override |
bool | isAnon () const override |
bool | isLiteral () const override |
bool | isNull () const override |
bool | isProperty () const override |
bool | isResource () const override |
virtual Model | model () const |
Resource & | operator= (const Resource &other) |
bool | operator== (const Resource &other) const |
virtual QList< StatementPtr > | properties (PropertyPtr property) const |
virtual StatementPtr | property (PropertyPtr property) const |
void | setId (unsigned int id) override |
void | setModel (const Model &model) override |
QString | text () const override |
virtual QString | uri () const |
Public Member Functions inherited from Syndication::RDF::Node | |
virtual | ~Node () |
Additional Inherited Members | |
Static Protected Attributes inherited from Syndication::RDF::Node | |
static unsigned int | idCounter = 1 |
Detailed Description
Sequence container, a sequence contains an ordered list of RDF nodes.
(opposed to the usually unordered graph structure)
Definition at line 31 of file sequence.h.
Constructor & Destructor Documentation
◆ Sequence() [1/3]
Syndication::RDF::Sequence::Sequence | ( | ) |
creates a null sequence
Definition at line 25 of file sequence.cpp.
◆ Sequence() [2/3]
|
explicit |
creates a sequence with the given URI.
Do not use this directly, use Model::createSequence() instead.
Definition at line 31 of file sequence.cpp.
◆ Sequence() [3/3]
Syndication::RDF::Sequence::Sequence | ( | const Sequence & | other | ) |
◆ ~Sequence()
|
override |
destructor
Definition at line 43 of file sequence.cpp.
Member Function Documentation
◆ accept()
|
overridevirtual |
Used by visitors for double dispatch.
See NodeVisitor for more information.
- Parameters
-
visitor the visitor calling the method ptr a shared pointer object for this node
Reimplemented from Syndication::RDF::Resource.
Definition at line 46 of file sequence.cpp.
◆ append()
|
virtual |
appends a node at the end of the sequence
- Parameters
-
node the RDF node to append to the sequence
Definition at line 66 of file sequence.cpp.
◆ clone()
|
overridevirtual |
creates a copy of the sequence
Reimplemented from Syndication::RDF::Resource.
Definition at line 54 of file sequence.cpp.
◆ isSequence()
|
overridevirtual |
returns true
Reimplemented from Syndication::RDF::Resource.
Definition at line 78 of file sequence.cpp.
◆ items()
|
virtual |
the list of the list items in the sequence, in the specified order
Definition at line 73 of file sequence.cpp.
◆ operator=()
assigns another sequence
- Parameters
-
other the sequence to assign
Definition at line 59 of file sequence.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.