Z3
 
Loading...
Searching...
No Matches
Public Member Functions
ast_vector_tpl< T >::iterator Class Referencefinal

#include <z3++.h>

Public Member Functions

 iterator (ast_vector_tpl const *v, unsigned i)
 
bool operator== (iterator const &other) const noexcept
 
bool operator!= (iterator const &other) const noexcept
 
iteratoroperator++ () noexcept
 
void set (T &arg)
 
iterator operator++ (int) noexcept
 
Toperator-> () const
 
T operator* () const
 

Detailed Description

template<typename T>
class z3::ast_vector_tpl< T >::iterator

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

Constructor & Destructor Documentation

◆ iterator()

template<typename T >
iterator ( ast_vector_tpl const v,
unsigned  i 
)
inline

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

675: m_vector(v), m_index(i) {}

Member Function Documentation

◆ operator!=()

template<typename T >
bool operator!= ( iterator const other) const
inlinenoexcept

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

680 {
681 return other.m_index != m_index;
682 };

◆ operator*()

template<typename T >
T operator* ( ) const
inline

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

692{ return (*m_vector)[m_index]; }

Referenced by ast_vector_tpl< T >::iterator::operator->().

◆ operator++() [1/2]

template<typename T >
iterator & operator++ ( )
inlinenoexcept

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

683 {
684 ++m_index;
685 return *this;
686 }

◆ operator++() [2/2]

template<typename T >
iterator operator++ ( int  )
inlinenoexcept

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

690{ iterator tmp = *this; ++m_index; return tmp; }
iterator(ast_vector_tpl const *v, unsigned i)
Definition z3++.h:675

◆ operator->()

template<typename T >
T * operator-> ( ) const
inline

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

691{ return &(operator*()); }

◆ operator==()

template<typename T >
bool operator== ( iterator const other) const
inlinenoexcept

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

677 {
678 return other.m_index == m_index;
679 };

◆ set()

template<typename T >
void set ( T arg)
inline

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

687 {
688 Z3_ast_vector_set(m_vector->ctx(), *m_vector, m_index, arg);
689 }
context & ctx() const
Definition z3++.h:521
void Z3_API Z3_ast_vector_set(Z3_context c, Z3_ast_vector v, unsigned i, Z3_ast a)
Update position i of the AST vector v with the AST a.