Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

Inti::Gtk::TreeIter Class Reference

A GtkTreeIter C++ wrapper class. More...

#include <inti/gtk/treemodel.h>

Inheritance diagram for Inti::Gtk::TreeIter:

Inti::G::Boxed Inti::ReferencedObject Inti::ReferencedBase List of all members.

Public Member Functions

Constructors
Accessors

Detailed Description

A GtkTreeIter C++ wrapper class.

A TreeIter is a reference to a specific node on a specific model. It is a generic class with an integer and three generic pointers. These are filled in by the model in a model-specific way. One can convert a path to an iterator by calling Gtk::TreeModel::get_iter(). These iterators are the primary way of accessing a model and are similar to the iterators used by TextBuffer. They are generally statically allocated on the heap and only used for a short time. The TreeModel interface defines a set of operations using them for navigating the model.


Constructor & Destructor Documentation

Inti::Gtk::TreeIter::TreeIter GtkTreeIter *  iter  )  [explicit]
 

Construct a new tree iterator from an existing GtkTreeIter.

Parameters:
iter A pointer to a GtkTreeIter.

The iter can be a newly created GtkTreeIter or an existing GtkTreeIter. The TreeIter object created is a temporary object. It doesn't take over the ownership of GtkTreeIter and GtkTreeIter is not freed by the destructor.

Inti::Gtk::TreeIter::TreeIter GtkTreeIter *  iter,
bool  copy
 

Construct a new text iterator from an existing GtkTreeIter.

Parameters:
iter A pointer to a GtkTreeIter.
copy Whether the TreeIter object should make a copy of GtkTreeIter or not.

The iter can be a newly created GtkTreeIter or an existing GtkTreeIter. If copy is true TreeIter will make a copy of GtkTreeIter. If copy is false TreeIter wont make a copy but instead takes over the ownership of GtkTreeIter. Either way, the destructor will free GtkTreeIter when the TreeIter object is destroyed. This constructor is used by G::Boxed::wrap() to wrap GtkTreeIter objects in a C++ wrapper.

Inti::Gtk::TreeIter::TreeIter const TreeIter src  ) 
 

Copy constructor.

Parameters:
src The source tree iterator.


Member Function Documentation

TreeIter& Inti::Gtk::TreeIter::operator= const TreeIter src  ) 
 

Assignment operator.

Parameters:
src The source tree iterator.


The documentation for this class was generated from the following file: Main Page - Footer


Generated on Sun Sep 14 20:08:21 2003 for Inti by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002