33namespace triqs::mesh {
Common macros used in TRIQS.
A generic random access iterator for 1D meshes.
mesh_iterator & operator++() noexcept
Pre-increment operator increments the current data index by .
bool operator==(mesh_iterator const &other) const noexcept
Equal-to operator for two iterators.
value_type operator->() const noexcept
Member access operator.
difference_type operator-(mesh_iterator const &rhs) const noexcept
Get the distance between two iterators.
std::random_access_iterator_tag iterator_category
Iterator category.
mesh_iterator operator-(difference_type n) const noexcept
Subtraction operator for an iterator and an integer.
mesh_iterator & operator--() noexcept
Pre-decrement operator decrements the current data index by .
mesh_iterator operator--(int) noexcept
Post-decrement operator decrements the current data index by .
mesh_iterator operator++(int) noexcept
Post-increment operator increments the current data index by .
M const * mesh_ptr
Pointer to the underlying mesh.
long data_index
Current data index.
mesh_iterator operator+(difference_type n) const noexcept
Addition operator for an iterator and an integer.
friend mesh_iterator operator+(difference_type n, mesh_iterator it) noexcept
Addition operator for an integer and an iterator.
value_type * pointer
Pointer type.
mesh_iterator & operator+=(difference_type n) noexcept
Addition assignment operator.
value_type const & reference
Reference type.
value_type operator[](difference_type n) const noexcept
Subscript operator.
typename M::mesh_point_t value_type
Value type.
mesh_iterator & operator-=(difference_type n) noexcept
Subtraction assignment operator.
value_type operator*() const noexcept
Dereference operator.
std::ptrdiff_t difference_type
Difference type.
std::strong_ordering operator<=>(mesh_iterator const &rhs) const noexcept
Three-way comparison operator for two iterators.