Check an empty Gtk::TreeIter?
- From: Phong Cao <phngcv gmail com>
- To: gtkmm-list gnome org
- Subject: Check an empty Gtk::TreeIter?
- Date: Wed, 2 Nov 2011 23:33:45 -0400
Hello everybody,
I am current stuck with how to check an empty, uninitialized Gtk::TreeIter. I have checked out the documentation for Gtk::TreeIter, Gtk::TreePath & Gtk::TreeModel & have not found any function for checking an empty Gtk::TreeIter. Here is what I did, but it was not compiled:
#include <iostream>
class Base {
public:
Base();
virtual ~Base();
void checkEmptyIter();
private:
Gtk::TreeModel::iterator iter;
};
Base::Base() {
//the treeiter is not initialized to make sure it is empty
}
Base::~Base() {
}
void Base::checkEmptyIter() {
if (iter == NULL) { //can't compile
std::cout << "d_iter is empty" << std::endl;
}
}
Does anybody know anyway to check if a Gtk::TreeIter is empty?
Thank you for reading my message and I hope you guys have a good week!
--
Phong V. Cao
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]