spot  1.2.1a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
markset.hh
1 // Copyright (C) 2012 Laboratoire de Recherche et Developpement de
2 // 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 
20 #ifndef SPOT_FASTTGBA_MARKSET_HH
21 # define SPOT_FASTTGBA_MARKSET_HH
22 
23 #include <vector>
24 #include <string>
25 #include <boost/dynamic_bitset.hpp>
26 #include "acc_dict.hh"
27 
28 namespace spot
29 {
30 
32  typedef int mark;
33 
35  class markset
36  {
37  private:
39  markset(boost::dynamic_bitset<>, acc_dict& acc);
40 
41  public:
43  markset(acc_dict& acc);
44 
46  virtual ~markset(){ }
47 
49  markset(const markset& b);
50 
54  markset& operator&=(const markset& b);
55 
57  bool operator==(const markset& b);
58 
62  markset& operator|=(const markset& b);
63 
67  markset& operator^=(const markset & b);
68 
72  markset& operator-=(const markset& b);
73 
77  markset& operator-=(const mark b);
78 
80  bool is_set(const mark b);
81 
83  markset& operator=(const markset& b);
84 
86  markset operator&(const markset& b) const;
87 
89  markset operator|(const markset& b) const;
90 
95  void set_mark(mark m);
96 
101  bool empty();
102 
104  bool all() const;
105 
110  mark one();
111 
113  size_t size();
114 
118  markset operator~() const;
119 
120  unsigned long to_ulong() const;
121  markset operator|(const unsigned long) const;
122 
127  virtual std::string dump() const;
128 
129  protected:
130  boost::dynamic_bitset<> markset_;
132 
133  };
134 }
135 
136 #endif // SPOT_FASTTGBA_MARKSET_HH
virtual std::string dump() const
Display the content of the marking.
markset operator|(const markset &b) const
Perform a logical OR.
markset & operator^=(const markset &b)
perform a logic XOR with b
bool is_set(const mark b)
Retrun true if the mark is set.
markset & operator=(const markset &b)
Affect the value of b in this.
boost::dynamic_bitset markset_
the set of acceptance
Definition: markset.hh:130
markset operator~() const
Perform the negation of the mark.
markset & operator-=(const markset &b)
Compute the difference with b.
markset & operator|=(const markset &b)
perform a logic OR with b
bool operator==(const markset &b)
a comparator for two markset
bool empty()
test is a least one mark is set
acc_dict & accs_
the reference over the acc
Definition: markset.hh:131
markset & operator&=(const markset &b)
perform a logic AND with b
markset operator&(const markset &b) const
Perform a logical AND.
bool all() const
test if all mark are set
int mark
the type that represents a mark
Definition: markset.hh:32
This class represents a set of acceptance marks.
Definition: markset.hh:35
Definition: acc_dict.hh:31
virtual ~markset()
destructor for a markset
Definition: markset.hh:46
mark one()
Access to the first mark on the set.
size_t size()
Return the number of marks in the set.
void set_mark(mark m)
Set a mark in the markset.

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