Kanzi 3.9.10
kanzi::ResourceManager::ResourceInfoSet::ResourceInfoEntry Class Reference

Entry in the resource set. More...

#include <kanzi/core.ui/resource/resource_manager.hpp>

Public Member Functions

ResourceSharedPtr getResource () const
 Gets the referred resource.
 
const string & getUrl () const
 Gets the URL of the resource.
 
bool operator< (const ResourceInfoEntry &rhs) const
 Less than -operator.
 
ResourceInfoEntryoperator= (const ResourceInfoEntry &)=default
 Default copy operator.
 
ResourceInfoEntryoperator= (ResourceInfoEntry &&)=default
 Default move operator.
 
 ResourceInfoEntry ()=default
 Default constructor.
 
 ResourceInfoEntry (const ResourceInfoEntry &)=default
 Default copy constructor.
 
 ResourceInfoEntry (ResourceInfoEntry &&)=default
 Default move constructor.
 
 ResourceInfoEntry (string_view url, Resource &resource)
 Constructor.
 

Detailed Description

Entry in the resource set.

Constructor & Destructor Documentation

◆ ResourceInfoEntry() [1/4]

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

Default constructor.

◆ ResourceInfoEntry() [2/4]

kanzi::ResourceManager::ResourceInfoSet::ResourceInfoEntry::ResourceInfoEntry ( string_view url,
Resource & resource )
inlineexplicit

Constructor.

◆ ResourceInfoEntry() [3/4]

kanzi::ResourceManager::ResourceInfoSet::ResourceInfoEntry::ResourceInfoEntry ( const ResourceInfoEntry & )
default

Default copy constructor.

◆ ResourceInfoEntry() [4/4]

kanzi::ResourceManager::ResourceInfoSet::ResourceInfoEntry::ResourceInfoEntry ( ResourceInfoEntry && )
default

Default move constructor.

Member Function Documentation

◆ getUrl()

const string & kanzi::ResourceManager::ResourceInfoSet::ResourceInfoEntry::getUrl ( ) const
inline

Gets the URL of the resource.

Returns
Resource URL.

◆ getResource()

ResourceSharedPtr kanzi::ResourceManager::ResourceInfoSet::ResourceInfoEntry::getResource ( ) const
inline

Gets the referred resource.

Returns
Shared resource. If the resource was erased from ResourceManager, returns a nullptr.

◆ operator<()

bool kanzi::ResourceManager::ResourceInfoSet::ResourceInfoEntry::operator< ( const ResourceInfoEntry & rhs) const
inline

Less than -operator.

Parameters
rhsRight-hand side operand.
Returns
If this is less than right-hand side operand, true, otherwise false.

◆ operator=() [1/2]

ResourceInfoEntry & kanzi::ResourceManager::ResourceInfoSet::ResourceInfoEntry::operator= ( const ResourceInfoEntry & )
default

Default copy operator.

◆ operator=() [2/2]

ResourceInfoEntry & kanzi::ResourceManager::ResourceInfoSet::ResourceInfoEntry::operator= ( ResourceInfoEntry && )
default

Default move operator.


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