class EE::UI::Models::PersistentHandle

Overview

A PersistentHandle is an internal data structure used to keep track of the target of multiple PersistentModelIndex instances. More…

#include <persistentmodelindex.hpp>

class PersistentHandle {
public:
    // fields

    ModelIndex mIndex;
    Uint32 mRegistrations { 0 };

    // construction

    PersistentHandle(ModelIndex const& index);
};

Detailed Documentation

A PersistentHandle is an internal data structure used to keep track of the target of multiple PersistentModelIndex instances.

Fields

Uint32 mRegistrations { 0 }

PersistentModelIndex constructions that registered this handle and have not released it. The model keeps the handle while any registration remains.