class FilterModel |
|
\class FilterModel filtermodel.h Soprano/FilterModel
A FilterModel is a virtual model that wraps another Model. FilterModels can be stacked to provide filtering on each of the Model's methods. A FilterModel has a parent model which is the data base for this filter. The parent can be an actual StorageModel or another FilterModel. Error handling: The FilterModel "inherits" its parent Model's errors, i.e. FilterModel.lastError() always equals FilterModel.parent()->lastError() (If the FilterModel implementations are called in subclasses).
Author Sebastian Trueg |
|
Create an empty filter model. |
|
Create a new FilterModel which works on parent.
Calls setParentModel.
parent - The parent Model. |
|
Default implementation simply pipes the call through to the parent model. |
|
Reimplemented for convenience. Calls Model.addStatement(const Node&,const Node&,const Node&,const Node&) |
|
Default implementation simply pipes the call through to the parent model. |
|
Reimplemented for convenience. Calls Model.containsAnyStatement(const Node&,const Node&,const Node&,const Node&) |
|
Default implementation simply pipes the call through to the parent model. |
|
Reimplemented for convenience. Calls Model.containsStatement(const Node&,const Node&,const Node&,const Node&) |
|
Default implementation simply pipes the call through to the parent model. |
|
Default implementation simply pipes the call through to the parent model. |
|
Default implementation simply pipes the call through to the parent model. |
|
Default implementation simply pipes the call through to the parent model. |
|
Default implementation simply pipes the call through to the parent model. |
|
Reimplemented for convenience. Calls Model.listStatements(const Node&,const Node&,const Node&,const Node&) |
|
Get the parent model. Returns The parent Model or 0 if none has been set. |
|
Handle a statementsAdded() signal from the parent Model.
The default implementation simply re-emits the signal. |
|
Handle a statementsRemoved() signal from the parent Model.
The default implementation simply re-emits the signal. |
|
Handle a statementsAdded() signal from the parent Model.
The default implementation simply re-emits the signal. |
|
Handle a statementsRemoved() signal from the parent Model.
The default implementation simply re-emits the signal. |
|
Default implementation simply pipes the call through to the parent model. |
|
Reimplemented for convenience. Calls Model.removeAllStatements(const Node&,const Node&,const Node&,const Node&) |
|
Default implementation simply pipes the call through to the parent model. |
|
Reimplemented for convenience. Calls Model.removeStatement(const Node&,const Node&,const Node&,const Node&) |
|
Set the parent Model.
model - The Model that this filter will forward any commands to. |
|
Default implementation simply pipes the call through to the parent model. |
|
Default implementation simply pipes the call through to the parent model. |