spot  0.9.2
clone.hh
Go to the documentation of this file.
1 // -*- coding: utf-8 -*-
2 // Copyright (C) 2009, 2010, 2012 Laboratoire de Recherche et
3 // Développement de l'Epita (LRDE).
4 // Copyright (C) 2003, 2004 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 2 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 Spot; see the file COPYING. If not, write to the Free
22 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
23 // 02111-1307, USA.
24 
25 #ifndef SPOT_LTLVISIT_CLONE_HH
26 # define SPOT_LTLVISIT_CLONE_HH
27 
28 #include "ltlast/formula.hh"
29 #include "ltlast/visitor.hh"
30 
31 namespace spot
32 {
33  namespace ltl
34  {
42  class clone_visitor : public visitor
43  {
44  public:
45  clone_visitor();
46  virtual ~clone_visitor();
47 
48  const formula* result() const;
49 
50  void visit(const atomic_prop* ap);
51  void visit(const unop* uo);
52  void visit(const binop* bo);
53  void visit(const automatop* mo);
54  void visit(const multop* mo);
55  void visit(const constant* c);
56  void visit(const bunop* c);
57 
58  virtual const formula* recurse(const formula* f);
59 
60  protected:
61  const formula* result_;
62  };
63 
64 #if __GNUC__
65 
66 
67 
68  const formula* clone(const formula* f) __attribute__ ((deprecated));
69 #else
70 
71 
72 
73  const formula* clone(const formula* f);
74 #endif
75  }
76 }
77 
78 #endif // SPOT_LTLVISIT_LUNABBREV_HH

Please comment this page and report errors about it on the RefDocComments page.
Generated on Mon Jul 2 2012 17:35:47 for spot by doxygen 1.8.1.1