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 () override
 
 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)
 
virtual ~object ()=default
 
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 2817 of file z3++.h.

Constructor & Destructor Documentation

stats ( context c)
inline

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

2824 :object(c), m_stats(0) {}
object(context &c)
Definition: z3++.h:538
stats ( context c,
Z3_stats  e 
)
inline

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

2825 :object(c) { init(e); }
object(context &c)
Definition: z3++.h:538
stats ( stats const &  s)
inline

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

2826 :object(s) { init(s.m_stats); }
object(context &c)
Definition: z3++.h:538
~stats ( )
inlineoverride

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

2827 { if (m_stats) Z3_stats_dec_ref(ctx(), m_stats); }
void Z3_API Z3_stats_dec_ref(Z3_context c, Z3_stats s)
Decrement the reference counter of the given statistics object.
context & ctx() const
Definition: z3++.h:540

Member Function Documentation

double double_value ( unsigned  i) const
inline

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

2841 { double r = Z3_stats_get_double_value(ctx(), m_stats, i); check_error(); return r; }
Z3_error_code check_error() const
Definition: z3++.h:541
context & ctx() const
Definition: z3++.h:540
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.
bool is_double ( unsigned  i) const
inline

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

2839 { bool r = Z3_stats_is_double(ctx(), m_stats, i); check_error(); return r; }
Z3_error_code check_error() const
Definition: z3++.h:541
context & ctx() const
Definition: z3++.h:540
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.
bool is_uint ( unsigned  i) const
inline

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

2838 { bool r = Z3_stats_is_uint(ctx(), m_stats, i); check_error(); return r; }
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_error_code check_error() const
Definition: z3++.h:541
context & ctx() const
Definition: z3++.h:540
std::string key ( unsigned  i) const
inline

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

2837 { Z3_string s = Z3_stats_get_key(ctx(), m_stats, i); check_error(); return s; }
Z3_error_code check_error() const
Definition: z3++.h:541
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.
context & ctx() const
Definition: z3++.h:540
const char * Z3_string
Z3 string type. It is just an alias for const char *.
Definition: z3_api.h:50
operator Z3_stats ( ) const
inline

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

2828 { return m_stats; }
stats& operator= ( stats const &  s)
inline

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

2829  {
2830  Z3_stats_inc_ref(s.ctx(), s.m_stats);
2831  if (m_stats) Z3_stats_dec_ref(ctx(), m_stats);
2832  object::operator=(s);
2833  m_stats = s.m_stats;
2834  return *this;
2835  }
void Z3_API Z3_stats_inc_ref(Z3_context c, Z3_stats s)
Increment the reference counter of the given statistics object.
void Z3_API Z3_stats_dec_ref(Z3_context c, Z3_stats s)
Decrement the reference counter of the given statistics object.
context & ctx() const
Definition: z3++.h:540
unsigned size ( ) const
inline

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

2836 { return Z3_stats_size(ctx(), m_stats); }
context & ctx() const
Definition: z3++.h:540
unsigned Z3_API Z3_stats_size(Z3_context c, Z3_stats s)
Return the number of statistical data in s.
unsigned uint_value ( unsigned  i) const
inline

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

2840 { unsigned r = Z3_stats_get_uint_value(ctx(), m_stats, i); check_error(); return r; }
Z3_error_code check_error() const
Definition: z3++.h:541
context & ctx() const
Definition: z3++.h:540
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.

Friends And Related Function Documentation

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

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

2844 { out << Z3_stats_to_string(s.ctx(), s); return out; }
Z3_string Z3_API Z3_stats_to_string(Z3_context c, Z3_stats s)
Convert a statistics into a string.