TiledArray::Pmap::Iterator Class Reference
Inheritance diagram for TiledArray::Pmap::Iterator:
Collaboration diagram for TiledArray::Pmap::Iterator:

Documentation

Pmap iterator type.

Iterates over an integer range, with possible help of Pmap itself; if Pmap keeps list of local indices simply proxies the Pmap::local_::iterator

Definition at line 159 of file pmap.h.

Public Member Functions

 Iterator (const Pmap &pmap, size_type begin_idx, size_type end_idx, size_type idx, bool checking, bool use_pmap_advance=false)
 Creates an iterator of an integer range [begin_idx,end_idx) More...
 
 Iterator (const Pmap &pmap, std::vector< size_type >::const_iterator it)
 Creates an iterator over pmap.local_. More...
 

Friends

class boost::iterator_core_access
 

Constructor & Destructor Documentation

◆ Iterator() [1/2]

TiledArray::Pmap::Iterator::Iterator ( const Pmap pmap,
size_type  begin_idx,
size_type  end_idx,
size_type  idx,
bool  checking,
bool  use_pmap_advance = false 
)
inline

Creates an iterator of an integer range [begin_idx,end_idx)

Parameters
pmapthe host Pmap object
begin_idxstart of the range
end_idxend of the range (one past the last element)
idxthe current index to which points; if idx==end_idx this creates an end iterator
checkingwhether to use pmap.is_local() when iterating
use_pmap_advancewhether to use pmap.advance() to increment/decrement

Definition at line 171 of file pmap.h.

Here is the call graph for this function:

◆ Iterator() [2/2]

TiledArray::Pmap::Iterator::Iterator ( const Pmap pmap,
std::vector< size_type >::const_iterator  it 
)
inline

Creates an iterator over pmap.local_.

Parameters
pmapthe host Pmap object
itthe current iterator value

Definition at line 193 of file pmap.h.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ boost::iterator_core_access

friend class boost::iterator_core_access
friend

Definition at line 199 of file pmap.h.


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