Z3
Loading...
Searching...
No Matches
expr::iterator Class Reference

#include <z3++.h>

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

Constructor & Destructor Documentation

◆ iterator()

iterator ( expr & e,
unsigned i )
inline

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

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

Referenced by operator!=(), operator++(), operator++(), and operator==().

Member Function Documentation

◆ operator!=()

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

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

1814 {
1815 return i != other.i;
1816 }

◆ operator*()

expr operator* ( ) const
inline

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

1817{ return e.arg(i); }

◆ operator++() [1/2]

iterator & operator++ ( )
inline

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

1818{ ++i; return *this; }

◆ operator++() [2/2]

iterator operator++ ( int )
inline

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

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

◆ operator==()

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

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

1811 {
1812 return i == other.i;
1813 }