Z3
Public Member Functions
solver::cube_iterator Class Reference

Public Member Functions

 cube_iterator (solver &s, expr_vector &vars, unsigned &cutoff, bool end)
 
cube_iteratoroperator++ ()
 
cube_iterator operator++ (int)
 
expr_vector const * operator-> () const
 
expr_vector const & operator* () const
 
bool operator== (cube_iterator const &other)
 
bool operator!= (cube_iterator const &other)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ cube_iterator()

cube_iterator ( solver s,
expr_vector vars,
unsigned &  cutoff,
bool  end 
)
inline

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

2266  :
2267  m_solver(s),
2268  m_cutoff(cutoff),
2269  m_vars(vars),
2270  m_cube(s.ctx()),
2271  m_end(end),
2272  m_empty(false) {
2273  if (!m_end) {
2274  inc();
2275  }
2276  }

Member Function Documentation

◆ operator!=()

bool operator!= ( cube_iterator const &  other)
inline

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

2295  {
2296  return other.m_end != m_end;
2297  };

◆ operator*()

expr_vector const& operator* ( ) const
inline

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

Referenced by solver::cube_iterator::operator->().

2290 { return m_cube; }

◆ operator++() [1/2]

cube_iterator& operator++ ( )
inline

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

2278  {
2279  assert(!m_end);
2280  if (m_empty) {
2281  m_end = true;
2282  }
2283  else {
2284  inc();
2285  }
2286  return *this;
2287  }

◆ operator++() [2/2]

cube_iterator operator++ ( int  )
inline

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

2288 { assert(false); return *this; }

◆ operator->()

expr_vector const* operator-> ( ) const
inline

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

2289 { return &(operator*()); }
expr_vector const & operator*() const
Definition: z3++.h:2290

◆ operator==()

bool operator== ( cube_iterator const &  other)
inline

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

2292  {
2293  return other.m_end == m_end;
2294  };