variant_sequential_view.h
Go to the documentation of this file.
The argument class is used for forwarding arguments to properties or methods.
Definition argument.h:52
The instance class is used for forwarding the instance of an object to invoke a property or method.
Definition instance.h:48
The variant_sequential_view::const_iterator allows iteration over an sequential container in a varian...
Definition variant_sequential_view.h:311
const_iterator & operator-=(int i)
Returns an iterator to the item at i positions backward from this iterator.
const_iterator self_type
Definition variant_sequential_view.h:313
const_iterator operator-(int i) const
Returns an iterator to the item at i positions backward from this iterator.
const_iterator & operator+=(int i)
Advances the iterator by i items.
const_iterator operator--(int)
Post-decrement operator makes the preceding item current and returns an iterator to the previously cu...
const_iterator & operator++()
Pre-increment operator advances the iterator to the next item in the container and returns an iterato...
const variant get_data() const
Returns the current value, stored inside a std::reference_wrapper<T> and copied to a variant.
const variant operator*() const
Returns the underlying value in a variant stored in a std::reference_wrapper<T>.
const_iterator(const const_iterator &other)
Creates a copy of other.
~const_iterator()
Destroys the variant_sequential_view::const_iterator.
const_iterator & operator=(const_iterator other)
Assigns other to this.
const_iterator operator+(int i) const
Returns an iterator to the item at i positions forward from this iterator.
bool operator==(const const_iterator &other) const
Returns true if other points to the same item as this iterator; otherwise returns false.
friend class variant_sequential_view
Definition variant_sequential_view.h:420
variant value_type
Definition variant_sequential_view.h:314
const_iterator & operator--()
Pre-decrement operator makes the preceding item current and returns an iterator to the new current it...
const_iterator operator++(int)
Post-increment operator advances the iterator to the next item in the container and returns an iterat...
bool operator!=(const const_iterator &other) const
Returns true if other points to a different item than this iterator; otherwise returns false.
type get_type() const noexcept
Returns the type object of this sequential container.
type get_rank_type(std::size_t index) const noexcept
Gets the type of the given rank index.
std::size_t get_size() const noexcept
Returns the number of elements in the sequential container.
bool is_dynamic() const noexcept
Returns true if this sequential view is dynamic, otherwise false.
bool set_value(std::size_t index, argument arg)
Set the content of the the argument arg at the specified index index into the underlying sequential c...
type get_value_type() const noexcept
Returns the type object from the value of this sequential container.
~variant_sequential_view() noexcept
Destroys the variant_sequential_view.
const_iterator insert(const const_iterator &pos, argument value)
Insert a value into the container.
const_iterator erase(const const_iterator &pos)
Removes the element (if one exists) at the position pos.
bool is_empty() const noexcept
Checks if the container has no elements.
variant_sequential_view()
Constructs an invalid variant_sequential_view object.
const_iterator end() const
Returns an iterator to the element following the last element of the container.
variant_sequential_view(const variant_sequential_view &other)
Constructs a copy of the given variant_sequential_view other.
std::size_t get_rank() const noexcept
Gets the rank (number of dimensions) of this sequential container.
void swap(variant_sequential_view &other) noexcept
Swaps this variant_sequential_view with the other variant_sequential_view.
const_iterator begin() const
Returns an iterator to the first element of the container.
bool set_size(std::size_t size) const noexcept
Sets the size of the sequential container.
friend class argument
Definition variant_sequential_view.h:427
variant get_value(std::size_t index) const
Returns the current value at index index.
bool is_valid() const noexcept
Returns true if this variant_sequential_view is valid, that means the object is holding some data.
Definition access_levels.h:34
detail::enum_data< Enum_Type > value(string_view, Enum_Type value)
The value function should be used to add a mapping from enum name to value during the registration pr...
Generated on Thu May 22 2025 04:18:08 for rttr - 0.9.6 by doxygen.