stats.hh

Go to the documentation of this file.
00001 // Copyright (C) 2008, 2011 Laboratoire de Recherche et Développement
00002 // de l'Epita (LRDE).
00003 // Copyright (C) 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
00004 // département Systèmes Répartis Coopératifs (SRC), Université Pierre
00005 // et Marie Curie.
00006 //
00007 // This file is part of Spot, a model checking library.
00008 //
00009 // Spot is free software; you can redistribute it and/or modify it
00010 // under the terms of the GNU General Public License as published by
00011 // the Free Software Foundation; either version 2 of the License, or
00012 // (at your option) any later version.
00013 //
00014 // Spot is distributed in the hope that it will be useful, but WITHOUT
00015 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
00016 // or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
00017 // License for more details.
00018 //
00019 // You should have received a copy of the GNU General Public License
00020 // along with Spot; see the file COPYING.  If not, write to the Free
00021 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00022 // 02111-1307, USA.
00023 
00024 #ifndef SPOT_TGBAALGOS_STATS_HH
00025 # define SPOT_TGBAALGOS_STATS_HH
00026 
00027 #include "tgba/tgba.hh"
00028 #include <iosfwd>
00029 
00030 namespace spot
00031 {
00032 
00035 
00036   struct tgba_statistics
00037   {
00038     unsigned transitions;
00039     unsigned states;
00040 
00041     tgba_statistics() { transitions = 0; states = 0; }
00042     std::ostream& dump(std::ostream& out) const;
00043   };
00044 
00045   struct tgba_sub_statistics: public tgba_statistics
00046   {
00047     unsigned sub_transitions;
00048 
00049     tgba_sub_statistics() { sub_transitions = 0; }
00050     std::ostream& dump(std::ostream& out) const;
00051   };
00052 
00054   tgba_statistics stats_reachable(const tgba* g);
00056   tgba_sub_statistics sub_stats_reachable(const tgba* g);
00057 
00059 }
00060 
00061 #endif // SPOT_TGBAALGOS_STATS_HH

Please comment this page and report errors about it on the RefDocComments page.
Generated on Mon Feb 7 2011 14:29:29 for spot by doxygen 1.7.1