Clementine
|
Proxy object for sequence containers. More...
#include <entt.hpp>
Classes | |
class | meta_iterator |
Opaque iterator for meta sequence containers. More... | |
Public Types | |
using | size_type = std::size_t |
Unsigned integer type. | |
using | iterator = meta_iterator |
Meta iterator type. | |
Public Member Functions | |
meta_sequence_container () ENTT_NOEXCEPT=default | |
Default constructor. | |
template<typename Type > | |
meta_sequence_container (std::in_place_type_t< Type >, any instance) ENTT_NOEXCEPT | |
Construct a proxy object for sequence containers. 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 | resize (size_type) |
Resizes the wrapped container to contain a given number of elements. 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... | |
std::pair< iterator, bool > | insert (iterator, meta_any) |
Inserts an element at a specified location of the wrapped container. More... | |
std::pair< iterator, bool > | erase (iterator) |
Removes the specified element from the wrapped container. More... | |
meta_any | operator[] (size_type) |
Returns a reference to the element at a specified location of the wrapped container (no bounds checking is performed). More... | |
operator bool () const ENTT_NOEXCEPT | |
Returns false if a proxy is invalid, true otherwise. More... | |
Proxy object for sequence containers.
|
inline |
Construct a proxy object for sequence 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.
it | Meta iterator to the element to remove. |
|
inline |
Inserts an element at a specified location of the wrapped container.
it | Meta iterator before which the element will be inserted. |
value | Element value to insert. |
|
inlineexplicit |
Returns false if a proxy is invalid, true otherwise.
Returns a reference to the element at a specified location of the wrapped container (no bounds checking is performed).
pos | The position of the element to return. |
|
inline |
Resizes the wrapped container to contain a given number of elements.
sz | The new size of the container. |
|
inline |
Returns the size of the wrapped container.
|
inline |
Returns the value meta type of the wrapped container type.