From 366a8063730aa7ae696bcb9cf56eafd13d43dfc0 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 8 Feb 2009 00:44:10 +0000 Subject: So many updates. I recommend using the new FString iterators instead of direct indexing. It is now many times faster, and requires less overhead. Also, more stuff iterator related in every class. More on that later. --- src/list.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/list.h') diff --git a/src/list.h b/src/list.h index d16e606..f11336e 100644 --- a/src/list.h +++ b/src/list.h @@ -377,6 +377,16 @@ namespace Bu return *this; } + operator bool() + { + return pLink != NULL; + } + + bool isValid() + { + return pLink != NULL; + } + /** * Assignment operator. *@param oth (const iterator &) The other iterator to set this @@ -499,6 +509,16 @@ namespace Bu pLink = oth.pLink; return *this; } + + operator bool() + { + return pLink != NULL; + } + + bool isValid() + { + return pLink != NULL; + } } const_iterator; /** -- cgit v1.2.3