CACAO
worklist.hpp
Go to the documentation of this file.
1 /* src/toolbox/worklist.hpp - worklist header
2 
3  Copyright (C) 2005-2013
4  CACAOVM - Verein zu Foerderung der freien virtuellen Machine CACAO
5 
6  This file is part of CACAO.
7 
8  This program is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License as
10  published by the Free Software Foundation; either version 2, or (at
11  your option) any later version.
12 
13  This program is distributed in the hope that it will be useful, but
14  WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21  02111-1307, USA.
22 
23  Contact: cacao@complang.tuwien.ac.at
24 
25  Authors: Christian Ullrich
26 
27 
28 */
29 
30 
31 #ifndef WORKLIST_HPP_
32 #define WORKLIST_HPP_ 1
33 
34 #include "toolbox/bitvector.hpp"
35 
36 struct worklist {
37  int *W_stack;
38  int W_top;
40 #ifdef WL_DEBUG_CHECK
41  int size;
42 #endif
43 };
44 
45 /* function prototypes */
46 worklist *wl_new(int size);
47 void wl_add(worklist *w, int element);
48 int wl_get(worklist *w);
49 bool wl_is_empty(worklist *w);
50 void wl_reset(worklist *w, int size);
51 
52 #endif // BITVECTOR_HPP_
53 
54 
55 /*
56  * These are local overrides for various environment variables in Emacs.
57  * Please do not remove this and leave it at the end of the file, where
58  * Emacs will automagically detect them.
59  * ---------------------------------------------------------------------
60  * Local variables:
61  * mode: c++
62  * indent-tabs-mode: t
63  * c-basic-offset: 4
64  * tab-width: 4
65  * End:
66  */
int * bitvector
Definition: bitvector.hpp:34
bitvector W_bv
Definition: worklist.hpp:39
JNIEnv jthread jobject jclass jlong size
Definition: jvmti.h:387
void wl_reset(worklist *w, int size)
Definition: worklist.cpp:135
int * W_stack
Definition: worklist.hpp:37
bool wl_is_empty(worklist *w)
Definition: worklist.cpp:124
int W_top
Definition: worklist.hpp:38
worklist * wl_new(int size)
Definition: worklist.cpp:68
void wl_add(worklist *w, int element)
Definition: worklist.cpp:88
int wl_get(worklist *w)
Definition: worklist.cpp:107