OpenTTD Source 20250220-master-gf89924a727
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< AirportBlock, uint64_t > EnumBitSet< Flag, uint8_t > EnumBitSet< AirportTileCallbackMask, uint8_t > EnumBitSet< BadgeFlag, uint8_t > EnumBitSet< GrfSpecFeature, uint32_t, GrfSpecFeature::GSF_END > EnumBitSet< SettingEntryFlag, uint8_t > EnumBitSet< StationFacility, uint8_t > EnumBitSet< SortListFlag, uint8_t > EnumBitSet< EndSegmentReason, uint16_t > EnumBitSet< CanalCallbackMask, uint8_t > EnumBitSet< CargoClass, uint16_t > EnumBitSet< CargoCallbackMask, uint8_t > EnumBitSet< CmdFlag, uint8_t > EnumBitSet< CommandFlag, uint16_t > EnumBitSet< EngineFlag, uint8_t > EnumBitSet< EngineDisplayFlag, uint8_t > EnumBitSet< LandscapeType, uint8_t > EnumBitSet< EngineMiscFlag, uint8_t > EnumBitSet< VehicleCallbackMask, uint16_t > EnumBitSet< ExtraEngineFlag, uint8_t > EnumBitSet< GRFConfigFlag, uint8_t > EnumBitSet< GRFBug, uint8_t > EnumBitSet< BorderFlag, uint8_t > EnumBitSet< GroupFlag, uint8_t > EnumBitSet< BuildingFlag, uint8_t > EnumBitSet< HouseCallbackMask, uint16_t > EnumBitSet< HouseExtraFlag, uint8_t > EnumBitSet< IndustryControlFlag, uint8_t, IndustryControlFlag::End > EnumBitSet< IndustryLifeType, uint8_t > EnumBitSet< IndustryBehaviour, uint32_t > EnumBitSet< IndustryCallbackMask, uint16_t > EnumBitSet< IndustryTileCallbackMask, uint8_t > EnumBitSet< IndustryTileSpecialFlag, uint8_t > EnumBitSet< AspectFlag, uint8_t > EnumBitSet< NWidgetDisplayFlag, uint16_t > EnumBitSet< NWidContainerFlag, uint8_t > EnumBitSet< NewsFlag, uint8_t > EnumBitSet< ObjectFlag, uint16_t > EnumBitSet< ObjectCallbackMask, uint8_t > EnumBitSet< RailTypeFlag, uint8_t > EnumBitSet< RoadStopDrawMode, uint8_t > EnumBitSet< RoadStopCallbackMask, uint8_t > EnumBitSet< RoadStopSpecFlag, uint8_t > EnumBitSet< RoadTypeFlag, uint8_t > EnumBitSet< SettingFlag, uint16_t > EnumBitSet< SpriteComponent, uint8_t, SpriteComponent::End > EnumBitSet< StationCallbackMask, uint16_t > EnumBitSet< StationSpecFlag, uint8_t > EnumBitSet< ViewportStringFlag, uint8_t > EnumBitSet< TownAction, uint8_t > EnumBitSet< WindowFlag, uint16_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 (Tstorage data)
 
constexpr auto operator<=> (const BaseBitSet &) const noexcept=default
 
constexpr Timpl & Set ()
 Set all bits.
 
constexpr Timpl & 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 (Tvalue_type value)
 Reset the value-th bit.
 
constexpr Timpl & Reset (const Timpl &other)
 Reset values from another bitset.
 
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) const
 
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.
 
auto begin () const
 
auto end () const
 

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 25 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 28 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 27 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()>
constexpr BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::BaseBitSet ( )
inlineconstexpr

Definition at line 31 of file base_bitset_type.hpp.

◆ BaseBitSet() [2/2]

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

Definition at line 32 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()>
constexpr 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 150 of file base_bitset_type.hpp.

◆ All() [2/2]

