![]() |
![]() |
![]() |
Dee Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
DeeSequenceModelDeeSequenceModel — A DeeModel implementation backed by a GSequence |
#include <dee.h> #define DEE_SEQUENCE_MODEL_DBUS_IFACE struct DeeSequenceModel; struct DeeSequenceModelClass; DeeModel * dee_sequence_model_new ();
DeeSequenceModel is an implementation of the DeeModel interface backed by a GSequence. It extends DeeSerializableModel so that you may use it as back end model for a DeeSharedModel.
The implementation is backed by a GSequence giving a good tradeoff between
random access time versus random- insertion and deletion times. Notably the
dee_model_insert_sorted()
and dee_model_find_sorted()
methods use the
underlying tree structure to guarantee a O(log(N))
profile.
#define DEE_SEQUENCE_MODEL_DBUS_IFACE "com.canonical.Dee.Model"
String constant defining the name of the DBus Model interface.
struct DeeSequenceModel;
All fields in the DeeSequenceModel structure are private and should never be accessed directly
DeeModel * dee_sequence_model_new ();
Create a new DeeSequenceModel. Before using it you must normally set a
schema on it by calling dee_model_set_schema()
.
Returns : |
A newly created
DeeSequenceModel. Free with g_object_unref() . [transfer full][type DeeSequenceModel]
|