OpenTTD Source 20260721-master-g25ec12c62d
BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask > Class Template Reference

Base for bit set wrapper. More...

#include <base_bitset_type.hpp>

Inheritance diagram for BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >:
EnumBitSet< VehicleAirFlag, uint8_t > EnumBitSet< AirportMovingDataFlag, uint16_t > EnumBitSet< AirportBlock, uint64_t > EnumBitSet< Flag, uint8_t > EnumBitSet< VehicleFlag, uint16_t > EnumBitSet< ControlFlag, uint8_t > EnumBitSet< BridgePillarFlag, uint8_t > EnumBitSet< CargoType, uint64_t > EnumBitSet< CargoClass, uint16_t > EnumBitSet< DoCommandFlag, uint16_t > EnumBitSet< CommandFlag, uint16_t > EnumBitSet< PoolType, uint8_t > EnumBitSet< Currency, uint64_t, Currency::End > EnumBitSet< CurrencySymbolPosition, uint8_t > EnumBitSet< Direction, uint8_t > EnumBitSet< DiagDirection, uint8_t > EnumBitSet< DropDownOption, uint8_t > EnumBitSet< EngineDisplayFlag, uint8_t > EnumBitSet< ExtraEngineFlag, uint8_t > EnumBitSet< EngineMiscFlag, uint8_t > EnumBitSet< EngineFlag, uint8_t > EnumBitSet< Mode, uint8_t > EnumBitSet< FontSize, uint8_t > EnumBitSet< ExtendedTextColourFlag, uint8_t > EnumBitSet< DirectionKey, uint8_t > EnumBitSet< GoalQuestionButton, uint32_t, GoalQuestionButton::End > EnumBitSet< GroupFlag, uint8_t > EnumBitSet< BuildingFlag, uint8_t > EnumBitSet< HouseZone, uint16_t > EnumBitSet< HouseExtraFlag, uint8_t > EnumBitSet< HouseRandomTrigger, uint8_t > EnumBitSet< IndustryControlFlag, uint8_t, IndustryControlFlag::End > EnumBitSet< IndustryRandomTrigger, uint8_t > EnumBitSet< IndustryAnimationTrigger, uint8_t > EnumBitSet< IndustryLifeType, uint8_t > EnumBitSet< IndustryBehaviour, uint32_t > EnumBitSet< IndustryTileSpecialFlag, uint8_t > EnumBitSet< LandscapeType, uint8_t > EnumBitSet< BorderFlag, uint8_t > EnumBitSet< EdgeUpdateMode, uint8_t > EnumBitSet< RefreshFlag, uint8_t > EnumBitSet< LiveryScheme, uint32_t, LiveryScheme::End > EnumBitSet< AdminUpdateFrequency, uint8_t > EnumBitSet< ContentType, uint16_t, ContentType::End > EnumBitSet< NetworkAuthenticationMethod, uint16_t > EnumBitSet< CanalFeatureFlag, uint8_t > EnumBitSet< GrfMiscBit, uint8_t > EnumBitSet< GrfSpecFeature, uint32_t, GrfSpecFeature::End > EnumBitSet< BadgeFlag, uint8_t > EnumBitSet< VehicleCallbackMask, uint16_t > EnumBitSet< StationCallbackMask, uint16_t > EnumBitSet< RoadStopCallbackMask, uint8_t > EnumBitSet< HouseCallbackMask, uint16_t > EnumBitSet< CanalCallbackMask, uint8_t > EnumBitSet< CargoCallbackMask, uint8_t > EnumBitSet< IndustryCallbackMask, uint16_t > EnumBitSet< IndustryTileCallbackMask, uint8_t > EnumBitSet< ObjectCallbackMask, uint8_t > EnumBitSet< AirportTileCallbackMask, uint8_t > EnumBitSet< GRFConfigFlag, uint8_t > EnumBitSet< GRFBug, uint8_t > EnumBitSet< ObjectFlag, uint16_t > EnumBitSet< RoadStopDrawMode, uint8_t > EnumBitSet< RoadStopSpecFlag, uint8_t > EnumBitSet< StationSpecFlag, uint8_t > EnumBitSet< TileFlag, uint8_t > EnumBitSet< GRFLanguage, uint8_t > EnumBitSet< NewsFlag, uint8_t > EnumBitSet< ObjectAnimationTrigger, uint16_t > EnumBitSet< DisplayOption, uint8_t > EnumBitSet< PauseMode, uint8_t > EnumBitSet< OrderNonStopFlag, uint8_t > EnumBitSet< OrderDepotTypeFlag, uint8_t > EnumBitSet< OrderDepotActionFlag, uint8_t > EnumBitSet< KeyState, uint8_t > EnumBitSet< EndSegmentReason, uint16_t > EnumBitSet< PickerFilterMode, uint8_t > EnumBitSet< PickerInvalidation, uint8_t > EnumBitSet< RailTypeFlag, uint8_t > EnumBitSet< RailType, uint64_t > EnumBitSet< RoadTypeFlag, uint8_t > EnumBitSet< RoadType, uint64_t > EnumBitSet< RoadTramType, uint8_t > EnumBitSet< RoadBit, uint8_t > EnumBitSet< DisallowedRoadDirection, uint8_t > EnumBitSet< RoadStopStatusFlag, uint8_t > EnumBitSet< ScriptConfigFlag, uint8_t > EnumBitSet< ScriptConfigItemKey, uint8_t > EnumBitSet< SettingEntryFlag, uint8_t > EnumBitSet< SettingFlag, uint16_t > EnumBitSet< SigFlag, uint16_t > EnumBitSet< SortListFlag, uint8_t > EnumBitSet< SpriteCacheCtrlFlag, uint8_t > EnumBitSet< SpriteComponent, uint8_t, SpriteComponent::End > EnumBitSet< State, uint8_t > EnumBitSet< StationFacility, uint8_t > EnumBitSet< StationVehicleType, uint8_t > EnumBitSet< StationRandomTrigger, uint8_t > EnumBitSet< StationAnimationTrigger, uint16_t > EnumBitSet< AirportAnimationTrigger, uint8_t > EnumBitSet< StoryPageButtonFlag, uint8_t > EnumBitSet< StringValidationSetting, uint8_t > EnumBitSet< PartOfSubsidy, uint8_t > EnumBitSet< CmdFlag, uint8_t > EnumBitSet< CzechAllowFlag, uint8_t > EnumBitSet< CzechChooseFlag, uint8_t > EnumBitSet< QueryStringFlag, uint8_t > EnumBitSet< VehicleEnterTileState, uint8_t > EnumBitSet< TownFlag, uint8_t > EnumBitSet< TownAction, uint8_t > EnumBitSet< TownExpandMode, uint8_t > EnumBitSet< Track, uint8_t > EnumBitSet< Trackdir, uint16_t > EnumBitSet< VehicleRailFlag, uint16_t > EnumBitSet< ConsistChangeFlag, uint8_t > EnumBitSet< TransparencyOption, uint32_t > EnumBitSet< VehState, uint8_t > EnumBitSet< DepotCommandFlag, uint8_t > EnumBitSet< VehicleRandomTrigger, uint8_t > EnumBitSet< GroundVehicleFlag, uint16_t > EnumBitSet< ViewportStringFlag, uint8_t > EnumBitSet< AspectFlag, uint8_t > EnumBitSet< NWidgetDisplayFlag, uint16_t > EnumBitSet< NWidContainerFlag, uint8_t > EnumBitSet< FrameFlag, uint8_t > EnumBitSet< WindowDefaultFlag, uint8_t > EnumBitSet< WindowFlag, uint16_t > EnumBitSet< ZoomLevel, uint8_t > EnumBitSet< Tenum, Tstorage, Tend_value >

Public Types

using ValueType = Tvalue_type
 Value type of this BaseBitSet.
using BaseType = Tstorage
 Storage type of this BaseBitSet, be ConvertibleThroughBase.

Public Member Functions

constexpr BaseBitSet ()
 Create an empty bitset.
constexpr BaseBitSet (Tstorage data)
 Create a bitset with a given bits that are within the mask of valid values.
constexpr auto operator<=> (const BaseBitSet &) const noexcept=default
constexpr Timpl & Set ()
 Set all bits.
template<typename Treturn_type = Timpl>
requires std::is_base_of_v<BaseBitSet<Timpl, Tvalue_type, Tstorage, Tmask>, Treturn_type>
constexpr Treturn_type & Set (Tvalue_type value)
 Set the value-th bit.
constexpr Timpl & Set (const Timpl &other)
 Set values from another bitset.
constexpr Timpl & Set (Tvalue_type value, bool set)
 Assign the value-th bit.
constexpr Timpl & Reset ()
 Reset all bits.
constexpr Timpl & Reset (Tvalue_type value)
 Reset the value-th bit.
constexpr Timpl & Reset (const Timpl &other)
 Reset values from another bitset.
constexpr Timpl & Flip ()
 Flip all bits.
constexpr Timpl & Flip (Tvalue_type value)
 Flip the value-th bit.
constexpr Timpl & Flip (const Timpl &other)
 Flip values from another bitset.
constexpr bool Test (Tvalue_type value) const
 Test if the value-th bit is set.
constexpr bool All (const Timpl &other) const
 Test if all of the values are set.
constexpr bool All () const
 Test if all of the values are set.
constexpr bool Any (const Timpl &other) const
 Test if any of the given values are set.
constexpr bool Any () const
 Test if any of the values are set.
constexpr bool None () const
 Test if none of the values are set.
constexpr Timpl & operator|= (const Timpl &other)
constexpr Timpl operator| (const Timpl &other) const
constexpr Timpl & operator&= (const Timpl &other)
constexpr Timpl operator& (const Timpl &other) const
constexpr Tstorage base () const noexcept
 Retrieve the raw value behind this bit set.
constexpr bool IsValid () const
 Test that the raw value of this bit set is valid.
uint Count () const
 Count the number of set bits.
std::optional< Tvalue_type > GetNthSetBit (uint n) const
 Get the value of the Nth set bit.
auto begin () const
 Returns an iterator to begin of the set bits.
auto end () const
 Returns an iterator to the end of the set bits.

Static Public Attributes

static constexpr Tstorage MASK = Tmask
 Mask of valid values.

Private Attributes

Tstorage data
 Bitmask of values.

Detailed Description

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
class BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >

Base for bit set wrapper.

Allows wrapping strong type values as a bit set. Methods are loosely modelled on std::bitset.

Template Parameters
Tvalue_typeType of values to wrap.
TstorageStorage type required to hold values.

Definition at line 22 of file base_bitset_type.hpp.

Member Typedef Documentation

◆ BaseType

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
using BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::BaseType = Tstorage

Storage type of this BaseBitSet, be ConvertibleThroughBase.

Definition at line 25 of file base_bitset_type.hpp.

◆ ValueType

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
using BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::ValueType = Tvalue_type

Value type of this BaseBitSet.

Definition at line 24 of file base_bitset_type.hpp.

Constructor & Destructor Documentation

◆ BaseBitSet() [1/2]

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::BaseBitSet ( )
inlineconstexpr

Create an empty bitset.

Definition at line 29 of file base_bitset_type.hpp.

◆ BaseBitSet() [2/2]

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::BaseBitSet ( Tstorage data)
inlineexplicitconstexpr

Create a bitset with a given bits that are within the mask of valid values.

Parameters
dataThe initial set bits.

Definition at line 35 of file base_bitset_type.hpp.

Member Function Documentation

◆ All() [1/2]

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
bool BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::All ( ) const
inlineconstexpr

Test if all of the values are set.

Returns
true iff all of the values are set.

Definition at line 175 of file base_bitset_type.hpp.

◆ All() [2/2]

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
bool BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::All ( const Timpl & other) const
inlineconstexpr

Test if all of the values are set.

Parameters
otherBitSet of values to test.
Returns
true iff all of the values are set.

Definition at line 166 of file base_bitset_type.hpp.

Referenced by AddDateIntroducedRailTypes(), AddDateIntroducedRoadTypes(), ScriptInfo::AddSetting(), AircraftController(), CmdAlterGroup(), CmdBuildRoad(), HandleBankruptcyTakeover(), MakeCzechTownName(), RoadFindPathToDest(), and StoryPageButtonData::ValidateFlags().

◆ Any() [1/2]

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
bool BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Any ( ) const
inlineconstexpr

Test if any of the values are set.

Returns
true iff any of the values are set.

Definition at line 194 of file base_bitset_type.hpp.

◆ Any() [2/2]

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
bool BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Any ( const Timpl & other) const
inlineconstexpr

Test if any of the given values are set.

Parameters
otherBitSet of values to test.
Returns
true iff any of the given values are set.

Definition at line 185 of file base_bitset_type.hpp.

