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

Constructor & Destructor Documentation

◆ cube_iterator()

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

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

2770  :
2771  m_solver(s),
2772  m_cutoff(cutoff),
2773  m_vars(vars),
2774  m_cube(s.ctx()),
2775  m_end(end),
2776  m_empty(false) {
2777  if (!m_end) {
2778  inc();
2779  }
2780  }

Member Function Documentation

◆ operator!=()

bool operator!= ( cube_iterator const &  other)
inlinenoexcept

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

2799  {
2800  return other.m_end != m_end;
2801  };

◆ operator*()

expr_vector const& operator* ( ) const
inlinenoexcept

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

2794 { return m_cube; }

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

◆ operator++() [1/2]

cube_iterator& operator++ ( )
inline

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

2782  {
2783  assert(!m_end);
2784  if (m_empty) {
2785  m_end = true;
2786  }
2787  else {
2788  inc();
2789  }
2790  return *this;
2791  }

◆ operator++() [2/2]

cube_iterator operator++ ( int  )
inline

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

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

◆ operator->()

expr_vector const* operator-> ( ) const
inline

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

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

◆ operator==()

bool operator== ( cube_iterator const &  other)
inlinenoexcept

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

2796  {
2797  return other.m_end == m_end;
2798  };