author | llornkcor <llornkcor> | 2002-09-14 02:19:09 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-09-14 02:19:09 (UTC) |
commit | 2d0c1ffcb39f9fac8193ed2e9e93794de0bd7975 (patch) (unidiff) | |
tree | eeed16b5f80dd5883991a7a06133f5f7a6936256 /noncore/apps/opie-reader/my_list.h | |
parent | 5a95ed6a000a56849b8f093deea500214856c626 (diff) | |
download | opie-2d0c1ffcb39f9fac8193ed2e9e93794de0bd7975.zip opie-2d0c1ffcb39f9fac8193ed2e9e93794de0bd7975.tar.gz opie-2d0c1ffcb39f9fac8193ed2e9e93794de0bd7975.tar.bz2 |
update by Tim
Diffstat (limited to 'noncore/apps/opie-reader/my_list.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/my_list.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/my_list.h b/noncore/apps/opie-reader/my_list.h index b3f0cc0..f180d3d 100644 --- a/noncore/apps/opie-reader/my_list.h +++ b/noncore/apps/opie-reader/my_list.h | |||
@@ -30,2 +30,4 @@ class CList | |||
30 | } | 30 | } |
31 | T& first() { return front->data; } | ||
32 | T& last() { return back->data; } | ||
31 | T* operator[](int n) | 33 | T* operator[](int n) |
@@ -63,2 +65,3 @@ class CList | |||
63 | } | 65 | } |
66 | bool isEmpty() { return (front == NULL); } | ||
64 | void erase(unsigned int n) | 67 | void erase(unsigned int n) |
@@ -157,2 +160,6 @@ class CList | |||
157 | } | 160 | } |
161 | T* pContent() | ||
162 | { | ||
163 | return &(current->data); | ||
164 | } | ||
158 | bool operator!=(iterator t) | 165 | bool operator!=(iterator t) |
@@ -161,2 +168,6 @@ class CList | |||
161 | } | 168 | } |
169 | bool operator==(iterator t) | ||
170 | { | ||
171 | return (current == t.current); | ||
172 | } | ||
162 | }; | 173 | }; |