#include <ltlast/unop.hh>
Inheritance diagram for spot::ltl::unop:
Public Types | |
enum | type { Not, X, F, G } |
Public Member Functions | |
virtual void | accept (visitor &v) |
Entry point for vspot::ltl::visitor instances. | |
virtual void | accept (const_visitor &v) const |
Entry point for vspot::ltl::const_visitor instances. | |
const formula * | child () const |
Get the sole operand of this operator. | |
formula * | child () |
Get the sole operand of this operator. | |
type | op () const |
Get the type of this operator. | |
const char * | op_name () const |
Get the type of this operator, as a string. | |
formula * | ref () |
clone this node | |
const std::string & | dump () const |
Return a canonic representation of the formula. | |
const size_t | hash () const |
Return a hash_key for the formula. | |
Static Public Member Functions | |
static unop * | instance (type op, formula *child) |
static unsigned | instance_count () |
Number of instantiated unary operators. For debugging. | |
static void | unref (formula *f) |
release this node | |
Protected Types | |
typedef std::pair< type, formula * > | pair |
typedef std::map< pair, formula * > | map |
Protected Member Functions | |
unop (type op, formula *child) | |
virtual | ~unop () |
void | ref_ () |
increment reference counter if any | |
bool | unref_ () |
decrement reference counter if any, return true when the instance must be deleted (usually when the counter hits 0). | |
unsigned | ref_count_ () |
Number of references to this formula. | |
void | set_key_ () |
Compute key_ from dump_. | |
Protected Attributes | |
std::string | dump_ |
The canonic representation of the formula. | |
size_t | hash_key_ |
The hash key of this formula. | |
Static Protected Attributes | |
static map | instances |
Private Attributes | |
type | op_ |
formula * | child_ |
|
|
|
|
|
|
|
|
|
|
|
Entry point for vspot::ltl::const_visitor instances.
Implements spot::ltl::formula. |
|
Entry point for vspot::ltl::visitor instances.
Implements spot::ltl::formula. |
|
Get the sole operand of this operator.
|
|
Get the sole operand of this operator.
|
|
Return a canonic representation of the formula.
|
|
Return a hash_key for the formula.
|
|
Build an unary operator with operation op and child child. |
|
Number of instantiated unary operators. For debugging.
|
|
Get the type of this operator.
|
|
Get the type of this operator, as a string.
|
|
clone this node This increments the reference counter of this node (if one is used). You should almost never use this method directly as it doesn't touch the children. If you want to clone a whole formula, use spot::ltl::clone() instead. |
|
increment reference counter if any
Reimplemented from spot::ltl::formula. |
|
Number of references to this formula.
|
|
Compute key_ from dump_. Should be called once in each object, after dump_ has been set. |
|
release this node This decrements the reference counter of this node (if one is used) and can free the object. You should almost never use this method directly as it doesn't touch the children. If you want to release a whole formula, use spot::ltl::destroy() instead. |
|
decrement reference counter if any, return true when the instance must be deleted (usually when the counter hits 0).
Reimplemented from spot::ltl::formula. |
|
|
|
The canonic representation of the formula.
|
|
The hash key of this formula. Initialized by set_key_(). |
|
|
|
|