• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE Support
  • Sitemap
  • Contact Us
 

soprano

Soprano::StorageModel

Soprano::StorageModel Class Reference

Base class for all Model implementations that store data (as compared to FilterModel). More...

#include <Soprano/StorageModel>

Inheritance diagram for Soprano::StorageModel:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~StorageModel ()
const Backend * backend () const
virtual bool containsAnyStatement (const Statement &statement) const
virtual bool containsStatement (const Statement &statement) const
virtual bool isEmpty () const
virtual Error::ErrorCode removeAllStatements (const Statement &statement)

Protected Member Functions

 StorageModel (const Backend *backend)

Detailed Description

Base class for all Model implementations that store data (as compared to FilterModel).

The StorageModel implements some of the methods from Model which may be equal for different backends.

See also:
Backend::createModel()
Author:
Sebastian Trueg <trueg@kde.org>

Definition at line 44 of file storagemodel.h.


Constructor & Destructor Documentation

virtual Soprano::StorageModel::~StorageModel (  )  [virtual]
Soprano::StorageModel::StorageModel ( const Backend *  backend  )  [protected]
Parameters:
backend The Backend that created this model.

Member Function Documentation

const Backend* Soprano::StorageModel::backend (  )  const
Returns:
The backend that was used to create this model.
virtual bool Soprano::StorageModel::containsAnyStatement ( const Statement &  statement  )  const [virtual]

Default implementation is based on Model::listStatements.

Implements Soprano::Model.

Reimplemented in Soprano::Client::DBusModel.

virtual bool Soprano::StorageModel::containsStatement ( const Statement &  statement  )  const [virtual]

Default implementation is based on Model::listStatements.

Implements Soprano::Model.

Reimplemented in Soprano::Client::DBusModel.

virtual bool Soprano::StorageModel::isEmpty (  )  const [virtual]

Default implementation is based on Model::statementCount.

Implements Soprano::Model.

Reimplemented in Soprano::Client::DBusModel.

virtual Error::ErrorCode Soprano::StorageModel::removeAllStatements ( const Statement &  statement  )  [virtual]

Default implementation is based on listStatements() and removeStatement().

Implements Soprano::Model.

Reimplemented in Soprano::Client::DBusModel.


The documentation for this class was generated from the following file:
  • storagemodel.h

soprano

Skip menu "soprano"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE Support

Skip menu "KDE Support"
  • akonadi
  • Decibel
  • grantlee
  • kdewin
  • phonon
  •     Backend
  • polkit-qt
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for KDE Support by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal