|
Nui
|
Wrapper around items that associates them with an id. More...
#include <selectables_registry.hpp>
Public Member Functions | |
| template<typename... Args> | |
| ItemWithId (IdType id, Detail::InplaceTag, Args &&... args) | |
| ItemWithId (IdType id, T item) | |
| ItemWithId (IdType id, std::optional< T > item) | |
| ItemWithId (ItemWithId const &)=default | |
| ItemWithId (ItemWithId &&)=default | |
| ItemWithId & | operator= (ItemWithId const &)=default |
| ItemWithId & | operator= (ItemWithId &&)=default |
| ~ItemWithId ()=default | |
| bool | operator< (ItemWithId const &other) const |
| Compares the id of the item. | |
Public Attributes | |
| IdType | id |
| Id of the item. | |
| std::optional< T > | item |
| The item. | |
Wrapper around items that associates them with an id.
|
inline |
|
inline |
|
inline |
|
default |
|
default |
|
default |
|
inline |
Compares the id of the item.
|
default |
|
default |
| IdType Nui::SelectablesRegistry< T >::ItemWithId::id |
Id of the item.
| std::optional<T> Nui::SelectablesRegistry< T >::ItemWithId::item |
The item.
The item is stored in an optional to allow for efficient "removal" of items from the core container.