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 2361 of file z3++.h.

Constructor & Destructor Documentation

◆ cube_iterator()

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

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

2382  :
2383  m_solver(s),
2384  m_cutoff(cutoff),
2385  m_vars(vars),
2386  m_cube(s.ctx()),
2387  m_end(end),
2388  m_empty(false) {
2389  if (!m_end) {
2390  inc();
2391  }
2392  }

Member Function Documentation

◆ operator!=()

bool operator!= ( cube_iterator const &  other)
inline

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

2411  {
2412  return other.m_end != m_end;
2413  };

◆ operator*()

expr_vector const& operator* ( ) const
inline

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

2406 { return m_cube; }

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

◆ operator++() [1/2]

cube_iterator& operator++ ( )
inline

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

2394  {
2395  assert(!m_end);
2396  if (m_empty) {
2397  m_end = true;
2398  }
2399  else {
2400  inc();
2401  }
2402  return *this;
2403  }

◆ operator++() [2/2]

cube_iterator operator++ ( int  )
inline

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

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

◆ operator->()

expr_vector const* operator-> ( ) const
inline

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

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

◆ operator==()

bool operator== ( cube_iterator const &  other)
inline

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

2408  {
2409  return other.m_end == m_end;
2410  };