template<typename Timpl , typename Tvalue_type , typename Tstorage , Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
constexpr 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 141 of file base_bitset_type.hpp.

Referenced by HandleBankruptcyTakeover().

◆ Any() [1/2]

template<typename Timpl , typename Tvalue_type , typename Tstorage , Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
constexpr 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 169 of file base_bitset_type.hpp.

◆ Any() [2/2]

◆ base()

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

◆ 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

Definition at line 211 of file base_bitset_type.hpp.

◆ 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

Definition at line 212 of file base_bitset_type.hpp.

◆ Flip() [1/2]

template<typename Timpl , typename Tvalue_type , typename Tstorage , Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
constexpr 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 120 of file base_bitset_type.hpp.

◆ Flip() [2/2]

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

◆ IsValid()

template<typename Timpl , typename Tvalue_type , typename Tstorage , Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
constexpr 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 206 of file base_bitset_type.hpp.

Referenced by CmdIndustrySetFlags().

◆ None()

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

Test if none of the values are set.

Returns
true iff none of the values are set.

Definition at line 178 of file base_bitset_type.hpp.

Referenced by CmdClearArea(), IsEngineBuildable(), NetworkHandlePauseChange(), LinkGraphOverlay::RebuildCache(), and StateGameLoop_LinkGraphPauseControl().

◆ operator&()

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

Definition at line 188 of file base_bitset_type.hpp.

◆ operator|()

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

Definition at line 183 of file base_bitset_type.hpp.

◆ Reset() [1/2]

template<typename Timpl , typename Tvalue_type , typename Tstorage , Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
constexpr 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 95 of file base_bitset_type.hpp.

◆ Reset() [2/2]

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

◆ Set() [1/4]

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

Set all bits.

Returns
The bit set

Definition at line 40 of file base_bitset_type.hpp.

Referenced by AcceptEnginePreview(), Station::AddFacility(), AfterLoad_LinkGraphPauseControl(), AfterLoadGame(), AirportHasBlock(), AirportSetBlocks(), AppendCopyableBadgeList(), ApplyBadgeFeaturesToClassBadges(), Window::ApplyDefaults(), ChangeTownRating(), DropdownWindow::Close(), NetworkContentDownloadStatusWindow::Close(), CmdBuildBuoy(), CmdBuildRailWaypoint(), CmdBuildRoadWaypoint(), CmdBuildVehicle(), CmdClearArea(), CmdCloneVehicle(), CmdCreateGroup(), CmdIndustrySetProduction(), CmdMoveVehicle(), CmdPause(), CmdSetVehicleVisibility(), CmdTerraformLand(), CommandFlagsToDCFlags(), CompanyCheckBankrupt(), EnableEngineForCompany(), EnumBitSet< Tenum, Tstorage, Tend_value >::EnumBitSet(), ErrorUnknownCallbackResult(), FinaliseBadges(), FixTTOEngines(), GUIList< T, P, F >::ForceRebuild(), GUIList< T, P, F >::ForceResort(), FreeTerminal(), TownAuthorityWindow::GetEnabledActions(), SmallMapWindow::GetOverlayCompanyMask(), GRFUnsafe(), HandleBankruptcyTakeover(), Window::InitializeData(), InitializeNetworkPools(), CommandHelperBase::InternalExecuteProcessResult(), ENGNChunkHandler::Load(), LoadNewGRF(), MarkBadgeSeen(), MoveBuoysToWaypoints(), MoveWaypointsToBaseStations(), NetworkAutoCleanCompanies(), NewsItem::NewsItem(), NewVehicleAvailable(), GraphLegendWindow::OnInvalidateData(), GUIList< T, P, F >::RebuildDone(), ReplaceChain(), ScrollbarClickPositioning(), SettingEntry::SetButtons(), NWidgetCore::SetDisabled(), GUIList< T, P, F >::SetFiltering(), GUIList< T, P, F >::SetFilterState(), SetGroupFlag(), NWidgetCore::SetHighlighted(), BaseSettingEntry::SetLastField(), GUIList< T, P, F >::SetListing(), NWidgetCore::SetLowered(), GUIList< T, P, F >::SetSortType(), Window::SetTimeout(), Window::SetWhiteBorder(), Window::SetWidgetHighlight(), ShowDropDownList(), ShowNewGrfVehicleError(), StartupOneEngine(), StartWindowDrag(), StartWindowSizing(), TownActionBuildStatue(), SettingEntry::UpdateFilterState(), SettingsPage::UpdateFilterState(), LinkGraphLegendWindow::UpdateOverlayCompanies(), BaseGraphWindow::UpdateStatistics(), ViewportAddSignStrings(), ViewportAddStationStrings(), ViewportAddTownStrings(), and WaypointWindow::WaypointWindow().

