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 noexcept
 
bool operator== (cube_iterator const &other) noexcept
 
bool operator!= (cube_iterator const &other) noexcept
 

Detailed Description

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

Constructor & Destructor Documentation

◆ cube_iterator()

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

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

2783  :
2784  m_solver(s),
2785  m_cutoff(cutoff),
2786  m_vars(vars),
2787  m_cube(s.ctx()),
2788  m_end(end),
2789  m_empty(false) {
2790  if (!m_end) {
2791  inc();
2792  }
2793  }

Member Function Documentation

◆ operator!=()

bool operator!= ( cube_iterator const &  other)
inlinenoexcept

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

2812  {
2813  return other.m_end != m_end;
2814  };

◆ operator*()

expr_vector const& operator* ( ) const
inlinenoexcept

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

2807 { return m_cube; }

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

◆ operator++() [1/2]

cube_iterator& operator++ ( )
inline

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

2795  {
2796  assert(!m_end);
2797  if (m_empty) {
2798  m_end = true;
2799  }
2800  else {
2801  inc();
2802  }
2803  return *this;
2804  }

◆ operator++() [2/2]

cube_iterator operator++ ( int  )
inline

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

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

◆ operator->()

expr_vector const* operator-> ( ) const
inline

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

2806 { return &(operator*()); }
expr_vector const & operator*() const noexcept
Definition: z3++.h:2807

◆ operator==()

bool operator== ( cube_iterator const &  other)
inlinenoexcept

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

2809  {
2810  return other.m_end == m_end;
2811  };