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

Constructor & Destructor Documentation

◆ cube_iterator()

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

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

2512  :
2513  m_solver(s),
2514  m_cutoff(cutoff),
2515  m_vars(vars),
2516  m_cube(s.ctx()),
2517  m_end(end),
2518  m_empty(false) {
2519  if (!m_end) {
2520  inc();
2521  }
2522  }

Member Function Documentation

◆ operator!=()

bool operator!= ( cube_iterator const &  other)
inline

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

2541  {
2542  return other.m_end != m_end;
2543  };

◆ operator*()

expr_vector const& operator* ( ) const
inline

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

2536 { return m_cube; }

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

◆ operator++() [1/2]

cube_iterator& operator++ ( )
inline

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

2524  {
2525  assert(!m_end);
2526  if (m_empty) {
2527  m_end = true;
2528  }
2529  else {
2530  inc();
2531  }
2532  return *this;
2533  }

◆ operator++() [2/2]

cube_iterator operator++ ( int  )
inline

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

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

◆ operator->()

expr_vector const* operator-> ( ) const
inline

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

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

◆ operator==()

bool operator== ( cube_iterator const &  other)
inline

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

2538  {
2539  return other.m_end == m_end;
2540  };