Referenced by AddGRFString(), AdvanceHouseConstruction(), AfterLoadGRFs(), AgeVehicle(), AircraftController(), AirportFindFreeTerminal(), AirportHasBlock(), AirportSetBlocks(), CompanyStationsWindow::BuildStationsList(), BuildTownHouse(), CalcEngineReliability(), CalculateRefitMasks(), CanConnectToRoad(), CFollowTrackT< TransportType::Water, Ship, true >::CanEnterNewTile(), CanFollowRoad(), CanVehicleUseStation(), ChangeIndustryProduction(), CheckAllowRemoveRoad(), CheckAutoreplaceValidity(), CheckClickOnVehicle(), CheckConsistencyOfArticulatedVehicle(), CheckFlatLandRoadStop(), CheckForMissingGlyphs(), CheckIfIndustryTilesAreFree(), CheckReverseTrain(), CheckRoadBlockedForOvertaking(), CleanUpRoadBits(), ClearTile_Object(), ClearTownHouse(), CmdBuildObject(), CmdBuildRoad(), CmdBuildSingleRail(), CmdClearArea(), CmdInsertOrder(), CmdLandscapeClear(), CmdModifyOrder(), CmdRemoveLongRoad(), CmdTurnRoadVeh(), DetermineNextTrainForceProceeding(), IndustryViewWindow::DrawInfo(), DrawRoadBits(), DrawRoadTypeCatenary(), DrawTile_Rail(), EnginesHaveCargoInCommon(), ExploreSegment(), ExtendTrainReservation(), NetworkContentListWindow::FilterContentList(), FindFirstTrackdir(), FloodHalftile(), CFollowTrackT< TransportType::Water, Ship, true >::Follow(), FreeTerminal(), GenericPlaceSignals(), Train::GetAccelerationStatus(), GetArticulatedRefitMasks(), GetAxisForNewRoadWaypoint(), GetCompanyRailTypes(), GetEngineCategoryName(), GetEngineLivery(), BuildHouseWindow::GetHouseInformation(), GetJunctionGroundSpriteOffset(), GetOrderCmdFromTile(), GetRailFoundation(), GetRailTypes(), HousePickerCallbacks::GetTypeName(), IndustriesScopeResolver::GetVariable(), GrowTownAtRoad(), GrowTownInTile(), HandleBankruptcyTakeover(), HandleScrollbarScrolling(), HasAnyRailTypesAvail(), HasAnyRoadTypesAvail(), RoadStop::HasFreeBay(), HasReservedTracks(), HasTileAnyRoadType(), CommandHelperBase::InternalExecutePrepTest(), CommandHelperBase::InternalExecuteProcessResult(), CommandHelperBase::InternalExecuteValidateTestAndPrepExec(), IsCargoInClass(), IsEngineBuildable(), IsHouseSpecValid(), BaseStation::IsInUse(), IsPossibleDockingTile(), Vehicle::LeaveUnbunchingDepot(), SlCompanyLiveries::Load(), LoadUnloadStation(), LoadUnloadVehicle(), MakeCzechTownName(), MakeTownHouse(), MaskWireBits(), ModifyStationRatingAround(), Vehicle::NeedsServicing(), NetworkContentListWindow::OnClick(), NetworkContentListWindow::OnKeyPress(), OnTick_Companies(), CYapfCostRailT< Types >::PfCalcCost(), CYapfDestinationTileWaterT< Types >::PfDetectDestinationTile(), CFollowTrackT< TransportType::Water, Ship, true >::QueryNewTileTrackStatus(), ReadGRFSpriteOffsets(), ReadSprite(), RemoveFirstTrack(), RemoveFirstTrackdir(), RemoveNearbyStations(), RemoveRoad(), ReverseTrainDirection(), SetTrackReservation(), TileLoop_Rail(), TileLoop_Town(), TrackBitsToTrack(), TrainCheckIfLineEnds(), TrainController(), TriggerHouseAnimation_WatchedCargoAccepted(), TriggerRoadStopRandomisation(), TriggerStationRandomisation(), TryBuildTownHouse(), CFollowTrackT< TransportType::Water, Ship, true >::TryReverse(), NetworkContentListWindow::UpdateFilterState(), UpdateSignalsAroundSegment(), UpdateStationAcceptance(), GroundVehicle< T, Type >::UpdateZPosition(), VehicleEnterTile_TunnelBridge(), and VehicleTimetableSorter().

◆ base()

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
Tstorage BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::base ( ) const
inlineconstexprnoexcept

Retrieve the raw value behind this bit set.

Returns
the raw value.

Definition at line 234 of file base_bitset_type.hpp.

Referenced by AfterLoadGame(), AircraftVehicleChangeInfo(), CheckFlatLandRoadStop(), DrawRoadBits(), DrawRoadTypeCatenary(), DrawTile_Road(), DrawTrackBits(), FixOwnerOfRailTrack(), GetGlobalVariable(), GetNewCargoTypeForReplace(), GetRailFoundation(), HouseScopeResolver::GetRandomTriggers(), IndustryTileScopeResolver::GetRandomTriggers(), RoadStopScopeResolver::GetRandomTriggers(), StationScopeResolver::GetRandomTriggers(), VehicleScopeResolver::GetRandomTriggers(), GetRefitCostFactor(), GetRoadSpriteOffset(), CFollowTrackT< TransportType::Water, Ship, true >::GetSingleTramBit(), GetTileTrackStatus_Rail(), GetTileTrackStatus_Road(), GetTrackdirBitsForRoad(), TownScopeResolver::GetVariable(), VehicleScopeResolver::GetVariable(), GrowTownInTile(), MakeRailNormal(), MakeRoadNormal(), MaskWireBits(), MirrorRoadBits(), Vehicle::NeedsServicing(), BaseCargoGraphWindow::OnClick(), OrdersWindow::OnClick(), RailVehicleChangeInfo(), Train::ReserveTrackUnderConsist(), RoadVehicleChangeInfo(), Order::SetDepotActionType(), Order::SetDepotOrderType(), SetDisallowedRoadDirections(), StoryPageButtonData::SetFlags(), SetHouseRandomTriggers(), SetIndustryRandomTriggers(), Order::SetNonStopType(), SetRoadBits(), SetTrackBits(), ShipVehicleChangeInfo(), ShowRefitOptionsList(), TerraformTile_Rail(), TestAutoslopeOnRailTile(), TileLoop_Rail(), ExtendedTextColour::ToNetwork(), TrackBitsToTrackdirBits(), TrackdirBitsToTrackBits(), PaymentRatesGraphWindow::UpdatePaymentRates(), BaseCompanyGraphWindow::UpdateStatistics(), IndustryProductionGraphWindow::UpdateStatistics(), TownCargoGraphWindow::UpdateStatistics(), and ValueStr().

◆ begin()

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
auto BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::begin ( ) const
inline

Returns an iterator to begin of the set bits.

Returns
The iterator.

Definition at line 276 of file base_bitset_type.hpp.

Referenced by CalculateRefitMasks(), and CompanyStationsWindow::GetWidgetString().

◆ Count()

◆ end()

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
auto BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::end ( ) const
inline

Returns an iterator to the end of the set bits.

Returns
The iterator past the last set bit.

Definition at line 282 of file base_bitset_type.hpp.

◆ Flip() [1/3]

◆ Flip() [2/3]

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
Timpl & BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Flip ( const Timpl & other)
inlineconstexpr

Flip values from another bitset.

Parameters
otherBitset of values to flip.
Returns
The bit set

Definition at line 145 of file base_bitset_type.hpp.

◆ Flip() [3/3]

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
Timpl & BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Flip ( Tvalue_type value)
inlineconstexpr

Flip the value-th bit.

Parameters
valueBit to flip.
Returns
The bit set

Definition at line 131 of file base_bitset_type.hpp.

◆ GetNthSetBit()

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
std::optional< Tvalue_type > BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::GetNthSetBit ( uint n) const
inline

Get the value of the Nth set bit.

Parameters
nThe Nth set bit from which we want to know the value.
Returns
The value of the Nth set bit, or std::nullopt if no Nth bit set.

Definition at line 262 of file base_bitset_type.hpp.

