|
OpenTTD Source 20260917-master-gec444f7315
|
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 (StringValidationSettings string_validation_settings) |
| Create a String var type with the given string validation settings. | |
| constexpr | VarType (SLRefType ref) |
| Create a VarType linking to a reference. | |
| constexpr bool | operator== (const VarType &other) const =default |
| Equality operator. | |
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 675 of file saveload.h.
|
inlineconstexpr |
|
inlineconstexpr |
Create a VarType with the given file and memory configurations.
| file | The file storage configuration. |
| mem | The memory storage configuration. |
Definition at line 689 of file saveload.h.
|
inlineconstexpr |
Create a String var type with the given string validation settings.
| string_validation_settings | How to validate the string. |
Definition at line 695 of file saveload.h.
References file, mem, and string_validation_settings.
|
inlineconstexpr |
Create a VarType linking to a reference.
| ref | The reference. |
Definition at line 702 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().
| VarFileType VarType::file {} |
The way of storing data in the file.
Definition at line 676 of file saveload.h.
Referenced by GetSavegameFileType(), SlCalcConvFileLen(), SlCopyInternal(), SlSaveLoadConv(), VarType(), and VarType().
| VarMemType VarType::mem {} |
The way of storing data in memory.
Definition at line 677 of file saveload.h.
Referenced by GetVariableAddress(), SlArray(), SlCalcVectorLen(), SlCopyInternal(), SlSaveLoadConv(), SlStdString(), SlVector(), VarType(), and VarType().
| SLRefType VarType::ref {} |
The reference type.
Definition at line 679 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 678 of file saveload.h.
Referenced by SlStdString(), and VarType().