1#ifndef art__paperback__carousel__dictionary_hxx_
2#define art__paperback__carousel__dictionary_hxx_
4#include <art/paperback/types.hxx>
5#include <art/paperback/forward.hxx>
7#include <art/paperback/carousel/name.hxx>
8#include <art/paperback/carousel/object-model.hxx>
21 using iterator =
typename map<Name, Object>::iterator;
size_t size() const
Get the size of the dictionary.
Definition dictionary.cxx:34
Dictionary()
Constructor.
Definition dictionary.cxx:10
iterator end()
Get past-the-end iterator.
Definition dictionary.cxx:90
typename map< Name, Object >::const_iterator const_iterator
Immutable iterator type.
Definition dictionary.hxx:25
void insert(Name const &, Object)
Insert entry into dictionary.
Definition dictionary.cxx:111
~Dictionary() noexcept
Destructor.
Definition dictionary.cxx:29
bool contains(Name const &)
Check if the dictionary contains a key.
Definition dictionary.cxx:48
const_iterator cbegin() const
Get begin iterator.
Definition dictionary.cxx:83
iterator begin()
Get begin iterator.
Definition dictionary.cxx:69
const_iterator cend() const
Get past-the-end iterator.
Definition dictionary.cxx:104
Object & at(Name const &)
Access entry.
Definition dictionary.cxx:55
typename map< Name, Object >::iterator iterator
Iterator type.
Definition dictionary.hxx:21
void erase(Name const &)
Remove entry from dictionary.
Definition dictionary.cxx:128
bool empty() const
Check if the dictionary is empty. /.
Definition dictionary.cxx:41
void attach_children(Object_model::Owner &) override
Attach any children.
Definition dictionary.cxx:176
Represents a COS name.
Definition name.hxx:16
Base class for value types.
Definition object-model.hxx:295
Represents a COS-file object.
Definition object.hxx:16
COS object model namespace.
Definition object-model.cxx:8
COS file format implementation namespace.
Definition array.cxx:6