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
|
|
@ -27,8 +27,7 @@
|
|||
|
||||
#include <map>
|
||||
#include <iosfwd>
|
||||
#include "refformula.hh"
|
||||
#include "bunop.hh"
|
||||
#include "formula.hh"
|
||||
|
||||
namespace spot
|
||||
{
|
||||
|
|
@ -37,7 +36,7 @@ namespace spot
|
|||
|
||||
/// \ingroup ltl_ast
|
||||
/// \brief Unary operators.
|
||||
class SPOT_API unop : public ref_formula
|
||||
class SPOT_API unop : public formula
|
||||
{
|
||||
public:
|
||||
enum type {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue