File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ class TeamSpec :
48
48
* dimension.
49
49
*/
50
50
TeamSpec (
51
- Team & team = dash::Team::All())
51
+ const Team & team = dash::Team::All())
52
52
: _is_linear(true ),
53
53
_myid (team.myid())
54
54
{
@@ -88,7 +88,7 @@ class TeamSpec :
88
88
TeamSpec (
89
89
const self_t & other,
90
90
const DistributionSpec<MaxDimensions> & distribution,
91
- Team & team = dash::Team::All())
91
+ const Team & team = dash::Team::All())
92
92
: CartesianIndexSpace<MaxDimensions, ROW_MAJOR, IndexType>(
93
93
other.extents()),
94
94
_myid(team.myid())
@@ -142,7 +142,7 @@ class TeamSpec :
142
142
*/
143
143
TeamSpec (
144
144
const DistributionSpec<MaxDimensions> & distribution,
145
- Team & team = dash::Team::All())
145
+ const Team & team = dash::Team::All())
146
146
: _myid(team.myid())
147
147
{
148
148
DASH_LOG_TRACE_VAR (" TeamSpec(dist, t)" , team.is_null ());
Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ GlobOutputIt transform(
325
325
}
326
326
#endif
327
327
// Resolve teams from global iterators:
328
- dash::Team & team_in_a = pattern_in_a.team ();
328
+ const dash::Team & team_in_a = pattern_in_a.team ();
329
329
DASH_ASSERT_MSG (
330
330
team_in_a == pattern_in_b.team (),
331
331
" dash::transform: Different teams in input ranges" );
Original file line number Diff line number Diff line change @@ -997,7 +997,7 @@ class LoadBalancePattern<
997
997
* The Team containing the units to which this pattern's elements are
998
998
* mapped.
999
999
*/
1000
- inline dash::Team & team () const
1000
+ inline const dash::Team & team () const
1001
1001
{
1002
1002
return *_team;
1003
1003
}
@@ -1292,11 +1292,11 @@ class LoadBalancePattern<
1292
1292
// / Distribution types of all dimensions.
1293
1293
DistributionSpec_t _distspec;
1294
1294
// / Team containing the units to which the patterns element are mapped
1295
- dash::Team * _team = nullptr ;
1295
+ const dash::Team * _team = nullptr ;
1296
1296
// / The active unit's id.
1297
1297
team_unit_t _myid;
1298
1298
// / Cartesian arrangement of units within the team
1299
- TeamSpec_t _teamspec;
1299
+ const TeamSpec_t _teamspec;
1300
1300
// / Total amount of units to which this pattern's elements are mapped
1301
1301
SizeType _nunits = 0 ;
1302
1302
// / Actual number of local elements of the active unit.
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ class TeamLocality
72
72
* locality domain of a specified team.
73
73
*/
74
74
TeamLocality (
75
- dash::Team & team,
75
+ const dash::Team & team,
76
76
Scope_t scope = Scope_t::Global,
77
77
std::string domain_tag = " ." );
78
78
@@ -81,7 +81,7 @@ class TeamLocality
81
81
* a specified team and locality domain.
82
82
*/
83
83
TeamLocality (
84
- dash::Team & team,
84
+ const dash::Team & team,
85
85
LocalityDomain_t & domain);
86
86
87
87
/* *
@@ -190,7 +190,7 @@ class TeamLocality
190
190
return _domain.num_cores ();
191
191
}
192
192
193
- inline dash::Team & team () const
193
+ inline const dash::Team & team () const
194
194
{
195
195
return (nullptr == _team) ? dash::Team::Null () : *_team;
196
196
}
@@ -235,7 +235,7 @@ class TeamLocality
235
235
}
236
236
237
237
private:
238
- dash::Team * _team = nullptr ;
238
+ const dash::Team * _team = nullptr ;
239
239
// / Parent scope of the team locality domain hierarchy.
240
240
Scope_t _scope = Scope_t::Undefined;
241
241
// / Locality domain of the team.
Original file line number Diff line number Diff line change 14
14
15
15
16
16
dash::util::TeamLocality::TeamLocality (
17
- dash::Team & team,
17
+ const dash::Team & team,
18
18
dash::util::Locality::Scope scope,
19
19
std::string domain_tag)
20
20
: _team(&team),
@@ -44,7 +44,7 @@ dash::util::TeamLocality::TeamLocality(
44
44
}
45
45
46
46
dash::util::TeamLocality::TeamLocality (
47
- dash::Team & team,
47
+ const dash::Team & team,
48
48
dash::util::LocalityDomain & domain)
49
49
: _team(&team),
50
50
_scope(domain.scope()),
You can’t perform that action at this time.
0 commit comments