Z3
Public Member Functions | Friends
apply_result Class Reference
+ Inheritance diagram for apply_result:

Public Member Functions

 apply_result (context &c, Z3_apply_result s)
 
 apply_result (apply_result const &s)
 
 ~apply_result ()
 
 operator Z3_apply_result () const
 
apply_resultoperator= (apply_result const &s)
 
unsigned size () const
 
goal operator[] (int i) const
 
- Public Member Functions inherited from object
 object (context &c)
 
 object (object const &s)
 
contextctx () const
 
Z3_error_code check_error () const
 

Friends

std::ostream & operator<< (std::ostream &out, apply_result const &r)
 

Additional Inherited Members

- Protected Attributes inherited from object
contextm_ctx
 

Detailed Description

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

Constructor & Destructor Documentation

◆ apply_result() [1/2]

apply_result ( context c,
Z3_apply_result  s 
)
inline

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

2644 :object(c) { init(s); }

◆ apply_result() [2/2]

apply_result ( apply_result const &  s)
inline

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

2645 :object(s) { init(s.m_apply_result); }

◆ ~apply_result()

~apply_result ( )
inline

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

2646 { Z3_apply_result_dec_ref(ctx(), m_apply_result); }

Member Function Documentation

◆ operator Z3_apply_result()

operator Z3_apply_result ( ) const
inline

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

2647 { return m_apply_result; }

◆ operator=()

apply_result& operator= ( apply_result const &  s)
inline

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

2648  {
2649  Z3_apply_result_inc_ref(s.ctx(), s.m_apply_result);
2650  Z3_apply_result_dec_ref(ctx(), m_apply_result);
2651  m_ctx = s.m_ctx;
2652  m_apply_result = s.m_apply_result;
2653  return *this;
2654  }

◆ operator[]()

goal operator[] ( int  i) const
inline

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

2656 { assert(0 <= i); Z3_goal r = Z3_apply_result_get_subgoal(ctx(), m_apply_result, i); check_error(); return goal(ctx(), r); }

◆ size()

unsigned size ( ) const
inline

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

2655 { return Z3_apply_result_get_num_subgoals(ctx(), m_apply_result); }

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
apply_result const &  r 
)
friend

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

2659 { out << Z3_apply_result_to_string(r.ctx(), r); return out; }
Z3_apply_result_to_string
Z3_string Z3_API Z3_apply_result_to_string(Z3_context c, Z3_apply_result r)
Convert the Z3_apply_result object returned by Z3_tactic_apply into a string.
Z3_apply_result_get_num_subgoals
unsigned Z3_API Z3_apply_result_get_num_subgoals(Z3_context c, Z3_apply_result r)
Return the number of subgoals in the Z3_apply_result object returned by Z3_tactic_apply.
z3::object::object
object(context &c)
Definition: z3++.h:416
z3::object::m_ctx
context * m_ctx
Definition: z3++.h:414
Z3_apply_result_get_subgoal
Z3_goal Z3_API Z3_apply_result_get_subgoal(Z3_context c, Z3_apply_result r, unsigned i)
Return one of the subgoals in the Z3_apply_result object returned by Z3_tactic_apply.
Z3_apply_result_dec_ref
void Z3_API Z3_apply_result_dec_ref(Z3_context c, Z3_apply_result r)
Decrement the reference counter of the given Z3_apply_result object.
Z3_apply_result_inc_ref
void Z3_API Z3_apply_result_inc_ref(Z3_context c, Z3_apply_result r)
Increment the reference counter of the given Z3_apply_result object.
z3::object::check_error
Z3_error_code check_error() const
Definition: z3++.h:419
z3::object::ctx
context & ctx() const
Definition: z3++.h:418