OpenTTD Source 20241224-master-gee860a5c8e
|
Template class to help with list-like types. More...
Static Public Member Functions | |
static size_t | SlCalcLen (const void *storage, VarType conv, SaveLoadType cmd=SL_VAR) |
Internal templated helper to return the size in bytes of a list-like type. | |
static void | SlSaveLoadMember (SaveLoadType cmd, Tvar *item, VarType conv) |
static void | SlSaveLoad (void *storage, VarType conv, SaveLoadType cmd=SL_VAR) |
Internal templated helper to save/load a list-like type. | |
Private Types | |
typedef Tstorage< Tvar, Tallocator > | SlStorageT |
Template class to help with list-like types.
Definition at line 1239 of file saveload.cpp.
|
private |
Definition at line 1240 of file saveload.cpp.
|
inlinestatic |
Internal templated helper to return the size in bytes of a list-like type.
storage | The storage to find the size of |
conv | VarType type of variable that is used for calculating the size |
cmd | The SaveLoadType ware are saving/loading. |
Definition at line 1248 of file saveload.cpp.
References SL_REF, SL_VAR, and SlCalcConvFileLen().
Referenced by SlCalcDequeLen(), SlCalcRefListLen(), SlCalcRefVectorLen(), and SlCalcVectorLen().
|
inlinestatic |
Internal templated helper to save/load a list-like type.
storage | The storage being manipulated. |
conv | VarType type of variable that is used for calculating the size. |
cmd | The SaveLoadType ware are saving/loading. |
Definition at line 1276 of file saveload.cpp.
References _sl, SaveLoadParams::action, IsSavegameVersionBefore(), SL_REF, SL_STDSTR, SL_VAR, SLA_LOAD, SLA_LOAD_CHECK, SLA_NULL, SLA_PTRS, SLA_SAVE, SLV_69, and SLV_SAVELOAD_LIST_LENGTH.
Referenced by SlDeque(), SlRefList(), SlRefVector(), and SlVector().
|
inlinestatic |
Definition at line 1259 of file saveload.cpp.