gtkmm: Gtk::TreeIterBase3 Class Reference

Base of TreeIter. More...

#include <gtkmm/treeiter.h>

Inheritance diagram for Gtk::TreeIterBase3:

Public Member Functions

bool equal (const TreeIterBase3& other) const
 
int get_stamp () const
 This is only useful when implementing a custom Gtk::TreeModel class. More...

 
void set_stamp (int stamp)
 This is only useful when implementing a custom Gtk::TreeModel class. More...

 
- Public Member Functions inherited from Gtk::TreeIterBase
 TreeIterBase (const TreeIterBase& other) noexcept
 
TreeIterBaseoperator= (const TreeIterBase& other) noexcept
 
 TreeIterBase (TreeIterBase&& other) noexcept
 
TreeIterBaseoperator= (TreeIterBase&& other) noexcept
 
 TreeIterBase ()
 
 TreeIterBase (const GtkTreeIter* gobject)
 
GtkTreeIter* gobj ()
 Provides access to the underlying C instance. More...

 
const GtkTreeIter* gobj () const
 Provides access to the underlying C instance. More...

 

Additional Inherited Members

- Static Public Member Functions inherited from Gtk::TreeIterBase
static GType get_type ()
 Get the GType for this class, for use with the underlying GObject type system. More...

 
- Protected Attributes inherited from Gtk::TreeIterBase
GtkTreeIter gobject_
 

Detailed Description

Base of TreeIter.

Contains the common parts of TreeIter<TreeRow> and TreeIter<TreeConstRow>.

Member Function Documentation

bool Gtk::TreeIterBase3::equal ( const TreeIterBase3 other) const
int Gtk::TreeIterBase3::get_stamp ( ) const

This is only useful when implementing a custom Gtk::TreeModel class.

Compare the iterator's stamp with your model's stamp to discover whether it is valid.

See also
set_stamp().
Returns
The iterator's stamp.
void Gtk::TreeIterBase3::set_stamp ( int  stamp)

This is only useful when implementing a custom Gtk::TreeModel class.

Set the stamp to be equal to your model's stamp, to mark the iterator as valid. When your model's structure changes, you should increment your model's stamp to mark all older iterators as invalid. They will be recognised as invalid because they will then have an incorrect stamp.