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

Public Member Functions

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

Detailed Description

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

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

Constructor & Destructor Documentation

◆ iterator() [1/2]

iterator ( ast_vector_tpl const *  v,
unsigned  i 
)
inline

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

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

◆ iterator() [2/2]

iterator ( iterator const &  other)
inline

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

1836 : m_vector(other.m_vector), m_index(other.m_index) {}

Member Function Documentation

◆ operator!=()

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

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

1842  {
1843  return other.m_index != m_index;
1844  };

◆ operator*()

T operator* ( ) const
inline

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

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

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

◆ operator++() [1/2]

iterator& operator++ ( )
inline

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

1845  {
1846  ++m_index;
1847  return *this;
1848  }

◆ operator++() [2/2]

iterator operator++ ( int  )
inline

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

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

◆ operator->()

T* operator-> ( ) const
inline

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

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

◆ operator=()

iterator operator= ( iterator const &  other)
inline

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

1837 { m_vector = other.m_vector; m_index = other.m_index; return *this; }

◆ operator==()

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

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

1839  {
1840  return other.m_index == m_index;
1841  };

◆ set()

void set ( T &  arg)
inline

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

1849  {
1850  Z3_ast_vector_set(m_vector->ctx(), *m_vector, m_index, arg);
1851  }
context & ctx() const
Definition: z3++.h:406
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.