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

Constructor & Destructor Documentation

◆ cube_iterator()

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

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

2833  :
2834  m_solver(s),
2835  m_cutoff(cutoff),
2836  m_vars(vars),
2837  m_cube(s.ctx()),
2838  m_end(end),
2839  m_empty(false) {
2840  if (!m_end) {
2841  inc();
2842  }
2843  }

Member Function Documentation

◆ operator!=()

bool operator!= ( cube_iterator const &  other)
inlinenoexcept

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

2862  {
2863  return other.m_end != m_end;
2864  };

◆ operator*()

expr_vector const& operator* ( ) const
inlinenoexcept

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

2857 { return m_cube; }

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

◆ operator++() [1/2]

cube_iterator& operator++ ( )
inline

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

2845  {
2846  assert(!m_end);
2847  if (m_empty) {
2848  m_end = true;
2849  }
2850  else {
2851  inc();
2852  }
2853  return *this;
2854  }

◆ operator++() [2/2]

cube_iterator operator++ ( int  )
inline

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

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

◆ operator->()

expr_vector const* operator-> ( ) const
inline

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

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

◆ operator==()

bool operator== ( cube_iterator const &  other)
inlinenoexcept

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

2859  {
2860  return other.m_end == m_end;
2861  };