TiledArray::detail::ReplicatedPmap Class Reference
Inheritance diagram for TiledArray::detail::ReplicatedPmap:
Collaboration diagram for TiledArray::detail::ReplicatedPmap:

Documentation

A Replicated process map.

Defines a process map where all processes own data.

Definition at line 37 of file replicated_pmap.h.

Public Types

typedef Pmap::size_type size_type
 < The number of tiles mapped among all processes More...
 
- Public Types inherited from TiledArray::Pmap
typedef std::size_t size_type
 Size type. More...
 
typedef Iterator const_iterator
 Iterator type. More...
 

Public Member Functions

 ReplicatedPmap (World &world, size_type size)
 Construct Blocked map. More...
 
virtual ~ReplicatedPmap ()
 
virtual size_type owner (const size_type tile) const
 Maps tile to the processor that owns it. More...
 
virtual bool is_local (const size_type tile) const
 Check that the tile is owned by this process. More...
 
virtual bool is_replicated () const
 Replicated array status. More...
 
virtual const_iterator begin () const
 Begin local element iterator. More...
 
virtual const_iterator end () const
 End local element iterator. More...
 
- Public Member Functions inherited from TiledArray::Pmap
 Pmap (World &world, const size_type size)
 Process map constructor. More...
 
virtual ~Pmap ()
 
size_type size () const
 Size accessor. More...
 
size_type rank () const
 Process rank accessor. More...
 
size_type procs () const
 Process count accessor. More...
 
virtual bool known_local_size () const
 Queries whether local size is known. More...
 
size_type local_size () const
 Local size accessor. More...
 
bool empty () const
 Check if there are any local elements. More...
 
const const_iterator cbegin () const
 Begin local element iterator. More...
 
const const_iterator cend () const
 End local element iterator. More...
 

Protected Attributes

const size_type procs_
 The number of processes. More...
 
const size_type rank_
 < The number of processes More...
 
const size_type size_
 < The rank of this process More...
 
- Protected Attributes inherited from TiledArray::Pmap
const size_type rank_
 The rank of this process. More...
 
const size_type procs_
 The number of processes. More...
 
const size_type size_
 The number of tiles mapped among all processes. More...
 
std::vector< size_typelocal_
 A list of local tiles (may be empty, if not needed) More...
 
size_type local_size_
 

Member Typedef Documentation

◆ size_type

< The number of tiles mapped among all processes

Size type

Definition at line 45 of file replicated_pmap.h.

Constructor & Destructor Documentation

◆ ReplicatedPmap()

TiledArray::detail::ReplicatedPmap::ReplicatedPmap ( World &  world,
size_type  size 
)
inline

Construct Blocked map.

Parameters
worldA reference to the world
sizeThe number of elements to be mapped

Definition at line 51 of file replicated_pmap.h.

◆ ~ReplicatedPmap()

virtual TiledArray::detail::ReplicatedPmap::~ReplicatedPmap ( )
inlinevirtual

Definition at line 55 of file replicated_pmap.h.

Member Function Documentation

◆ begin()

virtual const_iterator TiledArray::detail::ReplicatedPmap::begin ( ) const
inlinevirtual

Begin local element iterator.

Returns
An iterator that points to the beginning of the local element set

Reimplemented from TiledArray::Pmap.

Definition at line 80 of file replicated_pmap.h.

◆ end()

virtual const_iterator TiledArray::detail::ReplicatedPmap::end ( ) const
inlinevirtual

End local element iterator.

Returns
An iterator that points to the beginning of the local element set

Reimplemented from TiledArray::Pmap.

Definition at line 83 of file replicated_pmap.h.

◆ is_local()

virtual bool TiledArray::detail::ReplicatedPmap::is_local ( const size_type  tile) const
inlinevirtual

Check that the tile is owned by this process.

Parameters
tileThe tile to be checked
Returns
true if tile is owned by this process, otherwise false .

Implements TiledArray::Pmap.

Definition at line 70 of file replicated_pmap.h.

◆ is_replicated()

virtual bool TiledArray::detail::ReplicatedPmap::is_replicated ( ) const
inlinevirtual

Replicated array status.

Returns
true if the array is replicated, and false otherwise

Reimplemented from TiledArray::Pmap.

Definition at line 78 of file replicated_pmap.h.

◆ owner()

virtual size_type TiledArray::detail::ReplicatedPmap::owner ( const size_type  tile) const
inlinevirtual

Maps tile to the processor that owns it.

Parameters
tileThe tile to be queried
Returns
Processor that logically owns tile

Implements TiledArray::Pmap.

Definition at line 61 of file replicated_pmap.h.

Member Data Documentation

◆ procs_

const size_type TiledArray::Pmap::procs_
protected

The number of processes.

Definition at line 61 of file pmap.h.

◆ rank_

const size_type TiledArray::Pmap::rank_
protected

< The number of processes

Definition at line 60 of file pmap.h.

◆ size_

const size_type TiledArray::Pmap::size_
protected

< The rank of this process

Definition at line 62 of file pmap.h.


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