CVC3
2.4.1
|
#include <expr_value.h>
Public Member Functions | |
ExprRational (ExprManager *em, const Rational &r, ExprIndex idx=0) | |
virtual | ~ExprRational () |
void * | operator new (size_t size, MemoryManager *mm) |
void | operator delete (void *pMem, MemoryManager *mm) |
void | operator delete (void *) |
![]() | |
ExprValue (ExprManager *em, int kind, ExprIndex idx=0) | |
Constructor. More... | |
virtual | ~ExprValue () |
Destructor. More... | |
int | getKind () const |
Get the kind of the expression. More... | |
void * | operator new (size_t size, MemoryManager *mm) |
Overload operator new. More... | |
void | operator delete (void *pMem, MemoryManager *mm) |
void | operator delete (void *) |
Overload operator delete. More... | |
virtual const ExprValue * | getExprValue () const |
Test whether the expression is a generic subclass. More... | |
virtual bool | isString () const |
String expression tester. More... | |
virtual bool | isVar () const |
Uninterpreted constants. More... | |
virtual bool | isApply () const |
Application of another expression. More... | |
virtual bool | isSymbol () const |
Special named symbol. More... | |
virtual bool | isClosure () const |
A LAMBDA-expression or a quantifier. More... | |
virtual bool | isTheorem () const |
Special Expr holding a theorem. More... | |
virtual const std::vector< Expr > & | getKids () const |
Get kids: by default, returns a ref to an empty vector. More... | |
virtual unsigned | arity () const |
Default arity = 0. More... | |
virtual CDO< Theorem > * | getSig () const |
Special attributes for uninterpreted functions. More... | |
virtual CDO< Theorem > * | getRep () const |
virtual void | setSig (CDO< Theorem > *sig) |
virtual void | setRep (CDO< Theorem > *rep) |
virtual const std::string & | getUid () const |
virtual const std::string & | getString () const |
virtual const std::string & | getName () const |
Returns the string name of UCONST and BOUND_VAR expr's. More... | |
virtual const Expr & | getVar () const |
Returns the original Boolean variable (for BoolVarExprValue) More... | |
virtual Op | getOp () const |
Get the Op from an Apply Expr. More... | |
virtual const std::vector< Expr > & | getVars () const |
virtual const Expr & | getBody () const |
virtual void | setTriggers (const std::vector< std::vector< Expr > > &triggers) |
virtual const std::vector < std::vector< Expr > > & | getTriggers () const |
virtual const Expr & | getExistential () const |
virtual int | getBoundIndex () const |
virtual const std::vector < std::string > & | getFields () const |
virtual const std::string & | getField () const |
virtual int | getTupleIndex () const |
virtual const Theorem & | getTheorem () const |
Protected Member Functions | |
virtual size_t | computeHash () const |
Non-caching hash function which actually computes the hash. More... | |
virtual bool | operator== (const ExprValue &ev2) const |
Equality between any two ExprValue objects (including subclasses) More... | |
virtual ExprValue * | copy (ExprManager *em, ExprIndex idx=0) const |
Make a clean copy of itself using the given memory manager. More... | |
virtual bool | isRational () const |
Rational number expression tester. More... | |
![]() | |
MemoryManager * | getMM (size_t MMIndex) |
Return the memory manager (for the benefit of subclasses) More... | |
ExprValue * | rebuild (ExprManager *em) const |
Make a clean copy of itself using the given ExprManager. More... | |
Expr | rebuild (Expr e, ExprManager *em) const |
Make a clean copy of the expr using the given ExprManager. More... | |
virtual Unsigned | computeSize () const |
Non-caching size function which actually computes the size. More... | |
Private Member Functions | |
virtual const Rational & | getRational () const |
virtual size_t | getMMIndex () const |
Get unique memory manager ID. More... | |
Static Private Member Functions | |
static size_t | hash (const Rational &r) |
Private Attributes | |
Rational | d_r |
Friends | |
class | Expr |
class | ExprManager |
Additional Inherited Members | |
![]() | |
static size_t | pointerHash (void *p) |
static size_t | hash (const int kind, const std::vector< Expr > &kids) |
static size_t | hash (const int n) |
static Unsigned | sizeWithChildren (const std::vector< Expr > &kids) |
![]() | |
int | d_kind |
The kind of the expression. In particular, it determines which subclass of ExprValue is used to store the expression. More... | |
ExprManager * | d_em |
Our expr. manager. More... | |
![]() | |
static std::hash< char * > | s_charHash |
Return child with greatest height. More... | |
static std::hash< long int > | s_intHash |
Definition at line 741 of file expr_value.h.
|
inline |
Definition at line 767 of file expr_value.h.
|
inlinevirtual |
Definition at line 770 of file expr_value.h.
|
inlineprivatevirtual |
|
inlinestaticprivate |
Definition at line 750 of file expr_value.h.
References CVC3::ExprValue::s_charHash, and CVC3::Rational::toString().
|
inlineprivatevirtual |
Get unique memory manager ID.
Reimplemented from CVC3::ExprValue.
Definition at line 755 of file expr_value.h.
References CVC3::EXPR_RATIONAL.
|
inlineprotectedvirtual |
Non-caching hash function which actually computes the hash.
This is the method that all subclasses should implement
Reimplemented from CVC3::ExprValue.
Definition at line 759 of file expr_value.h.
References d_r, and CVC3::ExprValue::hash().
|
protectedvirtual |
Equality between any two ExprValue objects (including subclasses)
Reimplemented from CVC3::ExprValue.
Definition at line 174 of file expr_value.cpp.
References CVC3::ExprValue::getMMIndex(), and CVC3::ExprValue::getRational().
|
protectedvirtual |
Make a clean copy of itself using the given memory manager.
Reimplemented from CVC3::ExprValue.
Definition at line 181 of file expr_value.cpp.
References CVC3::ExprManager::getMM().
|
inlineprotectedvirtual |
Rational number expression tester.
Reimplemented from CVC3::ExprValue.
Definition at line 763 of file expr_value.h.
|
inline |
Definition at line 772 of file expr_value.h.
|
inline |
Definition at line 775 of file expr_value.h.
|
inline |
Definition at line 778 of file expr_value.h.
|
friend |
Definition at line 742 of file expr_value.h.
|
friend |
Definition at line 743 of file expr_value.h.
|
private |
Definition at line 745 of file expr_value.h.
Referenced by computeHash(), and getRational().