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
|
|
@ -28,7 +28,7 @@
|
|||
#ifndef SPOT_LTLAST_BINOP_HH
|
||||
# define SPOT_LTLAST_BINOP_HH
|
||||
|
||||
#include "refformula.hh"
|
||||
#include "formula.hh"
|
||||
#include <map>
|
||||
#include <iosfwd>
|
||||
#include <tuple>
|
||||
|
|
@ -40,7 +40,7 @@ namespace spot
|
|||
|
||||
/// \ingroup ltl_ast
|
||||
/// \brief Binary operator.
|
||||
class SPOT_API binop : public ref_formula
|
||||
class SPOT_API binop : public formula
|
||||
{
|
||||
public:
|
||||
/// Different kinds of binary opertaors
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue