Skip to content
Snippets Groups Projects

VPChannelID setters return reference to *this

Merged Gerhard Raven requested to merge setter-return-this into master
@@ -133,7 +133,7 @@ namespace LHCb::Detector {
}
/// Update pixel row
constexpr VPChannelID& setRow( RowID row ) { return set<Mask::row>( row ); }
constexpr VPChannelID& setRow( RowID row ) { return set<Mask::row>( row ); }
/// Retrieve pixel column
[[nodiscard]] constexpr ColumnID col() const {
@@ -142,7 +142,7 @@ namespace LHCb::Detector {
}
/// Update pixel column
constexpr VPChannelID& setCol( ColumnID col ) { return set<Mask::col>( col ); }
constexpr VPChannelID& setCol( ColumnID col ) { return set<Mask::col>( col ); }
/// Retrieve chip number
[[nodiscard]] constexpr ChipID chip() const {
@@ -151,7 +151,7 @@ namespace LHCb::Detector {
}
/// Update chip number
constexpr VPChannelID& setChip( ChipID chip ) { return set<Mask::chip>( chip ); }
constexpr VPChannelID& setChip( ChipID chip ) { return set<Mask::chip>( chip ); }
/// Retrieve sensor number
[[nodiscard]] constexpr SensorID sensor() const {
@@ -160,7 +160,7 @@ namespace LHCb::Detector {
}
/// Update sensor number
constexpr VPChannelID& setSensor( SensorID sensor ) { return set<Mask::sensor>( sensor ); }
constexpr VPChannelID& setSensor( SensorID sensor ) { return set<Mask::sensor>( sensor ); }
/// Retrieve orfy
[[nodiscard]] constexpr OrfyID orfy() const {
@@ -169,7 +169,7 @@ namespace LHCb::Detector {
}
/// Update orfy
constexpr VPChannelID& setOrfy( OrfyID orfy ) { return set<Mask::orfy>( orfy ); }
constexpr VPChannelID& setOrfy( OrfyID orfy ) { return set<Mask::orfy>( orfy ); }
/// Retrieve orfx
[[nodiscard]] constexpr OrfxID orfx() const {
@@ -178,7 +178,7 @@ namespace LHCb::Detector {
}
/// Update orfx
constexpr VPChannelID& setOrfx( OrfxID orfx ) { return set<Mask::orfx>( orfx ); }
constexpr VPChannelID& setOrfx( OrfxID orfx ) { return set<Mask::orfx>( orfx ); }
/// Retrieve scol
[[nodiscard]] constexpr ScolID scol2() const {
@@ -187,7 +187,7 @@ namespace LHCb::Detector {
}
/// Update scol
constexpr VPChannelID& setScol( ScolID scol2 ) { return set<Mask::scol>( scol2 ); }
constexpr VPChannelID& setScol( ScolID scol2 ) { return set<Mask::scol>( scol2 ); }
friend std::ostream& operator<<( std::ostream& str, const VPChannelID& obj );
Loading