Referenced by FindFirstTrack(), FindFirstTrackdir(), GetEngineCategoryName(), CYapfFollowShipT< Types >::GetRandomTrackdir(), GoalQuestionWindow::GetWidgetString(), GoalQuestionWindow::OnClick(), SelectCompanyLiveryWindow::OnClick(), TownAuthorityWindow::OnClick(), RemoveFirstTrack(), RemoveFirstTrackdir(), RoadFindPathToDest(), and YapfRoadVehicleChooseTrack().

◆ IsValid()

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
bool BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::IsValid ( ) const
inlineconstexpr

Test that the raw value of this bit set is valid.

Returns
true iff the no bits outside the masked value are set.

Definition at line 243 of file base_bitset_type.hpp.

Referenced by CmdGoalQuestion(), and CmdIndustrySetFlags().

◆ None()

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
bool BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::None ( ) const
inlineconstexpr

◆ operator&()

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
Timpl BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::operator& ( const Timpl & other) const
inlineconstexpr

Definition at line 225 of file base_bitset_type.hpp.

◆ operator&=()

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
Timpl & BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::operator&= ( const Timpl & other)
inlineconstexpr

Definition at line 219 of file base_bitset_type.hpp.

◆ operator|()

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
Timpl BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::operator| ( const Timpl & other) const
inlineconstexpr

Definition at line 214 of file base_bitset_type.hpp.

◆ operator|=()

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
Timpl & BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::operator|= ( const Timpl & other)
inlineconstexpr

Definition at line 208 of file base_bitset_type.hpp.

◆ Reset() [1/3]

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
Timpl & BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Reset ( )
inlineconstexpr

Reset all bits.

Returns
The bit set

Definition at line 88 of file base_bitset_type.hpp.

Referenced by AddArticulatedParts(), AdvanceWagonsAfterSwap(), AfterLoadGame(), AircraftController(), AircraftHandleDestTooFar(), AircraftLeaveHangar(), AircraftVehicleChangeInfo(), RoadStop::AllocateDriveThroughBay(), BridgeChangeInfo(), CalculateRefitMasks(), CanFollowRoad(), ChangeTileOwner_Object(), CheckNextTrainTile(), CheckRoadSlope(), CheckShipStayInDepot(), CheckTrainStayInDepot(), ClearTile_Object(), ClearTownHouse(), CmdAutofillTimetable(), CmdBuildRoad(), CmdInsertOrder(), CmdModifyOrder(), CmdOrderRefit(), CmdTerraformLand(), CmdTownGrowthRate(), DeallocateSpecFromRoadStop(), DeallocateSpecFromStation(), Vehicle::DeleteUnreachedImplicitOrders(), DisableEngineForCompany(), DisasterTick_Zeppeliner(), DispatchLeftClickEvent(), DoCreateTown(), DrawRailCatenaryRailway(), DrawTrackBits(), Order::Equals(), ExtendTrainReservation(), FixupTrainLengths(), CFollowTrackT< TransportType::Water, Ship, true >::Follow(), TownAuthorityWindow::GetEnabledActions(), GetRailTypeDropDownList(), CYapfFollowShipT< Types >::GetRandomFollowUpTileTrackdir(), GetTileTrackStatus_Station(), GetTileTrackStatus_Water(), GrowTownAtRoad(), GUIEngineListAddChildren(), HandleAircraftSmoke(), HandleCrashedAircraft(), HandleWindowDragging(), HasAnyRailTypesAvail(), HasAnyRoadTypesAvail(), HasRoadTypeAvail(), IsSafeWaitingPosition(), IsValidDisallowedRoadDirections(), IsValidRoadBits(), ENGNChunkHandler::Load(), LoadUnloadVehicle(), RoadStop::MakeDriveThrough(), NewVehicleAvailable(), Window::OnDropdownClose(), CompanyStationsWindow::OnDropdownSelect(), DropdownWindow::OnFocusLost(), ParamSet(), Vehicle::PreDestructor(), PrepareUnload(), RailVehicleChangeInfo(), ReadGRFSpriteOffsets(), GUIList< BuildBridgeData >::RebuildDone(), ServerNetworkAdminSocketHandler::ReceiveAdminJoinSecure(), LinkRefresher::RefreshLinks(), RemoveAirport(), RemoveBuoy(), RemoveDock(), RemoveFirstTrack(), RemoveFirstTrackdir(), RemoveFromRailBaseStation(), RemoveRoadStop(), RemoveRoadWaypointStop(), ReverseTrainDirection(), RoadFindPathToDest(), RoadStopUpdateCachedTriggers(), RoadVehicleChangeInfo(), GUIList< BuildBridgeData >::SetFiltering(), GUIList< BuildBridgeData >::SetFilterState(), SetGroupFlag(), GUIList< BuildBridgeData >::SetListing(), ShipVehicleChangeInfo(), GUIList< BuildBridgeData >::Sort(), StartWindowDrag(), StartWindowSizing(), StationHandleBigTick(), StationUpdateCachedTriggers(), TrainCheckIfLineEnds(), TrainController(), TrainLocoHandler(), TriggerRoadStopRandomisation(), TriggerStationRandomisation(), TryPathReserve(), UnreserveTrack(), UpdateStationRating(), UpdateTownGrowth(), UpdateVehicleTimetable(), GroundVehicle< T, Type >::UpdateZPositionAndInclination(), StoryPageButtonData::ValidateFlags(), VehicleEnterDepot(), VehicleEnterTile_Rail(), and VehicleEnterTile_TunnelBridge().

◆ Reset() [2/3]

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
Timpl & BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Reset ( const Timpl & other)
inlineconstexpr

Reset values from another bitset.

Parameters
otherBitset of values to reset.
Returns
The bit set

Definition at line 110 of file base_bitset_type.hpp.

◆ Reset() [3/3]

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
Timpl & BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Reset ( Tvalue_type value)
inlineconstexpr

Reset the value-th bit.

Parameters
valueBit to reset.
Returns
The bit set

Definition at line 99 of file base_bitset_type.hpp.

◆ Set() [1/4]

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
Timpl & BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Set ( )
inlineconstexpr

Set all bits.

Returns
The bit set

Definition at line 43 of file base_bitset_type.hpp.

