Soprano  2.7.56
Public Member Functions | Protected Member Functions
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:

List of all members.

Public Member Functions

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

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.nosp@m.@kde.nosp@m..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:
backendThe Backend that created this model.

Member Function Documentation

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

Default implementation is based on Model::statementCount

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::containsAnyStatement ( const Statement statement) const [virtual]

Default implementation is based on Model::listStatements

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.

Returns:
The backend that was used to create this model.

The documentation for this class was generated from the following file: