Z3
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
 
void 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 1210 of file z3++.h.

Constructor & Destructor Documentation

stats ( context c)
inline

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

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

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

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

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

1219 :object(s) { init(s.m_stats); }
object(context &c)
Definition: z3++.h:270
~stats ( )
inline

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

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

Member Function Documentation

double double_value ( unsigned  i) const
inline

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

1234 { double r = Z3_stats_get_double_value(ctx(), m_stats, i); check_error(); return r; }
context & ctx() const
Definition: z3++.h:272
double Z3_API Z3_stats_get_double_value(__in Z3_context c, __in Z3_stats s, __in unsigned idx)
Return the double value of the given statistical data.
void check_error() const
Definition: z3++.h:273
bool is_double ( unsigned  i) const
inline

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

1232 { Z3_bool r = Z3_stats_is_double(ctx(), m_stats, i); check_error(); return r != 0; }
int Z3_bool
Z3 Boolean type. It is just an alias for int.
Definition: z3_api.h:102
Z3_bool Z3_API Z3_stats_is_double(__in Z3_context c, __in Z3_stats s, __in unsigned idx)
Return Z3_TRUE if the given statistical data is a double.
context & ctx() const
Definition: z3++.h:272
void check_error() const
Definition: z3++.h:273
bool is_uint ( unsigned  i) const
inline

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

1231 { Z3_bool r = Z3_stats_is_uint(ctx(), m_stats, i); check_error(); return r != 0; }
int Z3_bool
Z3 Boolean type. It is just an alias for int.
Definition: z3_api.h:102
context & ctx() const
Definition: z3++.h:272
void check_error() const
Definition: z3++.h:273
Z3_bool Z3_API Z3_stats_is_uint(__in Z3_context c, __in Z3_stats s, __in unsigned idx)
Return Z3_TRUE if the given statistical data is a unsigned integer.
std::string key ( unsigned  i) const
inline

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

1230 { Z3_string s = Z3_stats_get_key(ctx(), m_stats, i); check_error(); return s; }
context & ctx() const
Definition: z3++.h:272
Z3_string Z3_API Z3_stats_get_key(__in Z3_context c, __in Z3_stats s, __in unsigned idx)
Return the key (a string) for a particular statistical data.
void check_error() const
Definition: z3++.h:273
const char * Z3_string
Z3 string type. It is just an alias for const char *.
Definition: z3_api.h:111
operator Z3_stats ( ) const
inline

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

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

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

1222  {
1223  Z3_stats_inc_ref(s.ctx(), s.m_stats);
1224  if (m_stats) Z3_stats_dec_ref(ctx(), m_stats);
1225  m_ctx = s.m_ctx;
1226  m_stats = s.m_stats;
1227  return *this;
1228  }
void Z3_API Z3_stats_inc_ref(__in Z3_context c, __in Z3_stats s)
Increment the reference counter of the given statistics object.
context & ctx() const
Definition: z3++.h:272
void Z3_API Z3_stats_dec_ref(__in Z3_context c, __in Z3_stats s)
Decrement the reference counter of the given statistics object.
context * m_ctx
Definition: z3++.h:268
unsigned size ( ) const
inline

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

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

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

1233 { unsigned r = Z3_stats_get_uint_value(ctx(), m_stats, i); check_error(); return r; }
context & ctx() const
Definition: z3++.h:272
void check_error() const
Definition: z3++.h:273
unsigned Z3_API Z3_stats_get_uint_value(__in Z3_context c, __in Z3_stats s, __in 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 1235 of file z3++.h.

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