friendev EtherDune TCP/IP library
/home/jander/temp/etherdune/List.h
Go to the documentation of this file.
1 // EtherDune Linked list class
2 // Author: Javier Peletier <jm@friendev.com>
3 //
4 // Copyright (c) 2015 All Rights Reserved, http://friendev.com
5 //
6 // This source is subject to the GPLv2 license.
7 // Please see the License.txt file for more information.
8 // All other rights reserved.
9 //
10 // THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
11 // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
12 // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
13 // PARTICULAR PURPOSE.
14 
17 
20 
21 #ifndef _LIST_h
22 #define _LIST_h
23 
24 #include <ACross.h>
25 #include "config.h"
26 
27 class List;
28 
29 class ListItem
30 {
31  friend class List;
32 
33 public:
34 
35  ListItem();
36 
37 protected:
38 
40 
41 };
42 
43 class List
44 {
45 public:
46 
48 
49  List();
50 
51  void add(ListItem* item);
52  void remove(ListItem* item);
53 
54 };
55 
56 
57 #endif
58 
Base list item class.
Definition: List.h:29
List()
Definition: List.cpp:22
ListItem * nextItem
Definition: List.h:39
ListItem()
Definition: List.cpp:17
ListItem * first
Definition: List.h:47
void add(ListItem *item)
Definition: List.cpp:27
Basic linked list class.
Definition: List.h:43