![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
Public Types | |
| using | Data |
| using | Keys = std::tuple<resource::RAM, resource::GL, resource::PY> |
| using | Var |
Public Member Functions | |
| template<typename Key> | |
| void | add (const Key &key, Resource resource) |
| void | clear () |
| const Resource * | get (size_t groupIndex, size_t index) const |
| template<typename Key> | |
| void | meta (const Key &key, const ResourceMeta &meta) |
| template<typename Key> | |
| void | move (const Key &oldKey, const Key &newKey, Resource resource) |
| template<typename Key> | |
| std::optional< Resource > | remove (const Key &key) |
| size_t | size (size_t groupIndex) const |
| size_t | totalByteSize (size_t groupIndex) const |
| size_t | totalSize () const |
| Public Member Functions inherited from inviwo::Observable< ResourceManagerObserver > | |
| void | addObserver (ResourceManagerObserver *observer) |
| bool | isObservedBy (ResourceManagerObserver *observer) const |
| Observable< ResourceManagerObserver > & | operator= (const Observable< ResourceManagerObserver > &other) |
| void | removeObserver (ResourceManagerObserver *observer) |
| virtual void | startBlockingNotifications () override final |
| virtual void | stopBlockingNotifications () override final |
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 | notifyDidAddResource (size_t group, size_t index, const Resource &resource) |
| void | notifyDidRemoveResource (size_t group, size_t index, const Resource &resource) |
| void | notifyDidUpdateResource (size_t group, size_t index, const Resource &resource) |
| void | notifyWillAddResource (size_t group, size_t index, const Resource &resource) |
| void | notifyWillRemoveResource (size_t group, size_t index, const Resource &resource) |
| void | notifyWillUpdateResource (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) |
| virtual void | addObserver (Observer *observer)=0 |
| void | removeObservationHelper (Observer *observer) |
| virtual void | removeObserver (Observer *observer)=0 |
| using inviwo::ResourceManager::Data |
| using inviwo::ResourceManager::Var |