summaryrefslogtreecommitdiffstats
path: root/K2LABI/Common/list.h
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2016-06-21 14:14:04 +0200
committerChristian Gromm <christian.gromm@microchip.com>2016-06-21 14:14:04 +0200
commit860b3c0ccfb2756b8ed77523048952011b74a212 (patch)
treee0672fb5cf923dcf0a4a48a62a69011e1b72976a /K2LABI/Common/list.h
parent742bace60b9c0a0f583d8afe1097d029f468fa03 (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.h26
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