All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Modules Pages
Classes | Public Types | List of all members
PoolHelpers Struct Reference

Helper functions for the file pools. More...

Classes

struct  Reference
 A lightweight object that encapsulates all different sources for a pool with a hash code and a relative path system. More...
 

Public Types

enum  LoadingType {
  LoadAndCacheWeak = 0, LoadAndCacheStrong, ForceReloadWeak, ForceReloadStrong,
  SkipPoolSearchWeak, SkipPoolSearchStrong, DontCreateNewEntry
}
 If you load a file into the pool you can specify the caching behaviour with one of these. More...
 

Detailed Description

Helper functions for the file pools.

Member Enumeration Documentation

If you load a file into the pool you can specify the caching behaviour with one of these.

Enumerator
LoadAndCacheWeak 

Loads the file, but does not increase the reference count. This results in the file being unloaded if the reference to it gets destroyed. If the file is already loaded, it just returns the reference.

LoadAndCacheStrong 

Loads the file and increases the reference count to extend the lifetime of the cached data until the pool is destroyed or manually cleaned.

ForceReloadWeak 

This will bypass the search in the pool and reloads the file no matter if it was loaded before.

ForceReloadStrong 

reloads the file and increases it's reference count.

SkipPoolSearchWeak 

skips the check if the file is already pooled.

SkipPoolSearchStrong 

skips the search in the pool and increases the reference count

DontCreateNewEntry 

this assumes the file is already in the pool and throws an assertion if it's not.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.