CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
GmsList.h
Go to the documentation of this file.
1// File: GmsList.hh
2// Authors: Alan Breakstone, Gary Word
3// sfs -- added insertAfter()
4
5/* This class is derived from a similar class in "A C++ Toolkit",
6 which is Copyright 1991 by Jonathan S. Shapiro, and is used
7 with permission. "A C++ Toolkit" is published by Prentice Hall, Inc. */
8
9// Contents ---------------------------------------------------------
10//
11// GmsList
12//
13// Description:
14//
15// C++ header file for Gismo GmsList class
16//
17// End --------------------------------------------------------------
18
19
20// Interface Dependencies -------------------------------------------
21
22#ifndef GMSLIST_H
23#define GMSLIST_H
24
26
27// End Interface Dependencies ---------------------------------------
28
29
30// Class //
31
33{
34protected:
37 unsigned int _count;
38public:
39 GmsList() { _first = _last = 0; _count = 0;}
40 virtual ~GmsList();
41 GmsListLink *last()const { return _last; }
42 GmsListLink *first()const { return _first; }
43 unsigned int count()const { return _count;}
44
48 GmsList& insertAfter( GmsListLink *link, GmsListLink *insertHere);
49 GmsList& moveAfter( GmsListLink *link, GmsListLink *insertHere);
50
51 void reset() { _first = _last = 0; _count = 0;}
52};
53
54#endif
virtual ~GmsList()
Definition GmsList.cxx:18
GmsListLink * last() const
Definition GmsList.h:41
GmsListLink * first() const
Definition GmsList.h:42
GmsList & moveAfter(GmsListLink *link, GmsListLink *insertHere)
Definition GmsList.cxx:77
GmsList & prepend(GmsListLink *)
Definition GmsList.cxx:36
GmsList & append(GmsListLink *)
Definition GmsList.cxx:20
GmsList & insertAfter(GmsListLink *link, GmsListLink *insertHere)
Definition GmsList.cxx:51
GmsList()
Definition GmsList.h:39
unsigned int _count
Definition GmsList.h:37
GmsListLink * _last
Definition GmsList.h:36
unsigned int count() const
Definition GmsList.h:43
GmsList & remove(GmsListLink *)
Definition GmsList.cxx:118
void reset()
Definition GmsList.h:51
GmsListLink * _first
Definition GmsList.h:35