NAMD
Main Page
Namespaces
Classes
Files
File List
File Members
Set.h
Go to the documentation of this file.
1
7
#ifndef IRSET_DEFS_H
8
#define IRSET_DEFS_H
9
class
InfoRecord
;
10
11
12
class
listNode
{
13
public
:
14
listNode
*
next
;
15
InfoRecord
*
const
info
;
16
listNode
(
InfoRecord
*i) :
info
(i) {;}
17
};
18
19
class
Iterator
{
20
public
:
21
int
id
;
// for debugging
22
listNode
*
next
;
23
};
24
25
class
IRSet
{
26
27
private
:
28
listNode
*head;
29
int
nElements;
30
31
public
:
32
IRSet
();
33
~IRSet
();
34
void
unchecked_insert
(
InfoRecord
*);
35
void
insert
(
InfoRecord
*);
36
int
find
(
InfoRecord
*) ;
37
int
remove
(
InfoRecord
*);
38
void
myRemove
(
listNode
**n,
InfoRecord
*r);
39
InfoRecord
*
iterator
(
Iterator
*);
40
InfoRecord
*
next
(
Iterator
*);
41
int
numElements
();
42
int
hasElements
();
43
void
print
();
44
};
45
46
class
LargeIRSet
:
public
IRSet
{
47
private
:
48
void
insert(
InfoRecord
*);
49
int
find(
InfoRecord
*);
50
};
51
52
#endif
InfoRecord
Definition:
elements.h:13
IRSet::IRSet
IRSet()
Definition:
Set.C:17
listNode
Definition:
Set.h:12
Iterator::next
listNode * next
Definition:
Set.h:22
IRSet::numElements
int numElements()
Definition:
Set.C:144
IRSet::insert
void insert(InfoRecord *)
Definition:
Set.C:49
listNode::info
InfoRecord *const info
Definition:
Set.h:15
listNode::listNode
listNode(InfoRecord *i)
Definition:
Set.h:16
IRSet::next
InfoRecord * next(Iterator *)
Definition:
Set.C:131
IRSet
Definition:
Set.h:25
IRSet::hasElements
int hasElements()
Definition:
Set.C:149
listNode::next
listNode * next
Definition:
Set.h:14
Iterator
Definition:
Set.h:19
LargeIRSet
Definition:
Set.h:46
IRSet::unchecked_insert
void unchecked_insert(InfoRecord *)
Definition:
Set.C:32
IRSet::myRemove
void myRemove(listNode **n, InfoRecord *r)
Definition:
Set.C:67
IRSet::print
void print()
Definition:
Set.C:154
IRSet::iterator
InfoRecord * iterator(Iterator *)
Definition:
Set.C:122
IRSet::find
int find(InfoRecord *)
Definition:
Set.C:112
Iterator::id
int id
Definition:
Set.h:21
IRSet::~IRSet
~IRSet()
Definition:
Set.C:23
Generated by
1.8.5