BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
GmsListLink.h
Go to the documentation of this file.
1// File: GmsListLink.h
2// Author: Alan Breakstone
3
4/* This class is derived from a similar class in "A C++ Toolkit",
5 which is Copyright 1991 by Jonathan S. Shapiro, and is used
6 with permission. "A C++ Toolkit" is published by Prentice Hall, Inc. */
7
8// Contents ---------------------------------------------------------
9//
10// GmsListLink
11//
12// Description:
13//
14// C++ header file for Gismo GmsListLink class
15//
16// End --------------------------------------------------------------
17
18
19// Interface Dependencies -------------------------------------------
20
21#ifndef GMSLISTLINK_H
22#define GMSLISTLINK_H
23
24// End Interface Dependencies ---------------------------------------
25
26
27// Class //
28
30{ // base class for any object that needs to be part of a doubly-linked list
31 friend class GmsList;
32protected: // make available to derived classes
33 GmsListLink *_next; // pointer to next item in list
34 GmsListLink *_prev; // pointer to previous item in list
35public:
36 GmsListLink() { _next = _prev = 0; }
37 virtual ~GmsListLink();
38 GmsListLink *next()const { return _next; }
39 GmsListLink *prev()const { return _prev; }
40};
41
42#endif