Z3
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions
func_entry Class Reference
+ Inheritance diagram for func_entry:

Public Member Functions

 func_entry (context &c, Z3_func_entry e)
 
 func_entry (func_entry const &s)
 
 ~func_entry ()
 
 operator Z3_func_entry () const
 
func_entryoperator= (func_entry const &s)
 
expr value () const
 
unsigned num_args () const
 
expr arg (unsigned i) const
 
- Public Member Functions inherited from object
 object (context &c)
 
 object (object const &s)
 
contextctx () const
 
Z3_error_code check_error () const
 

Additional Inherited Members

- Protected Attributes inherited from object
contextm_ctx
 

Detailed Description

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

Constructor & Destructor Documentation

func_entry ( context c,
Z3_func_entry  e 
)
inline

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

2058 :object(c) { init(e); }
object(context &c)
Definition: z3++.h:404
func_entry ( func_entry const &  s)
inline

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

2059 :object(s) { init(s.m_entry); }
object(context &c)
Definition: z3++.h:404
~func_entry ( )
inline

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

2060 { Z3_func_entry_dec_ref(ctx(), m_entry); }
context & ctx() const
Definition: z3++.h:406
void Z3_API Z3_func_entry_dec_ref(Z3_context c, Z3_func_entry e)
Decrement the reference counter of the given Z3_func_entry object.

Member Function Documentation

expr arg ( unsigned  i) const
inline

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

Referenced by AstRef::__bool__().

2071 { Z3_ast r = Z3_func_entry_get_arg(ctx(), m_entry, i); check_error(); return expr(ctx(), r); }
Z3_ast Z3_API Z3_func_entry_get_arg(Z3_context c, Z3_func_entry e, unsigned i)
Return an argument of a Z3_func_entry object.
Z3_error_code check_error() const
Definition: z3++.h:407
context & ctx() const
Definition: z3++.h:406
unsigned num_args ( ) const
inline

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

Referenced by AstRef::__bool__().

2070 { unsigned r = Z3_func_entry_get_num_args(ctx(), m_entry); check_error(); return r; }
Z3_error_code check_error() const
Definition: z3++.h:407
context & ctx() const
Definition: z3++.h:406
unsigned Z3_API Z3_func_entry_get_num_args(Z3_context c, Z3_func_entry e)
Return the number of arguments in a Z3_func_entry object.
operator Z3_func_entry ( ) const
inline

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

2061 { return m_entry; }
func_entry& operator= ( func_entry const &  s)
inline

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

2062  {
2063  Z3_func_entry_inc_ref(s.ctx(), s.m_entry);
2064  Z3_func_entry_dec_ref(ctx(), m_entry);
2065  m_ctx = s.m_ctx;
2066  m_entry = s.m_entry;
2067  return *this;
2068  }
void Z3_API Z3_func_entry_inc_ref(Z3_context c, Z3_func_entry e)
Increment the reference counter of the given Z3_func_entry object.
context & ctx() const
Definition: z3++.h:406
context * m_ctx
Definition: z3++.h:402
void Z3_API Z3_func_entry_dec_ref(Z3_context c, Z3_func_entry e)
Decrement the reference counter of the given Z3_func_entry object.
expr value ( ) const
inline

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

2069 { Z3_ast r = Z3_func_entry_get_value(ctx(), m_entry); check_error(); return expr(ctx(), r); }
Z3_error_code check_error() const
Definition: z3++.h:407
context & ctx() const
Definition: z3++.h:406
Z3_ast Z3_API Z3_func_entry_get_value(Z3_context c, Z3_func_entry e)
Return the value of this point.