Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::ResourceManager Class Reference
+ Inheritance diagram for inviwo::ResourceManager:

Public Types

using Keys = std::tuple<resource::RAM, resource::GL, resource::PY>
 
using Data
 
using Var
 

Public Member Functions

template<typename Key >
void add (const Key &key, Resource resource)
 
template<typename Key >
void meta (const Key &key, const ResourceMeta &meta)
 
template<typename Key >
std::optional< Resourceremove (const Key &key)
 
size_t totalSize () const
 
size_t size (size_t groupIndex) const
 
size_t totalByteSize (size_t groupIndex) const
 
const Resourceget (size_t groupIndex, size_t index) const
 
void clear ()
 
- Public Member Functions inherited from inviwo::Observable< ResourceManagerObserver >
 Observable (const Observable< ResourceManagerObserver > &other)
 
 Observable (Observable< ResourceManagerObserver > &&other) noexcept
 
Observable< ResourceManagerObserver > & operator= (const Observable< ResourceManagerObserver > &other)
 
Observable< ResourceManagerObserver > & operator= (Observable< ResourceManagerObserver > &&other) noexcept
 
void addObserver (ResourceManagerObserver *observer)
 
void removeObserver (ResourceManagerObserver *observer)
 
virtual void startBlockingNotifications () override final
 
virtual void stopBlockingNotifications () override final
 
- Public Member Functions inherited from inviwo::ObservableInterface

Static Public Attributes

static constexpr std::array< std::string_view, 3 > names = {"RAM", "GL", "PY"}
 

Additional Inherited Members

- Protected Member Functions inherited from inviwo::ResourceManagerObservable
void notifyWillAddResource (size_t group, size_t index, const Resource &resource)
 
void notifyDidAddResource (size_t group, size_t index, const Resource &resource)
 
void notifyWillUpdateResource (size_t group, size_t index, const Resource &resource)
 
void notifyDidUpdateResource (size_t group, size_t index, const Resource &resource)
 
void notifyWillRemoveResource (size_t group, size_t index, const Resource &resource)
 
void notifyDidRemoveResource (size_t group, size_t index, const Resource &resource)
 
- Protected Member Functions inherited from inviwo::Observable< ResourceManagerObserver >
void forEachObserver (C callback)
 
- Protected Member Functions inherited from inviwo::ObservableInterface
void addObservationHelper (Observer *observer)
 
void removeObservationHelper (Observer *observer)
 

Member Typedef Documentation

◆ Data

using inviwo::ResourceManager::Data
Initial value:
std::tuple<std::vector<std::pair<resource::RAM, Resource>>,
std::vector<std::pair<resource::GL, Resource>>,
std::vector<std::pair<resource::PY, Resource>>>

◆ Var

using inviwo::ResourceManager::Var
Initial value:
std::variant<std::monostate, const std::vector<std::pair<resource::RAM, Resource>>*,
const std::vector<std::pair<resource::GL, Resource>>*,
const std::vector<std::pair<resource::PY, Resource>>*>

The documentation for this class was generated from the following file: