Use a resource information set to get visibility of the resources that are added to or removed from the ResourceManager.
More...
#include <kanzi/core.ui/resource/resource_manager.hpp>
Use a resource information set to get visibility of the resources that are added to or removed from the ResourceManager.
To get a resource information set, use ResourceManager::getResourceInfoSet().
- Since
- Kanzi 3.9.10
◆ ResourceInfoContainer
Container for the resource information.
◆ const_iterator
◆ ResourceInfoSet()
kanzi::ResourceManager::ResourceInfoSet::ResourceInfoSet |
( |
| ) |
|
|
explicitdefault |
◆ begin()
const_iterator kanzi::ResourceManager::ResourceInfoSet::begin |
( |
| ) |
const |
|
inline |
Gets an iterator to the beginning of the set.
- Returns
- Iterator to the beginning.
◆ cbegin()
const_iterator kanzi::ResourceManager::ResourceInfoSet::cbegin |
( |
| ) |
const |
|
inline |
Gets an iterator to the beginning of the set.
- Returns
- Iterator to the beginning.
◆ end()
Gets an iterator to the end of the set.
- Returns
- Iterator to the end.
◆ cend()
const_iterator kanzi::ResourceManager::ResourceInfoSet::cend |
( |
| ) |
const |
|
inline |
Gets an iterator to the end of the set.
- Returns
- Iterator to the end.
◆ size()
size_t kanzi::ResourceManager::ResourceInfoSet::size |
( |
| ) |
const |
|
inline |
Gets the number of resources in the set.
- Returns
- Number of resources in the set.
◆ empty()
bool kanzi::ResourceManager::ResourceInfoSet::empty |
( |
| ) |
const |
|
inline |
Indicates whether the resource set is empty.
- Returns
- If there are no resources in the set, true, otherwise false.
◆ hasEntry()
Indicates whether the set contains a given entry.
- Parameters
-
- Returns
- If the entry exists in the set, true, otherwise false.
◆ addResource()
void kanzi::ResourceManager::ResourceInfoSet::addResource |
( |
Resource & | resource | ) |
|
|
inline |
Adds a resource to the set.
- Parameters
-
resource | The resource to add. |
◆ addEntry()
Adds an entry to the set.
- Parameters
-
◆ getNewEntriesCompared()
Gets the set of entries that exist in a given resource info set but not in this set.
- Parameters
-
other | Another resource info set. |
- Returns
- The set that contains the entries that existed in the
other
set but not in this set.
◆ getDisappearedEntriesCompared()
Gets the set of entries that existed in this resource info set but not in a given other
set.
Note that disappeared entries are likely to be removed, so the resource shared ptr for the entry would be
- Returns
- The set that contains the entries that existed in this set but not in the
other
set.
The documentation for this class was generated from the following file: