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

Constructor & Destructor Documentation

◆ iterator()

iterator ( expr & e,
unsigned i )
inline

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

1622: 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 1626 of file z3++.h.

1626 {
1627 return i != other.i;
1628 }

◆ operator*()

expr operator* ( ) const
inline

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

1629{ return e.arg(i); }

◆ operator++() [1/2]

iterator & operator++ ( )
inline

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

1630{ ++i; return *this; }

◆ operator++() [2/2]

iterator operator++ ( int )
inline

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

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

◆ operator==()

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

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

1623 {
1624 return i == other.i;
1625 }