* src/ltlast/refformula.hh (ref_formula::ref_count_): New method.
* src/ltlast/refformula.cc (ref_formula::ref_count_): New method. * src/ltlast/atomic_prop.hh (atomic_prop::dump_instance): New method. * src/ltlast/atomic_prop.cc (atomic_prop::dump_instance): New method.
This commit is contained in:
parent
e73ce85cfc
commit
314768bf28
5 changed files with 38 additions and 9 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2003 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||
// Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
||||
// et Marie Curie.
|
||||
//
|
||||
|
|
@ -27,7 +27,7 @@ namespace spot
|
|||
namespace ltl
|
||||
{
|
||||
ref_formula::ref_formula()
|
||||
: ref_count_(0)
|
||||
: ref_counter_(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -38,14 +38,20 @@ namespace spot
|
|||
void
|
||||
ref_formula::ref_()
|
||||
{
|
||||
++ref_count_;
|
||||
++ref_counter_;
|
||||
}
|
||||
|
||||
bool
|
||||
ref_formula::unref_()
|
||||
{
|
||||
assert(ref_count_ > 0);
|
||||
return !--ref_count_;
|
||||
assert(ref_counter_ > 0);
|
||||
return !--ref_counter_;
|
||||
}
|
||||
|
||||
unsigned
|
||||
ref_formula::ref_count_()
|
||||
{
|
||||
return ref_counter_;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue