Z3
Public Member Functions
expr::iterator Class Reference

Public Member Functions

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

Detailed Description

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

Constructor & Destructor Documentation

◆ iterator()

iterator ( expr e,
unsigned  i 
)
inline

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

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

Member Function Documentation

◆ operator!=()

bool operator!= ( iterator const &  other) const
inlinenoexcept

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

1609  {
1610  return i != other.i;
1611  }

◆ operator*()

expr operator* ( ) const
inline

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

1612 { 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:1208

◆ operator++() [1/2]

iterator& operator++ ( )
inline

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

1613 { ++i; return *this; }

◆ operator++() [2/2]

iterator operator++ ( int  )
inline

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

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

◆ operator==()

bool operator== ( iterator const &  other) const
inlinenoexcept

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

1606  {
1607  return i == other.i;
1608  }