-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTLStateList.h
More file actions
56 lines (40 loc) · 1.46 KB
/
Copy pathTLStateList.h
File metadata and controls
56 lines (40 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* File: TLStateList.h
Author: Marc Diefenbruch, Axel Hirche
Project: QUEST
Date: (C) 1997, 1998 University of Essen, Germany
*/
#ifndef _TLSTATELIST_H_
#define _TLSTATELIST_H_
#include "TL.h"
#include "SCL/SCList.h"
#include "TLState.h"
class TLStateList : public SCList<TLState>
{
friend class SCStream& operator<< (SCStream&, const TLStateList&);
public:
TLStateList (SCBoolean deleteElems = false);
TLStateList (const TLStateList& l);
TLStateList (const TLStateList* l);
~TLStateList (void);
class
SCStream& Display (class SCStream&) const;
SCBoolean Append (TLState*);
SCBoolean Append (TLNode*);
SCBoolean Prepend (TLState*);
SCBoolean Prepend (TLNode*);
TLState* IsInList (TLState* s) const;
TLState* IsInList (class TLNode* n) const;
TLState* operator[] (SCNatural) const;
SCBoolean SetUpIndices (void);
private:
TLState** stateArray; // Used for fast operator[]
SCBoolean isFinished; // When this is true,
// Any call to Append,...
// is an error!
};
class SCStream& operator<< (SCStream&, const TLStateList&);
class SCStream& operator<< (SCStream&, const TLStateList*);
#if _TL_INLINING_
#include "TLStateList.inl.h"
#endif
#endif // _TLSTATELIST_H_