View for array structure for config.
More...
#include <ArrayView.hpp>
View for array structure for config.
This class provides a view into an array structure within ClioConfigDefinition. It allows accessing individual elements of the array as either values or objects, and is used within the ClioConfigDefinition to represent multiple potential values.
◆ ArrayView()
util::config::ArrayView::ArrayView |
( |
std::string_view | prefix, |
|
|
ClioConfigDefinition const & | configDef ) |
Constructs an ArrayView with the given prefix and config definition.
- Parameters
-
◆ begin()
template<typename T >
auto util::config::ArrayView::begin |
( |
| ) |
const |
|
inlinenodiscard |
Returns an iterator to the beginning of the Array.
- Returns
- Iterator to the beginning of the Array
◆ end()
template<typename T >
auto util::config::ArrayView::end |
( |
| ) |
const |
|
inlinenodiscard |
Returns an iterator to the end of the Array.
- Returns
- Iterator to the end of the Array
◆ objectAt()
ObjectView util::config::ArrayView::objectAt |
( |
std::size_t | idx | ) |
const |
|
nodiscard |
Returns an ObjectView at the specified index.
- Parameters
-
idx | Index of the object to retrieve. |
- Returns
- ObjectView at the specified index.
◆ size()
size_t util::config::ArrayView::size |
( |
| ) |
const |
|
nodiscard |
Returns the number of elements in the array.
- Returns
- Number of elements in the array.
◆ valueAt()
ValueView util::config::ArrayView::valueAt |
( |
std::size_t | idx | ) |
const |
|
nodiscard |
Returns a ValueView at the specified index.
- Parameters
-
idx | Index of the value to retrieve. |
- Returns
- ValueView at the specified index.
The documentation for this class was generated from the following files:
- /__w/clio/clio/src/util/newconfig/ArrayView.hpp
- /__w/clio/clio/src/util/newconfig/ArrayView.cpp