Implementations of the data pool. More...
Classes | |
class | ManagedPtr |
A ManagedPtr is a wrapper around a reference in the pool. More... | |
Public Member Functions | |
void | clearData () override |
Clears the pool. More... | |
bool | contains (int64 hashCode) const |
Checks if the hash code is used by the pool. More... | |
var | getAdditionalData (PoolReference r) const override |
Every pool item has a storage object for additional metadata (eg. More... | |
Array< PoolReference > | getListOfAllReferences (bool includeEmbeddedButUnloadedReferences) const |
Creates a list of all cached data. More... | |
int | getNumLoadedFiles () const override |
Returns the number of loaded files. More... | |
PoolReference | getReference (int index) const override |
Returns the PoolReference at the given index. More... | |
String | getStatistics () const |
Returns a statistic string with the size and memory usage of the pool. More... | |
ManagedPtr | loadFromReference (PoolReference r, PoolHelpers::LoadingType loadingType) |
Loads a reference with the given LoadingType. More... | |
Public Member Functions inherited from ControlledObject | |
ControlledObject (MainController *m) | |
Creates a new ControlledObject. More... | |
const MainController * | getMainController () const noexcept |
Provides read-only access to the main controller. More... | |
MainController * | getMainController () noexcept |
Provides write access to the main controller. More... | |
Implementations of the data pool.
|
inlineoverridevirtual |
Clears the pool.
Implements PoolBase.
|
inline |
Checks if the hash code is used by the pool.
Use this method with the hash code of a PoolReference.
|
inlineoverridevirtual |
Every pool item has a storage object for additional metadata (eg.
the sample rate for audio files).
Implements PoolBase.
|
inline |
Creates a list of all cached data.
|
inlineoverridevirtual |
Returns the number of loaded files.
Implements PoolBase.
|
inlineoverridevirtual |
Returns the PoolReference at the given index.
Implements PoolBase.
|
inline |
Returns a statistic string with the size and memory usage of the pool.
|
inline |
Loads a reference with the given LoadingType.
Use this whenever you need to access data, as it will check if the data was already cached.