Kanzi 3.9.10
kanzi::ResourceManager::ResourceInfoSet Class Reference

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>

Classes

class  ResourceInfoEntry
 Entry in the resource set. More...
 

Public Types

using const_iterator
 Const iterator type.
 
using ResourceInfoContainer
 Container for the resource information.
 

Public Member Functions

void addEntry (const ResourceInfoEntry &entry)
 Adds an entry to the set.
 
void addResource (Resource &resource)
 Adds a resource to the set.
 
const_iterator begin () const
 Gets an iterator to the beginning of the set.
 
const_iterator cbegin () const
 Gets an iterator to the beginning of the set.
 
const_iterator cend () const
 Gets an iterator to the end of the set.
 
bool empty () const
 Indicates whether the resource set is empty.
 
const_iterator end () const
 Gets an iterator to the end of the set.
 
ResourceInfoSet getDisappearedEntriesCompared (const ResourceInfoSet &other) const
 Gets the set of entries that existed in this resource info set but not in a given other set.
 
ResourceInfoSet getNewEntriesCompared (const ResourceInfoSet &other) const
 Gets the set of entries that exist in a given resource info set but not in this set.
 
bool hasEntry (const ResourceInfoEntry &entry) const
 Indicates whether the set contains a given entry.
 
 ResourceInfoSet ()=default
 Default constructor.
 
size_t size () const
 Gets the number of resources in the set.
 

Detailed Description

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

Member Typedef Documentation

◆ ResourceInfoContainer

◆ const_iterator

Constructor & Destructor Documentation

◆ ResourceInfoSet()

kanzi::ResourceManager::ResourceInfoSet::ResourceInfoSet ( )
explicitdefault

Default constructor.

Member Function Documentation

◆ 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()

const_iterator kanzi::ResourceManager::ResourceInfoSet::end ( ) const
inline

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()

bool kanzi::ResourceManager::ResourceInfoSet::hasEntry ( const ResourceInfoEntry & entry) const
inline

Indicates whether the set contains a given entry.

Parameters
entryThe entry to find.
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
resourceThe resource to add.

◆ addEntry()

void kanzi::ResourceManager::ResourceInfoSet::addEntry ( const ResourceInfoEntry & entry)
inline

Adds an entry to the set.

Parameters
entryThe entry to add.

◆ getNewEntriesCompared()

ResourceInfoSet kanzi::ResourceManager::ResourceInfoSet::getNewEntriesCompared ( const ResourceInfoSet & other) const
inline

Gets the set of entries that exist in a given resource info set but not in this set.

Parameters
otherAnother resource info set.
Returns
The set that contains the entries that existed in the other set but not in this set.

◆ getDisappearedEntriesCompared()

ResourceInfoSet kanzi::ResourceManager::ResourceInfoSet::getDisappearedEntriesCompared ( const ResourceInfoSet & other) const
inline

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: