Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / nsgmls / Link.h
1 /* $XConsortium: Link.h /main/1 1996/07/29 16:55:39 cde-hp $ */
2 // Copyright (c) 1994 James Clark
3 // See the file COPYING for copying permission.
4
5 #ifndef Link_INCLUDED
6 #define Link_INCLUDED 1
7
8 #ifdef SP_NAMESPACE
9 namespace SP_NAMESPACE {
10 #endif
11
12 #ifndef SP_API
13 #define SP_API
14 #endif
15
16 class SP_API Link {
17 public:
18   Link();
19   Link(Link *);
20   virtual ~Link();
21 private:
22   Link *next_;
23
24 friend class IListBase;
25 friend class IListIterBase;
26 friend class IQueueBase;
27 };
28
29 inline
30 Link::Link() : next_(0)
31 {
32 }
33
34 inline
35 Link::Link(Link *next) : next_(next)
36 {
37 }
38
39 #ifdef SP_NAMESPACE
40 }
41 #endif
42
43 #endif /* not Link_INCLUDED */