repo.or.cz
/
charm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
AMPI: drop comm argument from AMPI_Comm_set_migratable and rename to AMPI_Set_migratable
[charm.git]
/
src
/
ck-ldb
/
ckset.h
blob
3d718b0f8f61ba51f62de94b8340c3abbad5e269
1
/**
2
* \addtogroup CkLdb
3
*/
4
/*@{*/
5
6
#ifndef SET_DEFS_H
7
#define SET_DEFS_H
8
9
class
InfoRecord
;
10
11
class
listNode
{
12
public
:
13
listNode
*
next
;
14
InfoRecord
*
info
;
15
};
16
17
class
Iterator
{
18
public
:
19
int
id
;
// for debugging
20
listNode
*
next
;
21
};
22
23
class
Set
{
24
25
private
:
26
listNode
*
head
;
27
28
public
:
29
Set
();
30
~
Set
();
31
void
insert
(
InfoRecord
*);
32
int
find
(
InfoRecord
*) ;
33
void
remove
(
InfoRecord
*);
34
void
myRemove
(
listNode
**
n
,
InfoRecord
*
r
);
35
InfoRecord
*
iterator
(
Iterator
*);
36
InfoRecord
*
next
(
Iterator
*);
37
int
numElements
();
38
void
print
();
39
};
40
41
#endif
42
43
/*@}*/