Z3
Public Member Functions
func_interp Class Reference
+ Inheritance diagram for func_interp:

Public Member Functions

 func_interp (context &c, Z3_func_interp e)
 
 func_interp (func_interp const &s)
 
 ~func_interp ()
 
 operator Z3_func_interp () const
 
func_interpoperator= (func_interp const &s)
 
expr else_value () const
 
unsigned num_entries () const
 
func_entry entry (unsigned i) const
 
- Public Member Functions inherited from object
 object (context &c)
 
 object (object const &s)
 
contextctx () const
 
void check_error () const
 

Additional Inherited Members

- Protected Attributes inherited from object
contextm_ctx
 

Detailed Description

Definition at line 1559 of file z3++.h.

Constructor & Destructor Documentation

§ func_interp() [1/2]

func_interp ( context c,
Z3_func_interp  e 
)
inline

Definition at line 1566 of file z3++.h.

1566 :object(c) { init(e); }
object(context &c)
Definition: z3++.h:330

§ func_interp() [2/2]

func_interp ( func_interp const &  s)
inline

Definition at line 1567 of file z3++.h.

1567 :object(s) { init(s.m_interp); }
object(context &c)
Definition: z3++.h:330

§ ~func_interp()

~func_interp ( )
inline

Definition at line 1568 of file z3++.h.

1568 { Z3_func_interp_dec_ref(ctx(), m_interp); }
void Z3_API Z3_func_interp_dec_ref(Z3_context c, Z3_func_interp f)
Decrement the reference counter of the given Z3_func_interp object.
context & ctx() const
Definition: z3++.h:332

Member Function Documentation

§ else_value()

expr else_value ( ) const
inline

Definition at line 1577 of file z3++.h.

1577 { Z3_ast r = Z3_func_interp_get_else(ctx(), m_interp); check_error(); return expr(ctx(), r); }
context & ctx() const
Definition: z3++.h:332
Z3_ast Z3_API Z3_func_interp_get_else(Z3_context c, Z3_func_interp f)
Return the 'else' value of the given function interpretation.
void check_error() const
Definition: z3++.h:333

§ entry()

func_entry entry ( unsigned  i) const
inline

Definition at line 1579 of file z3++.h.

1579 { Z3_func_entry e = Z3_func_interp_get_entry(ctx(), m_interp, i); check_error(); return func_entry(ctx(), e); }
context & ctx() const
Definition: z3++.h:332
Z3_func_entry Z3_API Z3_func_interp_get_entry(Z3_context c, Z3_func_interp f, unsigned i)
Return a "point" of the given function intepretation. It represents the value of f in a particular po...
void check_error() const
Definition: z3++.h:333

§ num_entries()

unsigned num_entries ( ) const
inline

Definition at line 1578 of file z3++.h.

Referenced by FuncInterp::entry().

1578 { unsigned r = Z3_func_interp_get_num_entries(ctx(), m_interp); check_error(); return r; }
context & ctx() const
Definition: z3++.h:332
unsigned Z3_API Z3_func_interp_get_num_entries(Z3_context c, Z3_func_interp f)
Return the number of entries in the given function interpretation.
void check_error() const
Definition: z3++.h:333

§ operator Z3_func_interp()

operator Z3_func_interp ( ) const
inline

Definition at line 1569 of file z3++.h.

1569 { return m_interp; }

§ operator=()

func_interp& operator= ( func_interp const &  s)
inline

Definition at line 1570 of file z3++.h.

1570  {
1571  Z3_func_interp_inc_ref(s.ctx(), s.m_interp);
1572  Z3_func_interp_dec_ref(ctx(), m_interp);
1573  m_ctx = s.m_ctx;
1574  m_interp = s.m_interp;
1575  return *this;
1576  }
void Z3_API Z3_func_interp_inc_ref(Z3_context c, Z3_func_interp f)
Increment the reference counter of the given Z3_func_interp object.
void Z3_API Z3_func_interp_dec_ref(Z3_context c, Z3_func_interp f)
Decrement the reference counter of the given Z3_func_interp object.
context & ctx() const
Definition: z3++.h:332
context * m_ctx
Definition: z3++.h:328