diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-05-26 11:41:33 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-05-26 11:41:33 +0200 |
commit | 1855ab0ef3ff5ef220cbd3bc486b0c4d66063073 (patch) | |
tree | 0a651fb83e19f63f5acc96ba50b477e4b0f7b0ed /tools.h | |
parent | 373c69043ae352778974735460753d5e4f500789 (diff) | |
download | vdr-1855ab0ef3ff5ef220cbd3bc486b0c4d66063073.tar.gz vdr-1855ab0ef3ff5ef220cbd3bc486b0c4d66063073.tar.bz2 |
Introduced cListBase::count for better performance
Diffstat (limited to 'tools.h')
-rw-r--r-- | tools.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: tools.h 1.69 2005/05/16 09:55:19 kls Exp $ + * $Id: tools.h 1.70 2005/05/26 11:34:01 kls Exp $ */ #ifndef __TOOLS_H @@ -213,6 +213,7 @@ class cListBase { protected: cListObject *objects, *lastObject; cListBase(void); + int count; public: virtual ~cListBase(); void Add(cListObject *Object, cListObject *After = NULL); @@ -222,7 +223,7 @@ public: void Move(cListObject *From, cListObject *To); virtual void Clear(void); cListObject *Get(int Index) const; - int Count(void) const; + int Count(void) const { return count; } void Sort(void); }; |