#include <newgrf_storage.h>
Public Member Functions | |
virtual | ~BaseStorageArray () |
The needed destructor. | |
virtual void | ClearChanges (bool keep_changes)=0 |
Clear the changes made since the last ClearChanges. | |
virtual void | Store (uint pos, uint32 value)=0 |
Stores some value at a given position. |
Nothing fancy, only here so we have a generalised class to use.
Definition at line 14 of file newgrf_storage.h.
virtual void BaseStorageArray::ClearChanges | ( | bool | keep_changes | ) | [pure virtual] |
Clear the changes made since the last ClearChanges.
This can be done in two ways:
keep_changes | do we save or revert the changes since the last ClearChanges? |
Implemented in PersistentStorageArray< TYPE, SIZE >, TemporaryStorageArray< TYPE, SIZE >, and PersistentStorageArray< unsigned int, 16 >.
virtual void BaseStorageArray::Store | ( | uint | pos, | |
uint32 | value | |||
) | [pure virtual] |
Stores some value at a given position.
pos | the position to write at | |
value | the value to write |
Implemented in PersistentStorageArray< TYPE, SIZE >, TemporaryStorageArray< TYPE, SIZE >, and PersistentStorageArray< unsigned int, 16 >.