spot  1.0
stats.hh
Go to the documentation of this file.
1 // Copyright (C) 2008, 2011, 2012 Laboratoire de Recherche et
2 // Développement de l'Epita (LRDE).
3 // Copyright (C) 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
4 // département Systèmes Répartis Coopératifs (SRC), Université Pierre
5 // et Marie Curie.
6 //
7 // This file is part of Spot, a model checking library.
8 //
9 // Spot is free software; you can redistribute it and/or modify it
10 // under the terms of the GNU General Public License as published by
11 // the Free Software Foundation; either version 3 of the License, or
12 // (at your option) any later version.
13 //
14 // Spot is distributed in the hope that it will be useful, but WITHOUT
15 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
17 // License for more details.
18 //
19 // You should have received a copy of the GNU General Public License
20 // along with this program. If not, see <http://www.gnu.org/licenses/>.
21 
22 #ifndef SPOT_TGBAALGOS_STATS_HH
23 # define SPOT_TGBAALGOS_STATS_HH
24 
25 #include "tgba/tgba.hh"
26 #include <iosfwd>
27 #include "misc/formater.hh"
28 
29 namespace spot
30 {
31 
34 
36  {
37  unsigned transitions;
38  unsigned states;
39 
41  std::ostream& dump(std::ostream& out) const;
42  };
43 
45  {
46  unsigned sub_transitions;
47 
49  std::ostream& dump(std::ostream& out) const;
50  };
51 
53  tgba_statistics stats_reachable(const tgba* g);
55  tgba_sub_statistics sub_stats_reachable(const tgba* g);
56 
57 
58  class printable_formula: public printable_value<const ltl::formula*>
59  {
60  public:
62  operator=(const ltl::formula* new_val)
63  {
64  val_ = new_val;
65  return *this;
66  }
67 
68  virtual void
69  print(std::ostream& os, const char*) const;
70  };
71 
77  class stat_printer: protected formater
78  {
79  public:
80  stat_printer(std::ostream& os, const char* format);
81 
86  std::ostream&
87  print(const tgba* aut, const ltl::formula* f = 0);
88 
89  private:
90  const char* format_;
91 
100  };
101 
103 }
104 
105 #endif // SPOT_TGBAALGOS_STATS_HH

Please comment this page and report errors about it on the RefDocComments page.
Generated on Sat Oct 27 2012 09:34:32 for spot by doxygen 1.8.1.2