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

Public Member Functions

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

Detailed Description

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

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

Constructor & Destructor Documentation

◆ iterator() [1/2]

iterator ( ast_vector_tpl const *  v,
unsigned  i 
)
inline

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

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

◆ iterator() [2/2]

iterator ( iterator other)
inline

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

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

Member Function Documentation

◆ operator!=()

bool operator!= ( iterator const &  other)
inline

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

1567  {
1568  return other.m_index != m_index;
1569  };

◆ operator*()

T operator* ( ) const
inline

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

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

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

◆ operator++() [1/2]

iterator& operator++ ( )
inline

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

1570  {
1571  ++m_index;
1572  return *this;
1573  }

◆ operator++() [2/2]

iterator operator++ ( int  )
inline

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

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

◆ operator->()

T* operator-> ( ) const
inline

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

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

◆ operator=()

iterator operator= ( iterator const &  other)
inline

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

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

◆ operator==()

bool operator== ( iterator const &  other)
inline

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

1564  {
1565  return other.m_index == m_index;
1566  };