GiNaC 1.8.7
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
GiNaC::const_preorder_iterator Class Reference

#include <ex.h>

Public Types

using iterator_category = std::forward_iterator_tag
 
using value_type = ex
 
using difference_type = ptrdiff_t
 
using pointer = const ex *
 
using reference = const ex &
 

Public Member Functions

 const_preorder_iterator () noexcept
 
 const_preorder_iterator (const ex &e, size_t n)
 
reference operator* () const
 
pointer operator-> () const
 
const_preorder_iteratoroperator++ ()
 
const_preorder_iterator operator++ (int)
 
bool operator== (const const_preorder_iterator &other) const noexcept
 
bool operator!= (const const_preorder_iterator &other) const noexcept
 

Private Member Functions

void increment ()
 

Private Attributes

std::stack< internal::_iter_rep, std::vector< internal::_iter_rep > > s
 

Detailed Description

Definition at line 521 of file ex.h.

Member Typedef Documentation

◆ iterator_category

using GiNaC::const_preorder_iterator::iterator_category = std::forward_iterator_tag

Definition at line 523 of file ex.h.

◆ value_type

Definition at line 524 of file ex.h.

◆ difference_type

Definition at line 525 of file ex.h.

◆ pointer

Definition at line 526 of file ex.h.

◆ reference

Definition at line 527 of file ex.h.

Constructor & Destructor Documentation

◆ const_preorder_iterator() [1/2]

GiNaC::const_preorder_iterator::const_preorder_iterator ( )
inlinenoexcept

Definition at line 528 of file ex.h.

◆ const_preorder_iterator() [2/2]

GiNaC::const_preorder_iterator::const_preorder_iterator ( const ex e,
size_t  n 
)
inline

Definition at line 530 of file ex.h.

References n, and s.

Member Function Documentation

◆ operator*()

reference GiNaC::const_preorder_iterator::operator* ( ) const
inline

Definition at line 536 of file ex.h.

References s.

◆ operator->()

pointer GiNaC::const_preorder_iterator::operator-> ( ) const
inline

Definition at line 541 of file ex.h.

References s.

◆ operator++() [1/2]

const_preorder_iterator & GiNaC::const_preorder_iterator::operator++ ( )
inline

Definition at line 546 of file ex.h.

References increment().

◆ operator++() [2/2]

const_preorder_iterator GiNaC::const_preorder_iterator::operator++ ( int  )
inline

Definition at line 552 of file ex.h.

References increment().

◆ operator==()

bool GiNaC::const_preorder_iterator::operator== ( const const_preorder_iterator other) const
inlinenoexcept

Definition at line 559 of file ex.h.

References s.

◆ operator!=()

bool GiNaC::const_preorder_iterator::operator!= ( const const_preorder_iterator other) const
inlinenoexcept

Definition at line 564 of file ex.h.

◆ increment()

void GiNaC::const_preorder_iterator::increment ( )
inlineprivate

Member Data Documentation

◆ s

std::stack<internal::_iter_rep, std::vector<internal::_iter_rep> > GiNaC::const_preorder_iterator::s
private

Definition at line 570 of file ex.h.

Referenced by const_preorder_iterator(), increment(), operator*(), operator->(), and operator==().


The documentation for this class was generated from the following file:

This page is part of the GiNaC developer's reference. It was generated automatically by doxygen. For an introduction, see the tutorial.