TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
triqs::gfs::block_gf< Mesh, Target, Layout, Arity >::iterator_impl< is_const >

#include <triqs/gfs/block/block_gf.hpp>

Detailed Description

template<typename Mesh, typename Target, typename Layout, int Arity>
template<bool is_const>
class triqs::gfs::block_gf< Mesh, Target, Layout, Arity >::iterator_impl< is_const >

Forward iterator over the blocks of a block Green's function.

Iterates over the blocks in row-major order (for a block2_gf, block (i, j) comes before (i, j+1)).

Template Parameters
is_constWhether the iterator yields const blocks.

Definition at line 343 of file block_gf.hpp.

Public Member Functions

 iterator_impl ()=default
 Construct a past-the-end (singular) iterator.
 iterator_impl (block_gf_ref _bgf, bool at_end=false)
 Construct an iterator over a block Green's function, optionally positioned at the end.
 iterator_impl (block_gf_ref _bgf, int _n)
 Construct an iterator over a block Green's function positioned at block _n.
 operator iterator_impl< true > () const
 Convert a non-const iterator to a const iterator.
bool operator!= (iterator_impl const &other) const
 Inequality comparison.
reference operator* ()
 Dereference to the current block.
reference operator* () const
 Dereference to the current block (const overload).
iterator_imploperator++ ()
 Pre-increment to the next block.
iterator_impl operator++ (int)
 Post-increment to the next block.
reference operator-> ()
 Member access to the current block.
bool operator== (iterator_impl const &other) const
 Equality comparison (same block Green's function and same position).

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