|
OpenTTD Source 20260704-master-gbf70c61fb8
|
Container of a variable's characteristics about a variable's storage. More...
#include <saveload.h>
Public Member Functions | |
| constexpr | VarType () |
Create an empty VarType. | |
| constexpr | VarType (VarFileType file, VarMemType mem) |
Create a VarType with the given file and memory configurations. | |
| constexpr | VarType (SLRefType ref) |
| Create a VarType linking to a reference. | |
| constexpr bool | operator== (const VarType &other) const =default |
| Equality operator. | |
| constexpr VarType | operator| (StringValidationSetting string_validation_setting) const |
Transitional helper function to add a SaveLoadFlag to this type. | |
Data Fields | |
| VarFileType | file {} |
| The way of storing data in the file. | |
| VarMemType | mem {} |
| The way of storing data in memory. | |
| StringValidationSettings | string_validation_settings {} |
| Any settings related to validation of the strings. | |
| SLRefType | ref {} |
| The reference type. | |
Container of a variable's characteristics about a variable's storage.
Definition at line 694 of file saveload.h.
|
inlineconstexpr |
Create an empty VarType.
Definition at line 701 of file saveload.h.
Referenced by operator==(), and operator|().
|
inlineconstexpr |
Create a VarType with the given file and memory configurations.
| file | The file storage configuration. |
| mem | The memory storage configuration. |
Definition at line 708 of file saveload.h.
|
inlineconstexpr |
Create a VarType linking to a reference.
| ref | The reference. |
Definition at line 714 of file saveload.h.
References ref.
|
constexprdefault |
Equality operator.
| other | The element to compare to. |
true iff all elements of this and other are the same. References VarType().
|
inlineconstexpr |
Transitional helper function to add a SaveLoadFlag to this type.
| string_validation_setting | The string_validation_setting to set. |
Definition at line 728 of file saveload.h.
References BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Set(), string_validation_settings, and VarType().
| VarFileType VarType::file {} |
The way of storing data in the file.
Definition at line 695 of file saveload.h.
Referenced by GetSavegameFileType(), GetSettingsDesc(), SlCalcConvFileLen(), SlSaveLoadConv(), and VarType().
| VarMemType VarType::mem {} |
The way of storing data in memory.
Definition at line 696 of file saveload.h.
Referenced by GetVariableAddress(), SetSettingValue(), SlArray(), SlCalcVectorLen(), SlCheckVarSize(), SlCopyInternal(), SlSaveLoadConv(), SlStdString(), SlVector(), and VarType().
| SLRefType VarType::ref {} |
The reference type.
Definition at line 698 of file saveload.h.
Referenced by SlSaveLoadRef(), and VarType().
| StringValidationSettings VarType::string_validation_settings {} |
Any settings related to validation of the strings.
Definition at line 697 of file saveload.h.
Referenced by operator|(), and SlStdString().