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

Public Member Functions

 stats (context &c)
 
 stats (context &c, Z3_stats e)
 
 stats (stats const &s)
 
 ~stats ()
 
 operator Z3_stats () const
 
statsoperator= (stats const &s)
 
unsigned size () const
 
std::string key (unsigned i) const
 
bool is_uint (unsigned i) const
 
bool is_double (unsigned i) const
 
unsigned uint_value (unsigned i) const
 
double double_value (unsigned 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, stats const &s)
 

Additional Inherited Members

- Protected Attributes inherited from object
contextm_ctx
 

Detailed Description

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

Constructor & Destructor Documentation

◆ stats() [1/3]

stats ( context c)
inline

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

2331 :object(c), m_stats(0) {}

◆ stats() [2/3]

stats ( context c,
Z3_stats  e 
)
inline

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

2332 :object(c) { init(e); }

◆ stats() [3/3]

stats ( stats const &  s)
inline

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

2333 :object(s) { init(s.m_stats); }

◆ ~stats()

~stats ( )
inline

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

2334 { if (m_stats) Z3_stats_dec_ref(ctx(), m_stats); }

Member Function Documentation

◆ double_value()

double double_value ( unsigned  i) const
inline

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

2348 { double r = Z3_stats_get_double_value(ctx(), m_stats, i); check_error(); return r; }

◆ is_double()

bool is_double ( unsigned  i) const
inline

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

2346 { bool r = Z3_stats_is_double(ctx(), m_stats, i); check_error(); return r; }

◆ is_uint()

bool is_uint ( unsigned  i) const
inline

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

2345 { bool r = Z3_stats_is_uint(ctx(), m_stats, i); check_error(); return r; }

◆ key()

std::string key ( unsigned  i) const
inline

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

2344 { Z3_string s = Z3_stats_get_key(ctx(), m_stats, i); check_error(); return s; }

◆ operator Z3_stats()

operator Z3_stats ( ) const
inline

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

2335 { return m_stats; }

◆ operator=()

stats& operator= ( stats const &  s)
inline

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

2336  {
2337  Z3_stats_inc_ref(s.ctx(), s.m_stats);
2338  if (m_stats) Z3_stats_dec_ref(ctx(), m_stats);
2339  m_ctx = s.m_ctx;
2340  m_stats = s.m_stats;
2341  return *this;
2342  }

◆ size()

unsigned size ( ) const
inline

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

2343 { return Z3_stats_size(ctx(), m_stats); }

◆ uint_value()

unsigned uint_value ( unsigned  i) const
inline

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

2347 { unsigned r = Z3_stats_get_uint_value(ctx(), m_stats, i); check_error(); return r; }

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
stats const &  s 
)
friend

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

2351 { out << Z3_stats_to_string(s.ctx(), s); return out; }
Z3_stats_get_double_value
double Z3_API Z3_stats_get_double_value(Z3_context c, Z3_stats s, unsigned idx)
Return the double value of the given statistical data.
Z3_stats_is_uint
bool Z3_API Z3_stats_is_uint(Z3_context c, Z3_stats s, unsigned idx)
Return true if the given statistical data is a unsigned integer.
Z3_stats_get_uint_value
unsigned Z3_API Z3_stats_get_uint_value(Z3_context c, Z3_stats s, unsigned idx)
Return the unsigned value of the given statistical data.
Z3_stats_size
unsigned Z3_API Z3_stats_size(Z3_context c, Z3_stats s)
Return the number of statistical data in s.
z3::object::object
object(context &c)
Definition: z3++.h:416
z3::object::m_ctx
context * m_ctx
Definition: z3++.h:414
Z3_stats_to_string
Z3_string Z3_API Z3_stats_to_string(Z3_context c, Z3_stats s)
Convert a statistics into a string.
Z3_stats_dec_ref
void Z3_API Z3_stats_dec_ref(Z3_context c, Z3_stats s)
Decrement the reference counter of the given statistics object.
Z3_stats_is_double
bool Z3_API Z3_stats_is_double(Z3_context c, Z3_stats s, unsigned idx)
Return true if the given statistical data is a double.
Z3_stats_inc_ref
void Z3_API Z3_stats_inc_ref(Z3_context c, Z3_stats s)
Increment the reference counter of the given statistics object.
Z3_stats_get_key
Z3_string Z3_API Z3_stats_get_key(Z3_context c, Z3_stats s, unsigned idx)
Return the key (a string) for a particular statistical data.
z3::object::check_error
Z3_error_code check_error() const
Definition: z3++.h:419
z3::object::ctx
context & ctx() const
Definition: z3++.h:418
Z3_string
const typedef char * Z3_string
Z3 string type. It is just an alias for const char *.
Definition: z3_api.h:84