CVC3::ExprString Class Reference

#include <expr_value.h>

Inheritance diagram for CVC3::ExprString:

Inheritance graph
[legend]
Collaboration diagram for CVC3::ExprString:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Protected Member Functions

Private Member Functions

Static Private Member Functions

Private Attributes

Friends


Detailed Description

Definition at line 622 of file expr_value.h.


Constructor & Destructor Documentation

CVC3::ExprString::ExprString ( ExprManager em,
const std::string &  s,
ExprIndex  idx = 0 
) [inline]

Definition at line 647 of file expr_value.h.

Referenced by copy().

virtual CVC3::ExprString::~ExprString (  )  [inline, virtual]

Definition at line 650 of file expr_value.h.


Member Function Documentation

static size_t CVC3::ExprString::hash ( const std::string &  str  )  [inline, static, private]

Definition at line 629 of file expr_value.h.

References CVC3::ExprValue::s_charHash.

virtual size_t CVC3::ExprString::getMMIndex (  )  const [inline, private, virtual]

Get unique memory manager ID.

Reimplemented from CVC3::ExprValue.

Definition at line 634 of file expr_value.h.

References CVC3::EXPR_STRING.

Referenced by copy(), and operator==().

virtual size_t CVC3::ExprString::computeHash (  )  const [inline, protected, virtual]

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 638 of file expr_value.h.

References d_str, and CVC3::ExprValue::hash().

virtual bool CVC3::ExprString::isString (  )  const [inline, protected, virtual]

String expression tester.

Reimplemented from CVC3::ExprValue.

Definition at line 640 of file expr_value.h.

virtual const std::string& CVC3::ExprString::getString (  )  const [inline, protected, virtual]

Reimplemented from CVC3::ExprValue.

Definition at line 641 of file expr_value.h.

References d_str.

Referenced by operator==().

ExprValue * CVC3::ExprString::copy ( ExprManager em,
ExprIndex  idx = 0 
) const [protected, virtual]

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

Reimplemented from CVC3::ExprValue.

Definition at line 145 of file expr_value.cpp.

References d_str, ExprString(), CVC3::ExprManager::getMM(), and getMMIndex().

bool CVC3::ExprString::operator== ( const ExprValue ev2  )  const [virtual]

Equality between any two ExprValue objects (including subclasses).

Reimplemented from CVC3::ExprValue.

Definition at line 138 of file expr_value.cpp.

References CVC3::ExprValue::getMMIndex(), getMMIndex(), CVC3::ExprValue::getString(), and getString().

void* CVC3::ExprString::operator new ( size_t  size,
MemoryManager mm 
) [inline]

Overload operator new.

Reimplemented from CVC3::ExprValue.

Definition at line 654 of file expr_value.h.

References CVC3::MemoryManager::newData().

void CVC3::ExprString::operator delete ( void *  pMem,
MemoryManager mm 
) [inline]

Reimplemented from CVC3::ExprValue.

Definition at line 657 of file expr_value.h.

References CVC3::MemoryManager::deleteData().

void CVC3::ExprString::operator delete ( void *   )  [inline]

Overload operator delete.

Reimplemented from CVC3::ExprValue.

Definition at line 660 of file expr_value.h.


Friends And Related Function Documentation

friend class Expr [friend]

Reimplemented from CVC3::ExprValue.

Definition at line 623 of file expr_value.h.

friend class ExprManager [friend]

Reimplemented from CVC3::ExprValue.

Definition at line 624 of file expr_value.h.


Member Data Documentation

std::string CVC3::ExprString::d_str [private]

Definition at line 626 of file expr_value.h.

Referenced by computeHash(), copy(), and getString().


The documentation for this class was generated from the following files:
Generated on Tue Jul 3 14:36:42 2007 for CVC3 by  doxygen 1.5.1