Skip to content

Commit

Permalink
TeamLocality: Make team const
Browse files Browse the repository at this point in the history
  • Loading branch information
bertwesarg committed Mar 2, 2020
1 parent 25eb93a commit a37cb59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions dash/include/dash/util/TeamLocality.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class TeamLocality
* locality domain of a specified team.
*/
TeamLocality(
dash::Team & team,
const dash::Team & team,
Scope_t scope = Scope_t::Global,
std::string domain_tag = ".");

Expand All @@ -81,7 +81,7 @@ class TeamLocality
* a specified team and locality domain.
*/
TeamLocality(
dash::Team & team,
const dash::Team & team,
LocalityDomain_t & domain);

/**
Expand Down Expand Up @@ -190,7 +190,7 @@ class TeamLocality
return _domain.num_cores();
}

inline dash::Team & team() const
inline const dash::Team & team() const
{
return (nullptr == _team) ? dash::Team::Null() : *_team;
}
Expand Down Expand Up @@ -235,7 +235,7 @@ class TeamLocality
}

private:
dash::Team * _team = nullptr;
const dash::Team * _team = nullptr;
/// Parent scope of the team locality domain hierarchy.
Scope_t _scope = Scope_t::Undefined;
/// Locality domain of the team.
Expand Down
4 changes: 2 additions & 2 deletions dash/src/util/TeamLocality.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


dash::util::TeamLocality::TeamLocality(
dash::Team & team,
const dash::Team & team,
dash::util::Locality::Scope scope,
std::string domain_tag)
: _team(&team),
Expand Down Expand Up @@ -44,7 +44,7 @@ dash::util::TeamLocality::TeamLocality(
}

dash::util::TeamLocality::TeamLocality(
dash::Team & team,
const dash::Team & team,
dash::util::LocalityDomain & domain)
: _team(&team),
_scope(domain.scope()),
Expand Down

0 comments on commit a37cb59

Please sign in to comment.