|
OpenTTD Source 20260206-master-g4d4e37dbf1
|
Class for pooled persistent storage of data. More...
#include <newgrf_storage.h>
Public Member Functions | |
| PersistentStorage (PersistentStorageID index, const uint32_t new_grfid, GrfSpecFeature feature, TileIndex tile) | |
| Public Member Functions inherited from PersistentStorageArray< int32_t, 256 > | |
| void | StoreValue (uint pos, int32_t value) |
| Stores some value at a given position. | |
| int32_t | GetValue (uint pos) const |
| Gets the value from a given position. | |
| void | ClearChanges () override |
| Discard temporary changes. | |
| Public Member Functions inherited from BasePersistentStorageArray | |
| virtual | ~BasePersistentStorageArray () |
| Remove references to use. | |
Additional Inherited Members | |
| Public Types inherited from PersistentStorageArray< int32_t, 256 > | |
| using | StorageType |
| Static Public Member Functions inherited from BasePersistentStorageArray | |
| static void | SwitchMode (PersistentStorageMode mode, bool ignore_prev_mode=false) |
| Clear temporary changes made since the last call to SwitchMode, and set whether subsequent changes shall be persistent or temporary. | |
| Data Fields inherited from PersistentStorageArray< int32_t, 256 > | |
| StorageType | storage |
| Memory for the storage array. | |
| std::unique_ptr< StorageType > | prev_storage |
| Temporary memory to store previous state so it can be reverted, e.g. for command tests. | |
| Data Fields inherited from BasePersistentStorageArray | |
| uint32_t | grfid = 0 |
| GRFID associated to this persistent storage. A value of zero means "default". | |
| GrfSpecFeature | feature = GSF_INVALID |
| NOSAVE: Used to identify in the owner of the array in debug output. | |
| TileIndex | tile = INVALID_TILE |
| NOSAVE: Used to identify in the owner of the array in debug output. | |
| Static Protected Member Functions inherited from BasePersistentStorageArray | |
| static bool | AreChangesPersistent () |
| Check whether currently changes to the storage shall be persistent or temporary till the next call to ClearChanges(). | |
Class for pooled persistent storage of data.
Definition at line 199 of file newgrf_storage.h.
|
inline |
Definition at line 200 of file newgrf_storage.h.