Syndication::RDF::Sequence

Search for usage in LXR

Syndication::RDF::Sequence Class Reference

#include <sequence.h>

Inheritance diagram for Syndication::RDF::Sequence:

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)
 
Sequenceclone () const override
 
bool isSequence () const override
 
virtual QList< NodePtr > items () const
 
virtual Sequenceoperator= (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
 
Resourceoperator= (const Resource &other)
 
bool operator== (const Resource &other) const
 
virtual QList< StatementPtrproperties (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]

Syndication::RDF::Sequence::Sequence ( const QString & uri)
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)

copies a sequence

Parameters
othersequence

Definition at line 37 of file sequence.cpp.

◆ ~Sequence()

Syndication::RDF::Sequence::~Sequence ( )
override

destructor

Definition at line 43 of file sequence.cpp.

Member Function Documentation

◆ accept()

void Syndication::RDF::Sequence::accept ( NodeVisitor * visitor,
NodePtr ptr )
overridevirtual

Used by visitors for double dispatch.

See NodeVisitor for more information.

Parameters
visitorthe visitor calling the method
ptra shared pointer object for this node

Reimplemented from Syndication::RDF::Resource.

Definition at line 46 of file sequence.cpp.

◆ append()

void Syndication::RDF::Sequence::append ( NodePtr node)
virtual

appends a node at the end of the sequence

Parameters
nodethe RDF node to append to the sequence

Definition at line 66 of file sequence.cpp.

◆ clone()

Sequence * Syndication::RDF::Sequence::clone ( ) const
overridevirtual

creates a copy of the sequence

Reimplemented from Syndication::RDF::Resource.

Definition at line 54 of file sequence.cpp.

◆ isSequence()

bool Syndication::RDF::Sequence::isSequence ( ) const
overridevirtual

returns true

Reimplemented from Syndication::RDF::Resource.

Definition at line 78 of file sequence.cpp.

◆ items()

QList< NodePtr > Syndication::RDF::Sequence::items ( ) const
virtual

the list of the list items in the sequence, in the specified order

Definition at line 73 of file sequence.cpp.

◆ operator=()

Sequence & Syndication::RDF::Sequence::operator= ( const Sequence & other)
virtual

assigns another sequence

Parameters
otherthe sequence to assign

Definition at line 59 of file sequence.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
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.