spot  2.11.6
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:
37  {
38  public:
39  connected_component(int index = -1);
40 
42  int index;
46 
47  std::list<const state*> rem;
48  };
49 
51  void push(int index);
52 
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 }
Definition: sccstack.hh:34
void pop()
Pop the top SCC.
std::list< const state * > & rem()
The rem member of the top SCC.
unsigned clear_rem()
connected_component & top()
Access the top SCC.
bool empty() const
Is the stack empty?
void push(int index)
Stack a new SCC with index index.
const connected_component & top() const
Access the top SCC.
size_t size() const
How many SCC are in stack.
Definition: automata.hh:27
An acceptance mark.
Definition: acc.hh:85
Definition: sccstack.hh:37
int index
Index of the SCC.
Definition: sccstack.hh:42
acc_cond::mark_t condition
Definition: sccstack.hh:45

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Fri Feb 27 2015 10:00:07 for spot by doxygen 1.9.1