36 using size_type =
typename std::remove_reference_t<Atlas>::size_type;
49 auto size() const ->
size_t {
return this->_atlas.size(); }
55 auto begin()
const {
return std::begin(this->_atlas); }
61 auto end()
const {
return std::end(this->_atlas); }
69 template <
typename T>
auto operator[](
const T& key)
const ->
const auto& {
70 return this->_atlas.at(key);
79 template <
typename T>
auto at(
const T& key)
const ->
const auto& {
80 return this->_atlas.at(key);
89 template <
typename T>
auto operator[](
const T& key) ->
auto& {
90 return this->_atlas[
static_cast<size_type>(key)];
Read-only map of maps of maps (view into a dict-of-dict-of-dict structure)
Definition coreviews.hpp:109
AdjacencyView(Atlas &d)
Construct an AdjacencyView from an Atlas container.
Definition coreviews.hpp:115
Read-only mapping of mappings (view into a dict-of-dict data structure)
Definition coreviews.hpp:34
typename std::remove_reference_t< Atlas >::size_type size_type
Definition coreviews.hpp:36
auto at(const T &key) const -> const auto &
Access element at specified key (const version)
Definition coreviews.hpp:79
auto begin() const
Get iterator to the beginning of the view.
Definition coreviews.hpp:55
auto operator[](const T &key) const -> const auto &
Access element at specified key (const version)
Definition coreviews.hpp:69
auto size() const -> size_t
Get the number of elements in the view.
Definition coreviews.hpp:49
auto end() const
Get iterator to the end of the view.
Definition coreviews.hpp:61
auto operator[](const T &key) -> auto &
Access element at specified key (non-const version)
Definition coreviews.hpp:89
AtlasView(Atlas &d)
Construct an AtlasView from an Atlas container.
Definition coreviews.hpp:43
Atlas & _atlas
Definition coreviews.hpp:37