spot  1.2.1a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ap_dict.hh
1 // Copyright (C) 2012 Laboratoire de Recherche et Développement
2 // de l'Epita (LRDE).
3 //
4 // This file is part of Spot, a model checking library.
5 //
6 // Spot is free software; you can redistribute it and/or modify it
7 // under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // Spot is distributed in the hope that it will be useful, but WITHOUT
12 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
14 // License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 
19 #ifndef SPOT_FASTTGBA_AP_DICT_HH
20 # define SPOT_FASTTGBA_AP_DICT_HH
21 
22 #include "ltlast/atomic_prop.hh"
23 
24 namespace spot
25 {
26  class fasttgba;
27 
41  class SPOT_API ap_dict
42  {
43  public:
45  ap_dict();
46 
48  virtual ~ap_dict();
49 
55  virtual int register_ap_for_aut(const ltl::atomic_prop* ap,
56  const spot::fasttgba* a);
57 
60  virtual const ltl::atomic_prop* get(int i);
61 
63  size_t size();
64 
66  bool empty ();
67 
68  protected:
69  int id_;
70 
72  std::map<const ltl::atomic_prop*, int> aps_;
73 
75  std::map<int, const ltl::atomic_prop*> apsback_;
76  };
77 }
78 #endif // SPOT_FASTTGBA_AP_DICT_HH
Definition: fasttgba.hh:33
LTL atomic propositions.
std::map< const ltl::atomic_prop *, int > aps_
Formula to int converter.
Definition: ap_dict.hh:72
Atomic propositions.
Definition: atomic_prop.hh:41
int id_
Unique id counter.
Definition: ap_dict.hh:69
This class is used to create a dictionary that will contain all atomic propositions that are needed b...
Definition: ap_dict.hh:41
std::map< int, const ltl::atomic_prop * > apsback_
Int to formula converter.
Definition: ap_dict.hh:75

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Tue Jan 21 2014 16:52:01 for spot by doxygen 1.8.5