|
OpenTTD Source 20260721-master-g25ec12c62d
|
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 670 of file saveload.h.
|
inlineconstexpr |
Create an empty VarType.
Definition at line 677 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 684 of file saveload.h.
|
inlineconstexpr |
Create a VarType linking to a reference.
| ref | The reference. |
Definition at line 690 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 704 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 671 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 672 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 674 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 673 of file saveload.h.
Referenced by operator|(), and SlStdString().