diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2016-06-21 14:14:04 +0200 |
---|---|---|
committer | Christian Gromm <christian.gromm@microchip.com> | 2016-06-21 14:14:04 +0200 |
commit | 860b3c0ccfb2756b8ed77523048952011b74a212 (patch) | |
tree | e0672fb5cf923dcf0a4a48a62a69011e1b72976a /K2LABI/Common/list.h | |
parent | 742bace60b9c0a0f583d8afe1097d029f468fa03 (diff) |
src: can-lin: initial source import
This patch adds the sources needed for the HVAC and iDrive applications.
Change-Id: I53148a5d11c34787dd11295939bbaf8702c64dcb
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
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 |