Z3
Public Member Functions
ast_vector_tpl< T >::iterator Class Referencefinal

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
 
T * operator-> () const
 
operator* () const
 

Detailed Description

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

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

Constructor & Destructor Documentation

iterator ( ast_vector_tpl const *  v,
unsigned  i 
)
inline

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

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

Member Function Documentation

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

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

586  {
587  return other.m_index != m_index;
588  };
T operator* ( ) const
inline

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

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

598 { return (*m_vector)[m_index]; }
iterator& operator++ ( )
inlinenoexcept

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

589  {
590  ++m_index;
591  return *this;
592  }
iterator operator++ ( int  )
inlinenoexcept

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

596 { iterator tmp = *this; ++m_index; return tmp; }
iterator(ast_vector_tpl const *v, unsigned i)
Definition: z3++.h:581
T* operator-> ( ) const
inline

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

597 { return &(operator*()); }
bool operator== ( iterator const &  other) const
inlinenoexcept

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

583  {
584  return other.m_index == m_index;
585  };
void set ( T &  arg)
inline

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

593  {
594  Z3_ast_vector_set(m_vector->ctx(), *m_vector, m_index, arg);
595  }
context & ctx() const
Definition: z3++.h:428
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.