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

Public Member Functions

 params (context &c)
 
 params (params const &s)
 
 ~params ()
 
 operator Z3_params () const
 
paramsoperator= (params const &s)
 
void set (char const *k, bool b)
 
void set (char const *k, unsigned n)
 
void set (char const *k, double n)
 
void set (char const *k, symbol const &s)
 
- 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, params const &p)
 

Additional Inherited Members

- Protected Attributes inherited from object
contextm_ctx
 

Detailed Description

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

Constructor & Destructor Documentation

params ( context c)
inline

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

301 :object(c) { m_params = Z3_mk_params(c); Z3_params_inc_ref(ctx(), m_params); }
void Z3_API Z3_params_inc_ref(__in Z3_context c, __in Z3_params p)
Increment the reference counter of the given parameter set.
context & ctx() const
Definition: z3++.h:272
object(context &c)
Definition: z3++.h:270
Z3_params Z3_API Z3_mk_params(__in Z3_context c)
Create a Z3 (empty) parameter set. Starting at Z3 4.0, parameter sets are used to configure many comp...
params ( params const &  s)
inline

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

302 :object(s), m_params(s.m_params) { Z3_params_inc_ref(ctx(), m_params); }
void Z3_API Z3_params_inc_ref(__in Z3_context c, __in Z3_params p)
Increment the reference counter of the given parameter set.
context & ctx() const
Definition: z3++.h:272
object(context &c)
Definition: z3++.h:270
~params ( )
inline

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

303 { Z3_params_dec_ref(ctx(), m_params); }
void Z3_API Z3_params_dec_ref(__in Z3_context c, __in Z3_params p)
Decrement the reference counter of the given parameter set.
context & ctx() const
Definition: z3++.h:272

Member Function Documentation

operator Z3_params ( ) const
inline

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

304 { return m_params; }
params& operator= ( params const &  s)
inline

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

305  {
306  Z3_params_inc_ref(s.ctx(), s.m_params);
307  Z3_params_dec_ref(ctx(), m_params);
308  m_ctx = s.m_ctx;
309  m_params = s.m_params;
310  return *this;
311  }
void Z3_API Z3_params_dec_ref(__in Z3_context c, __in Z3_params p)
Decrement the reference counter of the given parameter set.
void Z3_API Z3_params_inc_ref(__in Z3_context c, __in Z3_params p)
Increment the reference counter of the given parameter set.
context & ctx() const
Definition: z3++.h:272
context * m_ctx
Definition: z3++.h:268
void set ( char const *  k,
bool  b 
)
inline

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

312 { Z3_params_set_bool(ctx(), m_params, ctx().str_symbol(k), b); }
context & ctx() const
Definition: z3++.h:272
void Z3_API Z3_params_set_bool(__in Z3_context c, __in Z3_params p, __in Z3_symbol k, __in Z3_bool v)
Add a Boolean parameter k with value v to the parameter set p.
void set ( char const *  k,
unsigned  n 
)
inline

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

313 { Z3_params_set_uint(ctx(), m_params, ctx().str_symbol(k), n); }
void Z3_API Z3_params_set_uint(__in Z3_context c, __in Z3_params p, __in Z3_symbol k, __in unsigned v)
Add a unsigned parameter k with value v to the parameter set p.
context & ctx() const
Definition: z3++.h:272
void set ( char const *  k,
double  n 
)
inline

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

314 { Z3_params_set_double(ctx(), m_params, ctx().str_symbol(k), n); }
context & ctx() const
Definition: z3++.h:272
void Z3_API Z3_params_set_double(__in Z3_context c, __in Z3_params p, __in Z3_symbol k, __in double v)
Add a double parameter k with value v to the parameter set p.
void set ( char const *  k,
symbol const &  s 
)
inline

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

315 { Z3_params_set_symbol(ctx(), m_params, ctx().str_symbol(k), s); }
void Z3_API Z3_params_set_symbol(__in Z3_context c, __in Z3_params p, __in Z3_symbol k, __in Z3_symbol v)
Add a symbol parameter k with value v to the parameter set p.
context & ctx() const
Definition: z3++.h:272

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
params const &  p 
)
friend

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

316  {
317  out << Z3_params_to_string(p.ctx(), p); return out;
318  }
Z3_string Z3_API Z3_params_to_string(__in Z3_context c, __in Z3_params p)
Convert a parameter set into a string. This function is mainly used for printing the contents of a pa...