diff options
Diffstat (limited to 'K2LABI/Common/list.h')
-rw-r--r-- | K2LABI/Common/list.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/K2LABI/Common/list.h b/K2LABI/Common/list.h new file mode 100644 index 0000000..4e34323 --- /dev/null +++ b/K2LABI/Common/list.h @@ -0,0 +1,26 @@ +#ifndef ILIST_H_ +#define ILIST_H_ + +template<class T> + +class IList +{ +public: + class IIterator + { + public: + virtual ~IIterator(){} + virtual bool hasNext() = 0; + virtual T* next() = 0; + virtual void release() = 0; + }; + virtual ~IList(){} + + virtual IIterator* getIterator() = 0; + virtual int add(T* pItem) = 0; + virtual T* getAt(int nIndex) = 0; + virtual void clear(bool bDelete = true, bool bArr = false) = 0; + virtual bool isEmpty() = 0; +}; + +#endif
\ No newline at end of file |