CVC3  2.4.1
Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
CVC3::ExprApplyTmp Class Reference

#include <expr_value.h>

Inheritance diagram for CVC3::ExprApplyTmp:
CVC3::ExprNodeTmp CVC3::ExprValue

Public Member Functions

 ExprApplyTmp (ExprManager *em, const Op &op, const std::vector< Expr > &kids)
virtual ~ExprApplyTmp ()
bool operator== (const ExprValue &ev2) const
 Compare with another ExprValue.
- Public Member Functions inherited from CVC3::ExprNodeTmp
 ExprNodeTmp (ExprManager *em, int kind, const std::vector< Expr > &kids)
 Constructor.
virtual ~ExprNodeTmp ()
 Destructor.
- Public Member Functions inherited from CVC3::ExprValue
 ExprValue (ExprManager *em, int kind, ExprIndex idx=0)
 Constructor.
virtual ~ExprValue ()
 Destructor.
int getKind () const
 Get the kind of the expression.
void * operator new (size_t size, MemoryManager *mm)
 Overload operator new.
void operator delete (void *pMem, MemoryManager *mm)
void operator delete (void *)
 Overload operator delete.
virtual const ExprValuegetExprValue () const
 Test whether the expression is a generic subclass.
virtual bool isString () const
 String expression tester.
virtual bool isRational () const
 Rational number expression tester.
virtual bool isVar () const
 Uninterpreted constants.
virtual bool isSymbol () const
 Special named symbol.
virtual bool isClosure () const
 A LAMBDA-expression or a quantifier.
virtual bool isTheorem () const
 Special Expr holding a theorem.
virtual CDO< Theorem > * getSig () const
 Special attributes for uninterpreted functions.
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 RationalgetRational () const
virtual const std::string & getName () const
 Returns the string name of UCONST and BOUND_VAR expr's.
virtual const ExprgetVar () const
 Returns the original Boolean variable (for BoolVarExprValue)
virtual const std::vector< Expr > & getVars () const
virtual const ExprgetBody () const
virtual void setTriggers (const std::vector< std::vector< Expr > > &triggers)
virtual const std::vector
< std::vector< Expr > > & 
getTriggers () const
virtual const ExprgetExistential () 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 TheoremgetTheorem () const

Protected Member Functions

size_t getMMIndex () const
 Tell ExprManager who we are.
size_t computeHash () const
 Use our static hash() for the member method.
Op getOp () const
 Get the Op from an Apply Expr.
bool isApply () const
 Application of another expression.
ExprValuecopy (ExprManager *em, ExprIndex idx=0) const
 Make a clean copy of itself using the given memory manager.
- Protected Member Functions inherited from CVC3::ExprNodeTmp
unsigned arity () const
 Return number of children.
const std::vector< Expr > & getKids () const
 Return reference to children.
Unsigned computeSize () const
 Use our static sizeWithChildren() for the member method.
- Protected Member Functions inherited from CVC3::ExprValue
MemoryManagergetMM (size_t MMIndex)
 Return the memory manager (for the benefit of subclasses)
ExprValuerebuild (ExprManager *em) const
 Make a clean copy of itself using the given ExprManager.
Expr rebuild (Expr e, ExprManager *em) const
 Make a clean copy of the expr using the given ExprManager.

Private Attributes

Expr d_opExpr

Friends

class Expr
class ExprManager

Additional Inherited Members

- Static Protected Member Functions inherited from CVC3::ExprValue
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)
- Protected Attributes inherited from CVC3::ExprNodeTmp
const std::vector< Expr > & d_children
 Vector of children.
- Static Protected Attributes inherited from CVC3::ExprValue
static std::hash< char * > s_charHash
 Return child with greatest height.
static std::hash< long int > s_intHash

Detailed Description

Definition at line 534 of file expr_value.h.

Constructor & Destructor Documentation

CVC3::ExprApplyTmp::ExprApplyTmp ( ExprManager em,
const Op op,
const std::vector< Expr > &  kids 
)
inline
virtual CVC3::ExprApplyTmp::~ExprApplyTmp ( )
inlinevirtual

Definition at line 555 of file expr_value.h.

Member Function Documentation

size_t CVC3::ExprApplyTmp::getMMIndex ( ) const
inlineprotected

Tell ExprManager who we are.

Reimplemented from CVC3::ExprNodeTmp.

Definition at line 540 of file expr_value.h.

References CVC3::EXPR_APPLY.

size_t CVC3::ExprApplyTmp::computeHash ( ) const
inlineprotectedvirtual

Use our static hash() for the member method.

Reimplemented from CVC3::ExprNodeTmp.

Definition at line 541 of file expr_value.h.

References d_opExpr, CVC3::Expr::hash(), and PRIME.

Op CVC3::ExprApplyTmp::getOp ( ) const
inlineprotectedvirtual

Get the Op from an Apply Expr.

Reimplemented from CVC3::ExprValue.

Definition at line 544 of file expr_value.h.

References d_opExpr.

bool CVC3::ExprApplyTmp::isApply ( ) const
inlineprotectedvirtual

Application of another expression.

Reimplemented from CVC3::ExprValue.

Definition at line 545 of file expr_value.h.

ExprValue * CVC3::ExprApplyTmp::copy ( ExprManager em,
ExprIndex  idx = 0 
) const
protectedvirtual

Make a clean copy of itself using the given memory manager.

Reimplemented from CVC3::ExprNodeTmp.

Definition at line 254 of file expr_value.cpp.

References CVC3::ExprManager::getMM().

bool CVC3::ExprApplyTmp::operator== ( const ExprValue ev2) const
virtual

Compare with another ExprValue.

Reimplemented from CVC3::ExprNodeTmp.

Definition at line 246 of file expr_value.cpp.

References CVC3::ExprValue::getKids(), CVC3::ExprValue::getMMIndex(), and CVC3::ExprValue::getOp().

Friends And Related Function Documentation

friend class Expr
friend

Definition at line 535 of file expr_value.h.

friend class ExprManager
friend

Definition at line 536 of file expr_value.h.

Member Data Documentation

Expr CVC3::ExprApplyTmp::d_opExpr
private

Definition at line 538 of file expr_value.h.

Referenced by computeHash(), and getOp().


The documentation for this class was generated from the following files: