ltl: rename formula::count_ as formula::serial_.

* src/ltlast/formula.hh, src/ltlast/formula.cc: Here.
This commit is contained in:
Alexandre Duret-Lutz 2014-10-25 01:11:26 +02:00
parent 2553c29ca7
commit d79da2e941
2 changed files with 7 additions and 7 deletions

View file

@ -33,7 +33,7 @@ namespace spot
{ {
namespace ltl namespace ltl
{ {
size_t formula::max_count = 0; size_t formula::max_serial = 0;
const formula* const formula*
formula::clone() const formula::clone() const

View file

@ -81,14 +81,14 @@ namespace spot
BUnOp }; BUnOp };
protected: protected:
formula(opkind k) : count_(max_count++), kind_(k) formula(opkind k) : serial_(max_serial++), kind_(k)
{ {
// If the counter of formulae ever loops, we want to skip the // If the counter of formulae ever loops, we want to skip the
// first three values, because they are permanently associated // first three values, because they are permanently associated
// to constants, and it is convenient to have constants smaller // to constants, and it is convenient to have constants smaller
// than all other formulae. // than all other formulae.
if (max_count == 0) if (max_serial == 0)
max_count = 3; max_serial = 3;
} }
public: public:
@ -290,7 +290,7 @@ namespace spot
size_t size_t
hash() const hash() const
{ {
return count_; return serial_;
} }
protected: protected:
virtual ~formula(); virtual ~formula();
@ -302,7 +302,7 @@ namespace spot
virtual bool unref_() const; virtual bool unref_() const;
/// \brief The hash key of this formula. /// \brief The hash key of this formula.
size_t count_; size_t serial_;
struct ltl_prop struct ltl_prop
{ {
@ -349,7 +349,7 @@ namespace spot
private: private:
/// \brief Number of formulae created so far. /// \brief Number of formulae created so far.
static size_t max_count; static size_t max_serial;
opkind kind_; opkind kind_;
}; };