◆ Set() [2/4]

template<typename Timpl , typename Tvalue_type , typename Tstorage , Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
constexpr 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 62 of file base_bitset_type.hpp.

◆ Set() [3/4]

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

Set the value-th bit.

Parameters
valueBit to set.
Returns
The bit set

Definition at line 51 of file base_bitset_type.hpp.

◆ Set() [4/4]

template<typename Timpl , typename Tvalue_type , typename Tstorage , Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
constexpr 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 74 of file base_bitset_type.hpp.

◆ Test()

template<typename Timpl , typename Tvalue_type , typename Tstorage , Tstorage Tmask = std::numeric_limits<Tstorage>::max()>
constexpr 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 131 of file base_bitset_type.hpp.

Referenced by AddAcceptedCargoOfHouse(), AddArticulatedParts(), AddEngineReplacement(), NewGRFWindow::AddGRFToActive(), AfterLoadGame(), AfterLoadGRFs(), AircraftVehicleChangeInfo(), AirportMaintenanceCost(), AnimateNewObjectTile(), AppendCopyableBadgeList(), NWidgetHorizontal::AssignSizePosition(), NWidgetVertical::AssignSizePosition(), BuildObject(), RefitWindow::BuildRefitList(), BuildReplacementVehicle(), BuildStationPart(), BuildTownHouse(), CalcEngineReliability(), CalculateRefitMasks(), CanVehicleUseStation(), CargoSpecClassSorter(), CcRoadStop(), ChangeIndustryProduction(), ChangeTownRating(), IntSettingDesc::ChangeValue(), ChangeVehicleNews(), CheckAutoreplaceValidity(), CheckBridgeAvailability(), CheckFlatLandRailStation(), CheckforTownRating(), CheckIfAuthorityAllowsNewStation(), CheckIfCanLevelIndustryPlatform(), CheckIfIndustryTilesAreFree(), CheckIfIndustryTileSlopes(), CheckIndustryCloseDownProtection(), CheckMinActiveClients(), CheckOrders(), CheckPauseHelper(), CheckPauseOnJoin(), CheckSoftLimit(), PoolBase::Clean(), ClearTile_Station(), ClearTile_Town(), ClearTile_TunnelBridge(), ClearTownHouse(), 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(), CmdOpenCloseAirport(), CmdOrderRefit(), CmdPause(), CmdPlaceHouse(), 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(), Train::ConsistChanged(), CopyHeadSpecificThings(), NetworkAuthenticationServerHandler::Create(), CreateNewIndustryHelper(), DecloneOrder(), DecodeSingleSprite(), Engine::DetermineCapacity(), Disaster_CoalMine_Init(), Disaster_Helicopter_Init(), DispatchLeftClickEvent(), DispatchRightClickEvent(), CommandHelper< Tcmd, Tret(*)(DoCommandFlags, Targs...), true >::Do(), DoBuildLock(), DoClearBridge(), DoClearTunnel(), DoCreateNewIndustry(), TarScanner::DoScan(), NWidgetViewport::Draw(), NWidgetScrollbar::Draw(), NWidgetLeaf::Draw(), BaseSettingEntry::Draw(), SettingsPage::Draw(), TownAuthorityWindow::DrawActions(), DrawBadgeNameList(), DrawEngineList(), DrawFrameRect(), DrawHouseInGUI(), DrawNewHouseTileInGUI(), DrawNewObjectTileInGUI(), TownAuthorityWindow::DrawRatings(), DrawRoadDepotSprite(), DrawRoadStopTile(), SettingEntry::DrawSetting(), DrawStationTile(), DrawTile_Road(), DrawTileLayout(), GraphLegendWindow::DrawWidget(), VehicleGroupWindow::DrawWidget(), BuildObjectWindow::DrawWidget(), StatusBarWindow::DrawWidget(), TownDirectoryWindow::DrawWidget(), Window::DrawWidgets(), ErrorUnknownCallbackResult(), FillGRFDetails(), GUIList< T, P, F >::Filter(), FinaliseEngineArray(), FindNearestHangar(), FixTTOEngines(), GetAllCargoSuffixes(), GetArticulatedRefitMasks(), GetBadgeSprite(), GetBestFittingSubType(), GetCapacityOfArticulatedParts(), GetCargoSubtypeText(), GetCargoSuffix(), GetCargoSuffix(), GetCargoTypesOfArticulatedParts(), GetCompanyRailTypes(), GetCompanyRoadTypes(), GetEngineLiveryScheme(), GUIList< T, P, F >::GetFiltering(), GetFoundation_Town(), BuildHouseWindow::GetHouseInformation(), GetIfStopIsForType(), GetIndustryGamePlayProbability(), GetIndustryProbabilityCallback(), GUIList< T, P, F >::GetListing(), GetLoadAmount(), GetMaskOfTownActions(), Train::GetOrderStationLocation(), NewGRFWindow::GetPalette(), GetPreviewCompany(), GetProducedCargoOfHouse(), GetRailTypes(), GetRoadTypes(), GetScaledIndustryGenerationProbability(), GetSettingsDesc(), GetTownRoadType(), GetTownRoadTypeFirstIntroductionDate(), SettingDesc::GetType(), IntSettingDesc::GetValueParams(), IndustriesScopeResolver::GetVariable(), GetVehicleCannotUseStationReason(), HandleAutoscroll(), HandleBankruptcyTakeover(), HandleScrollbarScrolling(), HandleWindowDragging(), HasRailCatenary(), HasRoadCatenary(), HasRoadTypeAvail(), HeightMapCoastLines(), HeightMapSmoothCoasts(), IConsoleGetSetting(), IndustryProductionCallback(), IndustryTemporarilyRefusesCargo(), IniSaveSettings(), InitRailTypes(), InitRoadTypes(), CommandHelperBase::InternalDoAfter(), CommandHelperBase::InternalExecutePrepTest(), CommandHelperBase::InternalExecuteProcessResult(), CommandHelperBase::InternalExecuteValidateTestAndPrepExec(), CommandHelperBase::InternalPostBefore(), IsArticulatedEngine(), IsArticulatedVehicleRefittable(), GUIList< T, P, F >::IsDescSortOrder(), NWidgetCore::IsDisabled(), SettingDesc::IsEditable(), Engine::IsEnabled(), IsEngineBuildable(), IsEngineRefittable(), ObjectSpec::IsEverAvailable(), SpecializedStation< T, Tis_waypoint >::IsExpected(), BaseSettingEntry::IsFiltered(), GUIList< T, P, F >::IsFilterEnabled(), IsGoodGRFConfigList(), Engine::IsHidden(), NWidgetCore::IsHighlighted(), IsLoggableGrfConfig(), NWidgetCore::IsLowered(), IndustrySpec::IsProcessingIndustry(), IsRoadStopAvailable(), Waypoint::IsSingleTile(), IsStationAvailable(), IsTileForestIndustry(), PATSChunkHandler::Load(), LoadNewGRF(), LoadNewGRFFile(), LoadSettings(), IntSettingDesc::MakeValueValid(), MaybeBringWindowToFront(), MaybeCrashAirplane(), GUIList< T, P, F >::NeedRebuild(), NetworkHandlePauseChange(), NewVehicleAvailable(), ReplaceVehicleWindow::OnClick(), BuildVehicleWindow::OnClick(), GenerateLandscapeWindow::OnClick(), CreateScenarioWindow::OnClick(), VehicleGroupWindow::OnClick(), NetworkStartServerWindow::OnClick(), NewGRFWindow::OnClick(), BuildRoadStationWindow::OnClick(), ScriptDebugWindow::OnClick(), GameSettingsWindow::OnClick(), TownAuthorityWindow::OnClick(), GenerateLandscapeWindow::OnInvalidateData(), NewGRFWindow::OnInvalidateData(), PickerWindow::OnInvalidateData(), ScriptDebugWindow::OnInvalidateData(), TownAuthorityWindow::OnInvalidateData(), BuildHouseWindow::OnInvalidateData(), VehicleGroupWindow::OnPaint(), StationViewWindow::OnPaint(), TownAuthorityWindow::OnPaint(), SelectGameWindow::OnResize(), GameOptionsWindow::OnResize(), OpenGLSprite::OpenGLSprite(), ParamSet(), PlayVehicleSound(), Window::ProcessHighlightedInvalidations(), Rail90DegTurnDisallowed(), RailNoLevelCrossings(), RailVehicleChangeInfo(), ServerNetworkGameSocketHandler::Receive_CLIENT_COMMAND(), NetworkGameSocketHandler::ReceiveCommand(), RefitVehicle(), RelocateAllWindows(), RemoveAirport(), RemoveBuoy(), RemoveDock(), RemoveEngineReplacement(), RemoveFromRailBaseStation(), RemoveGenericRoadStop(), RemoveLock(), RemoveRailStation(), RemoveRoad(), RemoveRoadStop(), RemoveRoadWaypointStop(), ReplaceChain(), ReplaceFreeUnit(), StationResolverObject::ResolveReal(), RoadNoLevelCrossing(), RoadVehicleChangeInfo(), SendAllVehiclesToDepot(), Vehicle::SendToDepot(), SettingEntry::SetButtons(), LinkGraphLegendWindow::SetOverlay(), SetSettingValue(), SetSettingValue(), ReplaceVehicleWindow::SetStringParameters(), GenerateLandscapeWindow::SetStringParameters(), NWidgetHorizontal::SetupSmallestSize(), NWidgetVertical::SetupSmallestSize(), SetYearEngineAgingStops(), ShipVehicleChangeInfo(), ShowMissingContentWindow(), ShowNewGrfVehicleError(), GUIList< T, P, F >::Sort(), StartupOneEngine(), StateGameLoop_LinkGraphPauseControl(), StationHandleBigTick(), TestAutoslopeOnRailTile(), TileLoop_Town(), ToolbarOptionsClick(), TownActionAdvertiseLarge(), TownActionAdvertiseMedium(), TownActionAdvertiseSmall(), TownActionBribe(), TownActionBuildStatue(), TownActionBuyRights(), TownActionFundBuildings(), TownActionRoadRebuild(), TownCanGrowRoad(), TownDirectoryWindow::TownRatingSorter(), TriggerIndustryProduction(), TryBuildTownHouse(), Train::UpdateDeltaXY(), UpdateHousesAndTowns(), UpdateObjectColours(), Station::UpdateVirtCoord(), Vehicle::UpdateVisualEffect(), StationViewWindow::UpdateWidgetSize(), UsedBadgeClasses::UsedBadgeClasses(), VehicleLengthChanged(), StringData::Version(), and ViewportAddString().

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 215 of file base_bitset_type.hpp.

◆ MASK

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

Mask of valid values.

Definition at line 29 of file base_bitset_type.hpp.


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