Z3
 
Loading...
Searching...
No Matches
Public Member Functions
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 1732 of file z3++.h.

Constructor & Destructor Documentation

◆ iterator()

iterator ( expr e,
unsigned  i 
)
inline

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

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

Member Function Documentation

◆ operator!=()

bool operator!= ( iterator const other) const
inlinenoexcept

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

1740 {
1741 return i != other.i;
1742 }

◆ operator*()

expr operator* ( ) const
inline

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

1743{ 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:1316

◆ operator++() [1/2]

iterator & operator++ ( )
inline

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

1744{ ++i; return *this; }

◆ operator++() [2/2]

iterator operator++ ( int  )
inline

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

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

◆ operator==()

bool operator== ( iterator const other) const
inlinenoexcept

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

1737 {
1738 return i == other.i;
1739 }