spot 2.3.1

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List

All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
sccstack.hh
1 // -*- coding: utf-8 -*-
2 // Copyright (C) 2013, 2014 Laboratoire de Recherche et Développement de
3 // l'Epita (LRDE).
4 // Copyright (C) 2004, 2005 Laboratoire d'Informatique de Paris 6 (LIP6),
5 // département Systèmes Répartis Coopératifs (SRC), Université Pierre
6 // et Marie Curie.
7 //
8 // This file is part of Spot, a model checking library.
9 //
10 // Spot is free software; you can redistribute it and/or modify it
11 // under the terms of the GNU General Public License as published by
12 // the Free Software Foundation; either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // Spot is distributed in the hope that it will be useful, but WITHOUT
16 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
18 // License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with this program. If not, see <http://www.gnu.org/licenses/>.
22
23 #pragma once
24
25 #include <bddx.h>
26 #include <list>
27 #include <spot/twa/twa.hh>
28
29 namespace spot
30 {
31 // A stack of Strongly-Connected Components, as needed by the
32 // Tarjan-Couvreur algorithm.
33 class SPOT_API scc_stack
34 {
35 public:
36 struct connected_component
37 {
38 public:
39 connected_component(int index = -1);
40
42 int index;
45 acc_cond::mark_t condition;
46
47 std::list<const state*> rem;
48 };
49
51 void push(int index);
52
54 connected_component& top();
55
57 const connected_component& top() const;
58
60 void pop();
61
63 size_t size() const;
64
66 std::list<const state*>& rem();
67
71 unsigned clear_rem();
72
74 bool empty() const;
75
76 typedef std::list<connected_component> stack_type;
77 stack_type s;
78 };
79 }
spot
Definition: graph.hh:33
spot::scc_stack
Definition: sccstack.hh:33
spot::scc_stack::connected_component::condition
acc_cond::mark_t condition
Definition: sccstack.hh:45
spot::scc_stack::connected_component::index
int index
Index of the SCC.
Definition: sccstack.hh:42
spot::scc_stack::connected_component
Definition: sccstack.hh:36
spot::acc_cond::mark_t
Definition: acc.hh:34

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.