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 1547 of file z3++.h.

Constructor & Destructor Documentation

◆ iterator() [1/2]

iterator ( ast_vector_tpl const *  v,
unsigned  i 
)
inline

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

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

◆ iterator() [2/2]

iterator ( iterator other)
inline

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

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

Member Function Documentation

◆ operator!=()

bool operator!= ( iterator const &  other)
inline

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

1558  {
1559  return other.m_index != m_index;
1560  };

◆ operator*()

T operator* ( ) const
inline

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

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

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

◆ operator++() [1/2]

iterator& operator++ ( )
inline

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

1561  {
1562  ++m_index;
1563  return *this;
1564  }

◆ operator++() [2/2]

iterator operator++ ( int  )
inline

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

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

◆ operator->()

T* operator-> ( ) const
inline

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

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

◆ operator=()

iterator operator= ( iterator const &  other)
inline

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

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

◆ operator==()

bool operator== ( iterator const &  other)
inline

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

1555  {
1556  return other.m_index == m_index;
1557  };