Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Xfc::Gtk::TreeIter Class Reference

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

#include <xfc/gtk/treemodel.hh>

Inheritance diagram for Xfc::Gtk::TreeIter:

Xfc::G::Boxed Xfc::StackObject Xfc::Object Xfc::Trackable 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. TreeIter is StackObject and can only be created on the stack.

Note: TreeIter is a object that can only be created on the stack.


Constructor & Destructor Documentation

Xfc::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.

Xfc::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.

Xfc::Gtk::TreeIter::TreeIter const TreeIter src  ) 
 

Copy constructor.

Parameters:
src The source tree iterator.


Member Function Documentation

TreeIter& Xfc::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: Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC 4.3