Referenced by AcceptEnginePreview(), AddAcceptedCargo_Industry(), AddAcceptedCargo_Object(), AddAcceptedCargoSetMask(), AddArticulatedParts(), AddDateIntroducedRailTypes(), AddDateIntroducedRoadTypes(), ScriptInfo::AddSetting(), AfterLoadGame(), AfterLoadGRFs(), AfterLoadVehiclesPhase2(), AircraftController(), AircraftEntersTerminal(), AircraftEventHandler_Flying(), AircraftHandleDestTooFar(), AircraftVehicleChangeInfo(), AirportHasBlock(), AirportSetBlocks(), AppendCopyableBadgeList(), ApplyBadgeFeaturesToClassBadges(), BridgeChangeInfo(), CalculateRefitMasks(), ChangeTileOwner_Object(), ChangeTownRating(), CheckAllowRemoveRoad(), CheckConsistencyOfArticulatedVehicle(), CheckIfTrainNeedsService(), CheckRoadSlope(), CheckTrainStayInDepot(), RoadStop::ClearDriveThrough(), DropdownWindow::Close(), NetworkContentDownloadStatusWindow::Close(), CmdAutofillTimetable(), CmdBuildAircraft(), CmdBuildBuoy(), CmdBuildRailStation(), CmdBuildRailVehicle(), CmdBuildRailWagon(), CmdBuildRailWaypoint(), CmdBuildRoad(), CmdBuildRoadStop(), CmdBuildRoadWaypoint(), CmdBuildVehicle(), CmdClearArea(), CmdCloneVehicle(), CmdCreateGroup(), CmdIndustrySetProduction(), CmdModifyOrder(), CmdMoveVehicle(), CmdSetGroupLivery(), CmdSetVehicleVisibility(), CmdTerraformLand(), CmdTownGrowthRate(), CommandFlagsToDCFlags(), CompanyCheckBankrupt(), Order::ConvertFromOldSavegame(), DeleteLastWagon(), DrawRailCatenaryRailway(), DrawRoadTypeCatenary(), DrawStationCoverageAreaText(), DrawTile_Rail(), DrawTile_Road(), BaseVehicleListWindow::DrawVehicleListItems(), EnableEngineForCompany(), EnumBitSet< VehicleAirFlag, uint8_t >::EnumBitSet(), EnumBitSet< VehicleAirFlag, uint8_t >::EnumBitSet(), ErrorUnknownCallbackResult(), ExploreSegment(), FinaliseBadges(), FinalisePriceBaseMultipliers(), FixTTOEngines(), GUIList< BuildBridgeData >::ForceRebuild(), GUIList< BuildBridgeData >::ForceResort(), RoadStop::FreeBay(), FreeTerminal(), GetAcceptanceMask(), GetAllCompatibleRailTypes(), GetAllIntroducesRailTypes(), GetAllPoweredRailTypes(), GetArticulatedRefitMasks(), GetAvailableVehicleCargoTypes(), GetCargoTypesOfArticulatedParts(), GetCargoTypesOfArticulatedVehicle(), GetCargoWaitingMask(), GetCompanyRailTypes(), GetCompanyRoadTypes(), TownAuthorityWindow::GetEnabledActions(), GetGlobalVariable(), GetMaskOfAllowedCurrencies(), GetMaskOfTownActions(), SmallMapWindow::GetOverlayCompanyMask(), GetPresentRoadTypes(), GetProducedCargoOfHouse(), GetRailTypes(), RoadStopScopeResolver::GetRandomTriggers(), StationScopeResolver::GetRandomTriggers(), GetRoadTypes(), GetTileTrackStatus_Rail(), GetTownRoadGridElement(), HandleAircraftEnterHangar(), HandleBankruptcyTakeover(), HandleIncomingNetworkGameInfoGRFConfig(), InitializeNetworkPools(), InsertOrder(), CoreTextFontCache::InternalGetGlyph(), FreeTypeFontCache::InternalGetGlyph(), Win32FontCache::InternalGetGlyph(), Vehicle::LeaveStation(), ENGNChunkHandler::Load(), SlStationGoods::Load(), LoadUnloadVehicle(), MakeCzechTownName(), MarkBadgeSeen(), MarkTrainAsStuck(), MaskWireBits(), MoveBuoysToWaypoints(), MoveWaypointsToBaseStations(), GUIList< BuildBridgeData >::NeedResort(), NetworkAutoCleanCompanies(), NewVehicleAvailable(), NetworkContentDownloadStatusWindow::OnDownloadProgress(), PrepareRefitAction::operator()(), VarType::operator|(), CYapfCostRailT< Types >::PfCalcCost(), LinkRefresher::PredictNextOrder(), RailTypeChangeInfo(), RailVehicleChangeInfo(), ReadGRFSpriteOffsets(), GUIList< BuildBridgeData >::RebuildDone(), LinkRefresher::RefreshLinks(), RemoveRoad(), VehicleOrderSaver::Restore(), ReverseTrainSwapVeh(), RoadStopUpdateCachedTriggers(), RoadTypeChangeInfo(), RoadVehArrivesAt(), RoadVehicleChangeInfo(), ScrollbarClickPositioning(), RoadStop::SetEntranceBusy(), GUIList< BuildBridgeData >::SetFiltering(), GUIList< BuildBridgeData >::SetFilterState(), SetGroupFlag(), BaseSettingEntry::SetLastField(), GUIList< BuildBridgeData >::SetListing(), SmallMapWindow::SetOverlayCargoMask(), GUIList< BuildBridgeData >::SetSortType(), Window::SetTimeout(), Window::SetWhiteBorder(), ShipArrivesAt(), ShipVehicleChangeInfo(), ShowDropDownList(), ShowNetworkContentListWindow(), ShowNewGrfVehicleError(), StartupOneEngine(), StartWindowDrag(), StartWindowSizing(), StationUpdateCachedTriggers(), SwapTrainFlags(), TileLoop_Rail(), TileLoop_Town(), TownActionBuildStatue(), TownTickHandler(), TrainApproachingLineEnd(), TrainCheckIfLineEnds(), TrainEnterStation(), TranslateRefitMask(), TriggerRoadStopRandomisation(), TriggerStationRandomisation(), TriggerWatchedCargoCallbacks(), TryBuildTownHouse(), TryReserveTrack(), UpdateOrderDest(), LinkGraphLegendWindow::UpdateOverlayCargoes(), LinkGraphLegendWindow::UpdateOverlayCompanies(), UpdateStationAcceptance(), BaseCompanyGraphWindow::UpdateStatistics(), UpdateTownGrowth(), UpdateVehicleTimetable(), GroundVehicle< T, Type >::UpdateZPositionAndInclination(), VehicleEnterDepot(), VehicleEnteredDepotThisTick(), VehicleEnterTile_Rail(), VehicleEnterTile_Road(), VehicleEnterTile_Station(), VehicleEnterTile_TunnelBridge(), ViewportAddSignStrings(), ViewportAddStationStrings(), and ViewportAddTownStrings().

◆ Set() [2/4]

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
Timpl & BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Set ( const Timpl & other)
inlineconstexpr

Set values from another bitset.

Parameters
otherBitset of values to set.
Returns
The bit set

Definition at line 67 of file base_bitset_type.hpp.

◆ Set() [3/4]

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
template<typename Treturn_type = Timpl>
requires std::is_base_of_v<BaseBitSet<Timpl, Tvalue_type, Tstorage, Tmask>, Treturn_type>
Treturn_type & BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Set ( Tvalue_type value)
inlineconstexpr

Set the value-th bit.

Template Parameters
Treturn_typeThe returned type to which this bit set will be cast.
Parameters
valueBit to set.
Returns
The bit set

Definition at line 56 of file base_bitset_type.hpp.

◆ Set() [4/4]

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
Timpl & BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Set ( Tvalue_type value,
bool set )
inlineconstexpr

Assign the value-th bit.

