Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtinfo / DtMmdb / dstr / dlist_void_ptr_cell.h
1 /* $XConsortium: dlist_void_ptr_cell.h /main/3 1996/06/11 17:17:00 cde-hal $ */
2
3
4 #ifndef _dlist_void_ptr_cell_h
5 #define _dlist_void_ptr_cell_h 1
6
7 #include "utility/types.h"
8 #include "dstr/dlist_cell.h"
9
10 // doubly-linked list cell class, voidPtr as data ptr.
11
12 class dlist_void_ptr_cell : public dlist_cell {
13
14 public:
15    dlist_void_ptr_cell(voidPtr vp) : data(vp) {};
16    virtual ~dlist_void_ptr_cell() {};
17
18    voidPtr void_ptr() { return data; };
19
20 protected:
21    voidPtr data;
22 };
23
24 typedef dlist_void_ptr_cell *dlist_void_ptr_cellPtr;
25
26 #endif