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

Public Member Functions

 probe (context &c, char const *name)
 
 probe (context &c, double val)
 
 probe (context &c, Z3_probe s)
 
 probe (probe const &s)
 
 ~probe ()
 
 operator Z3_probe () const
 
probeoperator= (probe const &s)
 
double apply (goal const &g) const
 
double operator() (goal const &g) const
 
- Public Member Functions inherited from object
 object (context &c)
 
 object (object const &s)
 
contextctx () const
 
void check_error () const
 

Friends

probe operator<= (probe const &p1, probe const &p2)
 
probe operator<= (probe const &p1, double p2)
 
probe operator<= (double p1, probe const &p2)
 
probe operator>= (probe const &p1, probe const &p2)
 
probe operator>= (probe const &p1, double p2)
 
probe operator>= (double p1, probe const &p2)
 
probe operator< (probe const &p1, probe const &p2)
 
probe operator< (probe const &p1, double p2)
 
probe operator< (double p1, probe const &p2)
 
probe operator> (probe const &p1, probe const &p2)
 
probe operator> (probe const &p1, double p2)
 
probe operator> (double p1, probe const &p2)
 
probe operator== (probe const &p1, probe const &p2)
 
probe operator== (probe const &p1, double p2)
 
probe operator== (double p1, probe const &p2)
 
probe operator&& (probe const &p1, probe const &p2)
 
probe operator|| (probe const &p1, probe const &p2)
 
probe operator! (probe const &p)
 

Additional Inherited Members

- Protected Attributes inherited from object
contextm_ctx
 

Detailed Description

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

Constructor & Destructor Documentation

probe ( context c,
char const *  name 
)
inline

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

:object(c) { Z3_probe r = Z3_mk_probe(c, name); check_error(); init(r); }
probe ( context c,
double  val 
)
inline

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

:object(c) { Z3_probe r = Z3_probe_const(c, val); check_error(); init(r); }
probe ( context c,
Z3_probe  s 
)
inline

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

:object(c) { init(s); }
probe ( probe const &  s)
inline

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

:object(s) { init(s.m_probe); }
~probe ( )
inline

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

{ Z3_probe_dec_ref(ctx(), m_probe); }

Member Function Documentation

double apply ( goal const &  g) const
inline

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

Referenced by Tactic::__call__(), and probe::operator()().

{ double r = Z3_probe_apply(ctx(), m_probe, g); check_error(); return r; }
operator Z3_probe ( ) const
inline

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

{ return m_probe; }
double operator() ( goal const &  g) const
inline

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

{ return apply(g); }
probe& operator= ( probe const &  s)
inline

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

{
Z3_probe_inc_ref(s.ctx(), s.m_probe);
Z3_probe_dec_ref(ctx(), m_probe);
m_ctx = s.m_ctx;
m_probe = s.m_probe;
return *this;
}

Friends And Related Function Documentation

probe operator! ( probe const &  p)
friend

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

{
Z3_probe r = Z3_probe_not(p.ctx(), p); p.check_error(); return probe(p.ctx(), r);
}
probe operator&& ( probe const &  p1,
probe const &  p2 
)
friend

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

{
check_context(p1, p2); Z3_probe r = Z3_probe_and(p1.ctx(), p1, p2); p1.check_error(); return probe(p1.ctx(), r);
}
probe operator< ( probe const &  p1,
probe const &  p2 
)
friend

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

{
check_context(p1, p2); Z3_probe r = Z3_probe_lt(p1.ctx(), p1, p2); p1.check_error(); return probe(p1.ctx(), r);
}
probe operator< ( probe const &  p1,
double  p2 
)
friend

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

{ return p1 < probe(p1.ctx(), p2); }
probe operator< ( double  p1,
probe const &  p2 
)
friend

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

{ return probe(p2.ctx(), p1) < p2; }
probe operator<= ( probe const &  p1,
probe const &  p2 
)
friend

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

{
check_context(p1, p2); Z3_probe r = Z3_probe_le(p1.ctx(), p1, p2); p1.check_error(); return probe(p1.ctx(), r);
}
probe operator<= ( probe const &  p1,
double  p2 
)
friend

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

{ return p1 <= probe(p1.ctx(), p2); }
probe operator<= ( double  p1,
probe const &  p2 
)
friend

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

{ return probe(p2.ctx(), p1) <= p2; }
probe operator== ( probe const &  p1,
probe const &  p2 
)
friend

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

{
check_context(p1, p2); Z3_probe r = Z3_probe_eq(p1.ctx(), p1, p2); p1.check_error(); return probe(p1.ctx(), r);
}
probe operator== ( probe const &  p1,
double  p2 
)
friend

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

{ return p1 == probe(p1.ctx(), p2); }
probe operator== ( double  p1,
probe const &  p2 
)
friend

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

{ return probe(p2.ctx(), p1) == p2; }
probe operator> ( probe const &  p1,
probe const &  p2 
)
friend

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

{
check_context(p1, p2); Z3_probe r = Z3_probe_gt(p1.ctx(), p1, p2); p1.check_error(); return probe(p1.ctx(), r);
}
probe operator> ( probe const &  p1,
double  p2 
)
friend

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

{ return p1 > probe(p1.ctx(), p2); }
probe operator> ( double  p1,
probe const &  p2 
)
friend

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

{ return probe(p2.ctx(), p1) > p2; }
probe operator>= ( probe const &  p1,
probe const &  p2 
)
friend

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

{
check_context(p1, p2); Z3_probe r = Z3_probe_ge(p1.ctx(), p1, p2); p1.check_error(); return probe(p1.ctx(), r);
}
probe operator>= ( probe const &  p1,
double  p2 
)
friend

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

{ return p1 >= probe(p1.ctx(), p2); }
probe operator>= ( double  p1,
probe const &  p2 
)
friend

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

{ return probe(p2.ctx(), p1) >= p2; }
probe operator|| ( probe const &  p1,
probe const &  p2 
)
friend

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

{
check_context(p1, p2); Z3_probe r = Z3_probe_or(p1.ctx(), p1, p2); p1.check_error(); return probe(p1.ctx(), r);
}