spot  0.8.1
clone.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 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_LTLVISIT_CLONE_HH
00025 # define SPOT_LTLVISIT_CLONE_HH
00026 
00027 #include "ltlast/formula.hh"
00028 #include "ltlast/visitor.hh"
00029 
00030 namespace spot
00031 {
00032   namespace ltl
00033   {
00041     class clone_visitor : public visitor
00042     {
00043     public:
00044       clone_visitor();
00045       virtual ~clone_visitor();
00046 
00047       formula* result() const;
00048 
00049       void visit(atomic_prop* ap);
00050       void visit(unop* uo);
00051       void visit(binop* bo);
00052       void visit(automatop* mo);
00053       void visit(multop* mo);
00054       void visit(constant* c);
00055 
00056       virtual formula* recurse(formula* f);
00057 
00058     protected:
00059       formula* result_;
00060     };
00061 
00062 #if __GNUC__
00063 
00064 
00065 
00066     formula* clone(const formula* f) __attribute__ ((deprecated));
00067 #else
00068 
00069 
00070 
00071     formula* clone(const formula* f);
00072 #endif
00073   }
00074 }
00075 
00076 #endif // SPOT_LTLVISIT_LUNABBREV_HH

Please comment this page and report errors about it on the RefDocComments page.
Generated on Sun Dec 18 2011 12:57:15 for spot by doxygen 1.7.6.1