Z3
Public Member Functions
expr::iterator Class Reference

Public Member Functions

 iterator (expr &e, unsigned i)
 
bool operator== (iterator const &other) noexcept
 
bool operator!= (iterator const &other) noexcept
 
expr operator* () const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ iterator()

iterator ( expr e,
unsigned  i 
)
inline

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

1544 : e(e), i(i) {}

Member Function Documentation

◆ operator!=()

bool operator!= ( iterator const &  other)
inlinenoexcept

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

1548  {
1549  return i != other.i;
1550  }

◆ operator*()

expr operator* ( ) const
inline

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

1551 { return e.arg(i); }
expr arg(unsigned i) const
Return the i-th argument of this application. This method assumes the expression is an application.
Definition: z3++.h:1152

◆ operator++() [1/2]

iterator& operator++ ( )
inline

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

1552 { ++i; return *this; }

◆ operator++() [2/2]

iterator operator++ ( int  )
inline

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

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

◆ operator==()

bool operator== ( iterator const &  other)
inlinenoexcept

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

1545  {
1546  return i == other.i;
1547  }