Clementine
|
Proxy object for associative containers. More...
#include <entt.hpp>
Classes | |
class | meta_iterator |
Opaque iterator for meta associative containers. More... | |
Public Types | |
using | size_type = std::size_t |
Unsigned integer type. | |
using | iterator = meta_iterator |
Meta iterator type. | |
Public Member Functions | |
meta_associative_container () ENTT_NOEXCEPT=default | |
Default constructor. | |
template<typename Type > | |
meta_associative_container (std::in_place_type_t< Type >, any instance) ENTT_NOEXCEPT | |
Construct a proxy object for associative containers. More... | |
bool | key_only () const ENTT_NOEXCEPT |
Returns true if the associative container is also key-only, false otherwise. More... | |
meta_type | key_type () const ENTT_NOEXCEPT |
Returns the key meta type of the wrapped container type. More... | |
meta_type | mapped_type () const ENTT_NOEXCEPT |
Returns the mapped meta type of the wrapped container type. More... | |
meta_type | value_type () const ENTT_NOEXCEPT |
Returns the value meta type of the wrapped container type. More... | |
size_type | size () const ENTT_NOEXCEPT |
Returns the size of the wrapped container. More... | |
bool | clear () |
Clears the content of the wrapped container. More... | |
iterator | begin () |
Returns a meta iterator to the first element of the wrapped container. More... | |
iterator | end () |
Returns a meta iterator that is past the last element of the wrapped container. More... | |
bool | insert (meta_any, meta_any) |
Inserts an element (a key/value pair) into the wrapped container. More... | |
bool | erase (meta_any) |
Removes the specified element from the wrapped container. More... | |
iterator | find (meta_any) |
Returns an iterator to the element with key equivalent to a given one, if any. More... | |
operator bool () const ENTT_NOEXCEPT | |
Returns false if a proxy is invalid, true otherwise. More... | |
Proxy object for associative containers.
|
inline |
Construct a proxy object for associative containers.
Type | Type of container to wrap. |
instance | The container to wrap. |
|
inline |
Returns a meta iterator to the first element of the wrapped container.
|
inline |
Clears the content of the wrapped container.
|
inline |
Returns a meta iterator that is past the last element of the wrapped container.
|
inline |
Removes the specified element from the wrapped container.
key | The key of the element to remove. |
|
inline |
Returns an iterator to the element with key equivalent to a given one, if any.
key | The key of the element to search. |
Inserts an element (a key/value pair) into the wrapped container.
key | The key of the element to insert. |
value | The value of the element to insert. |
|
inline |
Returns true if the associative container is also key-only, false otherwise.
|
inline |
Returns the key meta type of the wrapped container type.
|
inline |
Returns the mapped meta type of the wrapped container type.
|
inlineexplicit |
Returns false if a proxy is invalid, true otherwise.
|
inline |
Returns the size of the wrapped container.
|
inline |
Returns the value meta type of the wrapped container type.