.. index:: pair: class; EE::UI::Models::ModelSelection .. _doxid-class_e_e_1_1_u_i_1_1_models_1_1_model_selection: class EE::UI::Models::ModelSelection ==================================== .. toctree:: :hidden: .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class ModelSelection { public: // construction :target:`ModelSelection`(:ref:`UIAbstractView`* view); // methods int :target:`size`() const; bool :target:`isEmpty`() const; bool :target:`contains`(const :ref:`ModelIndex`& index) const; bool :target:`containsRow`(int row) const; void :target:`set`(const :ref:`ModelIndex`&); void :target:`set`(const std::vector<:ref:`ModelIndex`>& indexes, bool notify = true); void :target:`add`(const :ref:`ModelIndex`&); void :target:`toggle`(const :ref:`ModelIndex`&); bool :target:`remove`(const :ref:`ModelIndex`&); void :target:`clear`(bool notify = true); template void :target:`forEachIndex`(Callback callback); template void :target:`forEachIndex`(Callback callback) const; std::vector<:ref:`ModelIndex`> :target:`indexes`() const; :ref:`ModelIndex` :target:`first`() const; void :target:`removeAllMatching`(std::function` const&)> filter); template void :target:`changeFromModel`(Function f); };