Parameters
valueBit to assign to.
settrue if the bit should be set, false if the bit should be reset.
Returns
The EnumBitset

Definition at line 79 of file base_bitset_type.hpp.

◆ Test()

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
bool BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Test ( Tvalue_type value) const
inlineconstexpr

Test if the value-th bit is set.

Parameters
valueBit to check.
Returns
true iff the requested bit is set.

Definition at line 156 of file base_bitset_type.hpp.

Referenced by AddAcceptedCargo_Industry(), AddAcceptedCargoOfHouse(), AddBadgeClassesToConfiguration(), LinkGraph::BaseNode::AddEdge(), AddEngineReplacement(), AddGRFString(), NewGRFWindow::AddGRFToActive(), LinkGraph::AddNode(), AddProducedCargo_Town(), ScriptInfo::AddSetting(), AfterLoadGame(), AircraftController(), AircraftEntersTerminal(), AircraftEventHandler(), AircraftEventHandler_Flying(), AircraftEventHandler_InHangar(), AircraftHandleDestTooFar(), AircraftVehicleChangeInfo(), AirportMaintenanceCost(), AnimateNewObjectTile(), AppendCopyableBadgeList(), BridgeChangeInfo(), TimetableWindow::BuildArrivalDepartureList(), GameOptionsWindow::BuildDropDownList(), BuildObject(), RefitWindow::BuildRefitList(), BuildReplacementVehicle(), BuildStationPart(), CompanyStationsWindow::BuildStationsList(), BuildTownHouse(), CalcEngineReliability(), CalcPercentVehicleFilled(), CalculateRefitMasks(), CanDetermineTimeTaken(), CFollowTrackT< TransportType::Water, Ship, true >::CanEnterNewTile(), CanVehicleUseStation(), CargoAndEngineFilter(), CargoSpecClassSorter(), CcRoadStop(), CcStartStopVehicle(), ChangeIndustryProduction(), ChangeTileOwner_Object(), ChangeTownRating(), ChangeTrainDirRandomly(), ChangeVehicleNews(), CheckAllowRemoveRoad(), CheckAutoreplaceValidity(), CheckBridgeAvailability(), CheckBuildableTile(), CheckBuildAbove_Object(), CheckCompatibleRail(), CheckFlatLandRailStation(), CheckforTownRating(), CheckIfAuthorityAllowsNewStation(), CheckIfCanLevelIndustryPlatform(), CheckIfIndustryTilesAreFree(), CheckIfIndustryTileSlopes(), CheckIndustryCloseDownProtection(), RoadStop::Entry::CheckIntegrity(), CheckOrders(), CheckRoadBlockedForOvertaking(), CheckSoftLimit(), CheckSubsidised(), CheckTrainsOnTrack(), CheckVehicleBreakdown(), ChooseShipTrack(), PoolBase::Clean(), RoadStop::ClearDriveThrough(), ClearTile_Clear(), ClearTile_Industry(), ClearTile_Object(), ClearTile_Rail(), ClearTile_Road(), ClearTile_Station(), ClearTile_Town(), ClearTile_Trees(), ClearTile_TunnelBridge(), ClearTile_Water(), ClearTownHouse(), ClickTile_Station(), DropdownWindow::Close(), CloseAllNonVitalWindows(), CloseConstructionWindows(), CloseNonVitalWindows(), CloseWindowById(), CmdAddSharedVehicleGroup(), CmdAddVehicleGroup(), CmdAlterGroup(), CmdAutofillTimetable(), CmdAutoreplaceVehicle(), CmdBuildAircraft(), CmdBuildAirport(), CmdBuildBridge(), CmdBuildBuoy(), CmdBuildCanal(), CmdBuildDock(), CmdBuildIndustry(), CmdBuildObject(), CmdBuildObjectArea(), CmdBuildRailStation(), CmdBuildRailVehicle(), CmdBuildRailWagon(), CmdBuildRailWaypoint(), CmdBuildRoad(), CmdBuildRoadDepot(), CmdBuildRoadStop(), CmdBuildRoadVehicle(), CmdBuildRoadWaypoint(), CmdBuildShip(), CmdBuildShipDepot(), CmdBuildSingleRail(), CmdBuildSingleSignal(), CmdBuildTrainDepot(), CmdBuildTunnel(), CmdBuildVehicle(), CmdBulkChangeTimetable(), CmdBuyCompany(), CmdChangeBankBalance(), CmdChangeCompanySetting(), CmdChangeServiceInt(), CmdChangeSetting(), CmdChangeTimetable(), CmdClearArea(), CmdClearOrderBackup(), CmdCloneOrder(), CmdCloneVehicle(), CmdCompanyAllowListCtrl(), CmdCompanyCtrl(), CmdConvertRail(), CmdConvertRoad(), CmdCreateGoal(), CmdCreateGroup(), CmdCreateLeagueTable(), CmdCreateLeagueTableElement(), CmdCreateStoryPage(), CmdCreateStoryPageElement(), CmdCreateSubsidy(), CmdCustomNewsItem(), CmdDecreaseLoan(), CmdDeleteGroup(), CmdDeleteOrder(), CmdDeleteTown(), CmdDoTownAction(), CmdEngineCtrl(), CmdExpandTown(), CmdForceTrainProceed(), CmdFoundTown(), CmdGiveMoney(), CmdGoalQuestion(), CmdGoalQuestionAnswer(), CmdIncreaseLoan(), CmdIndustrySetExclusivity(), CmdIndustrySetFlags(), CmdIndustrySetProduction(), CmdIndustrySetText(), CmdInsertOrder(), CmdLandscapeClear(), CmdLevelLand(), CmdModifyOrder(), CmdMoveOrder(), CmdMoveRailVehicle(), CmdMoveSign(), CmdMoveStationName(), CmdMoveWaypointName(), CmdOpenCloseAirport(), CmdOrderRefit(), CmdPause(), CmdPlaceHouse(), CmdPlaceHouseArea(), CmdPlaceSign(), CmdPlantTree(), CmdRefitVehicle(), CmdRemoveAllVehiclesGroup(), CmdRemoveGoal(), CmdRemoveLeagueTableElement(), CmdRemoveLongRoad(), CmdRemoveRoadStop(), CmdRemoveSingleRail(), CmdRemoveSingleSignal(), CmdRemoveStoryPage(), CmdRemoveStoryPageElement(), CmdRenameCompany(), CmdRenameDepot(), CmdRenameEngine(), CmdRenamePresident(), CmdRenameSign(), CmdRenameStation(), CmdRenameTown(), CmdRenameVehicle(), CmdRenameWaypoint(), CmdReverseTrainDirection(), CmdScrollViewport(), CmdSellRailWagon(), CmdSellVehicle(), CmdSendVehicleToDepot(), CmdSetAutoReplace(), CmdSetCompanyColour(), CmdSetCompanyManagerFace(), CmdSetCompanyMaxLoan(), CmdSetGoalCompleted(), CmdSetGoalDestination(), CmdSetGoalProgress(), CmdSetGoalText(), CmdSetGroupFlag(), CmdSetGroupLivery(), CmdSetStoryPageDate(), CmdSetStoryPageTitle(), CmdSetTimetableStart(), CmdSetVehicleOnTime(), CmdSetVehicleVisibility(), CmdShowStoryPage(), CmdSkipToOrder(), CmdStartStopVehicle(), CmdStoryPageButton(), CmdTerraformLand(), CmdTownCargoGoal(), CmdTownGrowthRate(), CmdTownRating(), CmdTownSetText(), CmdTurnRoadVeh(), CmdUpdateLeagueTableElementData(), CmdUpdateLeagueTableElementScore(), CmdUpdateStoryPageElement(), CmdWantEnginePreview(), CMSAMine(), CommandFlagsToDCFlags(), ConDumpRailTypes(), ConDumpRoadTypes(), Train::ConsistChanged(), BaseConsist::CopyConsistPropertiesFrom(), CopyHeadSpecificThings(), NetworkAuthenticationServerHandler::Create(), CreateNewIndustryHelper(), DecloneOrder(), DecodeSingleSprite(), DeleteLastWagon(), Vehicle::DeleteUnreachedImplicitOrders(), DeliverGoods(), DetermineNextTrainForceProceeding(), Disaster_Airplane_Init(), Disaster_CoalMine_Init(), Disaster_Helicopter_Init(), DisasterTick_Ufo(), DispatchLeftClickEvent(), DispatchRightClickEvent(), CommandHelper< Tcmd, Tret(*)(DoCommandFlags, Targs...), true >::Do(), DoBuildLock(), DoClearBridge(), DoClearTunnel(), DoCreateNewIndustry(), DoDrawVehicle(), TarScanner::DoScan(), NWidgetLeaf::Draw(), TownAuthorityWindow::DrawActions(), DrawAircraftImage(), TimetableWindow::DrawArrivalDeparturePanel(), DrawBadgeNameList(), DrawCanalWater(), DrawCustomStationFoundations(), DrawEngineList(), DrawFrameRect(), DrawHouseInGUI(), IndustryViewWindow::DrawInfo(), DrawLayoutLine(), DrawNewHouseTileInGUI(), DrawNewObjectTileInGUI(), DrawOrderString(), DrawRailCatenaryRailway(), TownAuthorityWindow::DrawRatings(), DrawRoadDepotSprite(), DrawRoadStopTile(), DrawRoadVehImage(), SettingEntry::DrawSetting(), DrawStationTile(), TimetableWindow::DrawSummaryPanel(), DrawTile_Object(), DrawTile_Road(), DrawTile_Station(), DrawTileLayout(), DrawTrackBits(), DrawTrainDetails(), DrawTrainImage(), DepotWindow::DrawVehicleInDepot(), BaseVehicleListWindow::DrawVehicleListItems(), DrawWaterLock(), BaseCargoGraphWindow::DrawWidget(), BuildIndustryWindow::DrawWidget(), BuildObjectWindow::DrawWidget(), GSConfigWindow::DrawWidget(), ScriptSettingsWindow::DrawWidget(), TownDirectoryWindow::DrawWidget(), TownViewWindow::DrawWidget(), VehicleGroupWindow::DrawWidget(), VehicleViewWindow::DrawWidget(), DropdownWindow::DropdownWindow(), Order::Equals(), ErrorUnknownCallbackResult(), ExploreSegment(), FillGRFDetails(), GUIList< BuildBridgeData >::Filter(), FinalisePriceBaseMultipliers(), FindClosestTrainDepot(), CoreTextFontCacheFactory::FindFallbackFont(), FindNearestHangar(), SlStationNormal::FixPointers(), SlStationWaypoint::FixPointers(), FixTTOEngines(), FloodVehicleProc(), FontConfigFindFallbackFont(), FormatString(), ReplaceVehicleWindow::GenerateReplaceRailList(), GetAllCargoSuffixes(), GetArticulatedRefitMasks(), GetBadgeSprite(), GetBestFittingSubType(), GetBridgeTilePillarFlags(), GetCapacityOfArticulatedParts(), GetCargoSuffix(), GetCargoSuffix(), GetCargoTypesOfArticulatedParts(), GetCompanyRailTypes(), GetCompanyRoadTypes(), BaseCargoGraphWindow::GetDatasetIndex(), GetDefaultRoadType(), NWidgetBadgeFilter::GetDropDownList(), GetEngineLiveryScheme(), DropdownWindow::GetFilterBoxHeight(), GUIList< BuildBridgeData >::GetFiltering(), GetFoundation_Industry(), GetFoundation_Object(), GetFoundation_Town(), GetGlobalVariable(), BuildHouseWindow::GetHouseInformation(), GetIfStopIsForType(), GetIncompatibleRefitOrderIdForAutoreplace(), GetIndustryGamePlayProbability(), GetIndustryProbabilityCallback(), GUIList< BuildBridgeData >::GetListing(), GetLoadAmount(), GetMaskOfTownActions(), GetNewCargoTypeForReplace(), OrderList::GetNextDecisionNode(), Train::GetOrderStationLocation(), NewGRFWindow::GetPalette(), Train::GetPoweredPartPower(), GetPreviewCompany(), GetProducedCargoOfHouse(), GetRailTypeDropDownList(), GetRailTypes(), GetRoadTypes(), GetScaledIndustryGenerationProbability(), GetSettingsDesc(), GetTownRoadType(), GetTownRoadTypeFirstIntroductionDate(), HousePickerCallbacks::GetTypeName(), IndustriesScopeResolver::GetVariable(), GetVehicleCannotUseStationReason(), VehicleViewWindow::GetVehicleStatusString(), Train::GetWeight(), OrdersWindow::GetWidgetString(), SelectCompanyLiveryWindow::GetWidgetString(), HandleAircraftSmoke(), HandleAutoscroll(), HandleBankruptcyTakeover(), HandleCrashedTrain(), LinkRefresher::HandleRefit(), HandleScrollbarScrolling(), HandleWindowDragging(), HasPowerOnRail(), HasPowerOnRail(), HasPowerOnRoad(), HasRailCatenary(), GoodsEntry::HasRating(), HasRoadCatenary(), HasRoadTypeAvail(), HasTrack(), Vehicle::HasUnbunchingOrder(), HeightMapCoastLines(), HeightMapSmoothCoasts(), IConsoleGetSetting(), IndustryProductionCallback(), IndustryTemporarilyRefusesCargo(), IniSaveSettings(), InitRailTypes(), InitRoadTypes(), CommandHelperBase::InternalDoAfter(), CommandHelperBase::InternalExecutePrepTest(), CommandHelperBase::InternalExecuteProcessResult(), CommandHelperBase::InternalExecuteValidateTestAndPrepExec(), CommandHelperBase::InternalPostBefore(), IsArticulatedVehicleRefittable(), IsCompatibleRail(), IsCompatibleRail(), GUIList< BuildBridgeData >::IsDescSortOrder(), Vehicle::IsDrivingBackwards(), IsEngineBuildable(), IsEngineRefittable(), RoadStop::IsEntranceBusy(), SpecializedStation< T, Tis_waypoint >::IsExpected(), BaseSettingEntry::IsFiltered(), GUIList< BuildBridgeData >::IsFilterEnabled(), RoadStop::IsFreeBay(), IsGoodGRFConfigList(), Engine::IsHidden(), IsLoggableGrfConfig(), IsRoadStopAvailable(), IsStationAvailable(), Vehicle::IsStoppedInDepot(), IsTileForestIndustry(), IsValidConsoleColour(), SlStationGoods::Load(), SlStationNormal::Load(), SlStationWaypoint::Load(), LoadNewGRFFile(), LoadSettings(), LoadUnloadVehicle(), MakeCzechTownName(), MapAircraftMovementState(), MarkTrainAsStuck(), MaskWireBits(), MaybeBringWindowToFront(), MaybeCrashAirplane(), GUIList< BuildBridgeData >::NeedRebuild(), Vehicle::NeedsServicing(), NetworkAutoCleanCompanies(), NewVehicleAvailable(), BaseCargoGraphWindow::OnClick(), BuildRoadStationWindow::OnClick(), BuildVehicleWindow::OnClick(), GSConfigWindow::OnClick(), NewGRFWindow::OnClick(), ReplaceVehicleWindow::OnClick(), ScriptSettingsWindow::OnClick(), TimetableWindow::OnClick(), TownAuthorityWindow::OnClick(), VehicleGroupWindow::OnClick(), GameOptionsWindow::OnDropdownSelect(), BuildHouseWindow::OnInvalidateData(), BuildObjectWindow::OnInvalidateData(), NewGRFWindow::OnInvalidateData(), PickerWindow::OnInvalidateData(), TownAuthorityWindow::OnInvalidateData(), DropdownWindow::OnMouseLoop(), StationViewWindow::OnPaint(), TimetableWindow::OnPaint(), TownAuthorityWindow::OnPaint(), BuildHouseWindow::OnPlaceObject(), CheatWindow::OnQueryTextFinished(), GameOptionsWindow::OnQueryTextFinished(), OrdersWindow::OrderClick_Service(), ParamSet(), CYapfCostRailT< Types >::PfCalcCost(), CYapfDestinationTileOrStationRailT< Types >::PfDetectDestination(), CYapfDestinationTileRoadT< Types >::PfDetectDestinationTile(), Vehicle::PreDestructor(), LinkRefresher::PredictNextOrder(), PrepareUnload(), PreviousOrderIsUnbunching(), ProcessOrders(), PropagateChildLivery(), Rail90DegTurnDisallowed(), RailNoLevelCrossings(), RailVehicleChangeInfo(), RoadStop::Entry::Rebuild(), ServerNetworkGameSocketHandler::ReceiveClientCommand(), NetworkGameSocketHandler::ReceiveCommand(), RefitVehicle(), LinkRefresher::RefreshLinks(), RelocateAllWindows(), RemoveAirport(), RemoveBuoy(), RemoveDock(), RemoveEngineReplacement(), RemoveFromRailBaseStation(), RemoveGenericRoadStop(), RemoveLock(), OrderBackup::RemoveOrder(), RemoveOrderFromAllVehicles(), RemoveRailStation(), RemoveRoad(), RemoveRoadStop(), RemoveRoadWaypointStop(), ReplaceChain(), ReplaceFreeUnit(), ScriptConfig::ResetEditableSettings(), ResetSettings(), ResolveObject(), ReverseTrainDirection(), ReverseTrainSwapVeh(), RoadFindPathToDest(), RoadNoLevelCrossing(), RoadVehArrivesAt(), RoadVehicleChangeInfo(), SlStationNormal::Save(), SlStationWaypoint::Save(), SendAllVehiclesToDepot(), Vehicle::SendToDepot(), SettingEntry::SetButtons(), FontState::SetColour(), SetColourRemap(), SetMouseCursorVehicle(), LinkGraphLegendWindow::SetOverlay(), SetSettingValue(), SetSettingValue(), SetYearEngineAgingStops(), ShipArrivesAt(), ShipVehicleChangeInfo(), Order::ShouldStopAtStation(), ShowMissingContentWindow(), ShowNewGrfVehicleError(), ShowQueryString(), Vehicle::ShowVisualEffect(), GUIList< BuildBridgeData >::Sort(), StartupOneEngine(), StationHandleBigTick(), SwapTrainFlags(), VehicleOrderSaver::SwitchToNextOrder(), TerraformTile_Industry(), TerraformTile_Object(), TerraformTile_Rail(), TerraformTile_Town(), TestAutoslopeOnRailTile(), TileLoop_Object(), TileLoop_Town(), TownActionAdvertiseLarge(), TownActionAdvertiseMedium(), TownActionAdvertiseSmall(), TownActionBribe(), TownActionBuildStatue(), TownActionBuyRights(), TownActionFundBuildings(), TownActionRoadRebuild(), TownAllowedToBuildRoads(), TownCanGrowRoad(), TownLayoutAllows2x2HouseHere(), TownLayoutAllowsHouseHere(), TownDirectoryWindow::TownRatingSorter(), TownTickHandler(), TrackOverlapsTracks(), TrainApproachingCrossingEnum(), TrainApproachingCrossingTile(), TrainController(), TrainCrashed(), TrainEnterStation(), TrainLocoHandler(), TriggerHouseAnimation_TileLoop(), TriggerIndustryProduction(), TriggerRoadStopRandomisation(), TriggerStationRandomisation(), TryBuildTownHouse(), TryPathReserve(), TryReserveTrack(), NetworkContentListWindow::TypeOrSelectedFilter(), LinkGraph::BaseEdge::Update(), UpdateAircraftSpeed(), UpdateAirplanesOnNewStation(), VehicleViewWindow::UpdateButtons(), UpdateCompanyGroupLiveries(), UpdateHousesAndTowns(), UpdateObjectColours(), UpdateOrderDest(), UpdateSignalsAroundSegment(), UpdateSignalsInBuffer(), UpdateStationRating(), UpdateTownGrowth(), UpdateTownGrowthRate(), UpdateVehicleTimetable(), Vehicle::UpdateVisualEffect(), UpdateWaypointOrder(), GroundVehicle< T, Type >::UpdateZPosition(), VehicleEnterDepot(), VehicleEnteredDepotThisTick(), VehicleEnterTile_Rail(), VehicleLengthChanged(), VerifyAutoreplaceRefitForOrders(), StringData::Version(), ViewportAddString(), ViewportAddVehicles(), YapfRoadVehicleFindNearestDepot(), and YapfTrainCheckReverse().

Field Documentation

◆ data

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
Tstorage BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::data
private

Bitmask of values.

Definition at line 285 of file base_bitset_type.hpp.

◆ MASK

template<typename Timpl, typename Tvalue_type, typename Tstorage, Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
Tstorage BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::MASK = Tmask
staticconstexpr

Mask of valid values.

Definition at line 26 of file base_bitset_type.hpp.


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