spot  0.8.3
unop.hh
Go to the documentation of this file.
00001 // Copyright (C) 2009 Laboratoire de Recherche et Développement
00002 // de l'Epita (LRDE).
00003 // Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris
00004 // 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
00005 // Université Pierre 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 
00026 #ifndef SPOT_LTLAST_UNOP_HH
00027 # define SPOT_LTLAST_UNOP_HH
00028 
00029 #include <map>
00030 #include <iosfwd>
00031 #include "refformula.hh"
00032 
00033 namespace spot
00034 {
00035   namespace ltl
00036   {
00037 
00040     class unop : public ref_formula
00041     {
00042     public:
00043       enum type { Not, X, F, G, Finish }; // Finish is used in ELTL formulae.
00044 
00047       static unop* instance(type op, formula* child);
00048 
00049       virtual void accept(visitor& v);
00050       virtual void accept(const_visitor& v) const;
00051 
00053       const formula* child() const;
00055       formula* child();
00056 
00058       type op() const;
00060       const char* op_name() const;
00061 
00063       virtual std::string dump() const;
00064 
00066       static unsigned instance_count();
00067 
00069       static std::ostream& dump_instances(std::ostream& os);
00070 
00071     protected:
00072       typedef std::pair<type, formula*> pair;
00073       typedef std::map<pair, unop*> map;
00074       static map instances;
00075 
00076       unop(type op, formula* child);
00077       virtual ~unop();
00078 
00079     private:
00080       type op_;
00081       formula* child_;
00082     };
00083 
00084   }
00085 }
00086 
00087 #endif // SPOT_LTLAST_UNOP_HH

Please comment this page and report errors about it on the RefDocComments page.
Generated on Fri Mar 9 2012 13:52:09 for spot by doxygen 1.7.6.1