ltl: get rid of ltl::ref_formula
Instead, manage all reference counting from ltl::formula. It ridance of virtual calls to clone() and destroy() easily compensate the extra test in destroy() to not delete constant nodes. * src/ltlast/refformula.cc, src/ltlast/refformula.hh: Delete. * src/ltlast/Makefile.am, wrap/python/spot.i: Adjust. * src/ltlast/atomic_prop.cc, src/ltlast/atomic_prop.hh, src/ltlast/binop.cc, src/ltlast/binop.hh, src/ltlast/bunop.cc, src/ltlast/bunop.hh, src/ltlast/formula.cc, src/ltlast/formula.hh, src/ltlast/multop.cc, src/ltlast/multop.hh, src/ltlast/unop.cc, src/ltlast/unop.hh: Ajust the reference counting code.
This commit is contained in:
parent
d79da2e941
commit
8d947a8782
16 changed files with 70 additions and 210 deletions
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef SPOT_LTLAST_ATOMIC_PROP_HH
|
||||
# define SPOT_LTLAST_ATOMIC_PROP_HH
|
||||
|
||||
#include "refformula.hh"
|
||||
#include "formula.hh"
|
||||
#include <string>
|
||||
#include <iosfwd>
|
||||
#include <map>
|
||||
|
|
@ -38,7 +38,7 @@ namespace spot
|
|||
|
||||
/// \ingroup ltl_ast
|
||||
/// \brief Atomic propositions.
|
||||
class SPOT_API atomic_prop : public ref_formula
|
||||
class SPOT_API atomic_prop : public formula
|
||||
{
|
||||
public:
|
||||
/// Build an atomic proposition with name \a name in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue