DASH  0.3.0
dash::HashLocal< Key > Class Template Reference

Public Types

typedef Key argument_type
 
typedef team_unit_t result_type
 

Public Member Functions

 HashLocal ()
 Default constructor. More...
 
 HashLocal (dash::Team &team)
 Constructor. More...
 
result_type operator() (const argument_type &key) const
 

Detailed Description

template<typename Key>
class dash::HashLocal< Key >

Definition at line 8 of file HashPolicy.h.

Constructor & Destructor Documentation

◆ HashLocal() [1/2]

template<typename Key>
dash::HashLocal< Key >::HashLocal ( )
inline

Default constructor.

Definition at line 20 of file HashPolicy.h.

21  : _team(nullptr)
22  , _nunits(0)
23  , _myid(DART_UNDEFINED_UNIT_ID)
24  {
25  }
#define DART_UNDEFINED_UNIT_ID
Undefined unit ID.
Definition: dart_types.h:160

◆ HashLocal() [2/2]

template<typename Key>
dash::HashLocal< Key >::HashLocal ( dash::Team team)
inline

Constructor.

Definition at line 30 of file HashPolicy.h.

References dash::begin(), dash::end(), and dash::size().

31  : _team(&team)
32  , _nunits(team.size())
33  , _myid(team.myid())
34  {
35  }
size_t size() const
The number of units in this team.
Definition: Team.h:498

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