Z3
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
 
model convert_model (model const &m, unsigned i=0) const
 
- Public Member Functions inherited from object
 object (context &c)
 
 object (object const &s)
 
contextctx () const
 
void 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 1364 of file z3++.h.

Constructor & Destructor Documentation

apply_result ( context c,
Z3_apply_result  s 
)
inline

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

1371 :object(c) { init(s); }
object(context &c)
Definition: z3++.h:270
apply_result ( apply_result const &  s)
inline

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

1372 :object(s) { init(s.m_apply_result); }
object(context &c)
Definition: z3++.h:270
~apply_result ( )
inline

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

1373 { Z3_apply_result_dec_ref(ctx(), m_apply_result); }
void Z3_API Z3_apply_result_dec_ref(__in Z3_context c, __in Z3_apply_result r)
Decrement the reference counter of the given Z3_apply_result object.
context & ctx() const
Definition: z3++.h:272

Member Function Documentation

model convert_model ( model const &  m,
unsigned  i = 0 
) const
inline

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

1384  {
1385  check_context(*this, m);
1386  Z3_model new_m = Z3_apply_result_convert_model(ctx(), m_apply_result, i, m);
1387  check_error();
1388  return model(ctx(), new_m);
1389  }
Z3_model Z3_API Z3_apply_result_convert_model(__in Z3_context c, __in Z3_apply_result r, __in unsigned i, __in Z3_model m)
Convert a model for the subgoal Z3_apply_result_get_subgoal(c, r, i) into a model for the original go...
context & ctx() const
Definition: z3++.h:272
void check_error() const
Definition: z3++.h:273
friend void check_context(object const &a, object const &b)
Definition: z3++.h:276
operator Z3_apply_result ( ) const
inline

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

1374 { return m_apply_result; }
apply_result& operator= ( apply_result const &  s)
inline

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

1375  {
1376  Z3_apply_result_inc_ref(s.ctx(), s.m_apply_result);
1377  Z3_apply_result_dec_ref(ctx(), m_apply_result);
1378  m_ctx = s.m_ctx;
1379  m_apply_result = s.m_apply_result;
1380  return *this;
1381  }
void Z3_API Z3_apply_result_inc_ref(__in Z3_context c, __in Z3_apply_result r)
Increment the reference counter of the given Z3_apply_result object.
void Z3_API Z3_apply_result_dec_ref(__in Z3_context c, __in Z3_apply_result r)
Decrement the reference counter of the given Z3_apply_result object.
context & ctx() const
Definition: z3++.h:272
context * m_ctx
Definition: z3++.h:268
goal operator[] ( int  i) const
inline

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

1383 { assert(0 <= i); Z3_goal r = Z3_apply_result_get_subgoal(ctx(), m_apply_result, i); check_error(); return goal(ctx(), r); }
Z3_goal Z3_API Z3_apply_result_get_subgoal(__in Z3_context c, __in Z3_apply_result r, __in unsigned i)
Return one of the subgoals in the Z3_apply_result object returned by Z3_tactic_apply.
context & ctx() const
Definition: z3++.h:272
void check_error() const
Definition: z3++.h:273
unsigned size ( ) const
inline

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

1382 { return Z3_apply_result_get_num_subgoals(ctx(), m_apply_result); }
context & ctx() const
Definition: z3++.h:272
unsigned Z3_API Z3_apply_result_get_num_subgoals(__in Z3_context c, __in Z3_apply_result r)
Return the number of subgoals in the Z3_apply_result object returned by Z3_tactic_apply.

Friends And Related Function Documentation

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

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

1390 { out << Z3_apply_result_to_string(r.ctx(), r); return out; }
Z3_string Z3_API Z3_apply_result_to_string(__in Z3_context c, __in Z3_apply_result r)
Convert the Z3_apply_result object returned by Z3_tactic_apply into a string.