DeeSequenceModel

DeeSequenceModel — A DeeModel implementation backed by a GSequence

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── DeeSerializableModel
        ╰── DeeSequenceModel

Implemented Interfaces

DeeSequenceModel implements

Includes

#include <dee.h>

Description

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.

Functions

dee_sequence_model_new ()

DeeModel *
dee_sequence_model_new (void);

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]

Types and Values

struct DeeSequenceModel

struct DeeSequenceModel;

All fields in the DeeSequenceModel structure are private and should never be accessed directly


DEE_SEQUENCE_MODEL_DBUS_IFACE

#define DEE_SEQUENCE_MODEL_DBUS_IFACE "com.canonical.Dee.Model"

String constant defining the name of the DBus Model interface.