|
libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
|
Represents a COS dictionary. More...
#include <art/paperback/carousel/dictionary.hxx>

Public Types | |
| using | iterator = typename map<Name, Object>::iterator |
| Iterator type. | |
| using | const_iterator = typename map<Name, Object>::const_iterator |
| Immutable iterator type. | |
Public Member Functions | |
| Dictionary () | |
| Constructor. | |
| Dictionary (map< Name, Object >) | |
| Constructor. | |
| Dictionary (Dictionary const &) | |
| Constructor. | |
| Dictionary (Dictionary &&) | |
| Constructor. | |
| ~Dictionary () noexcept | |
| Destructor. | |
| size_t | size () const |
| Get the size of the dictionary. | |
| bool | empty () const |
| Check if the dictionary is empty. /. | |
| bool | contains (Name const &) |
| Check if the dictionary contains a key. | |
| Object & | at (Name const &) |
| Access entry. | |
| Object const & | at (Name const &) const |
| Access entry. | |
| iterator | begin () |
| Get begin iterator. | |
| const_iterator | begin () const |
| Get begin iterator. | |
| const_iterator | cbegin () const |
| Get begin iterator. | |
| iterator | end () |
| Get past-the-end iterator. | |
| const_iterator | end () const |
| Get past-the-end iterator. | |
| const_iterator | cend () const |
| Get past-the-end iterator. | |
| void | insert (Name const &, Object) |
| Insert entry into dictionary. | |
| void | erase (Name const &) |
| Remove entry from dictionary. | |
| Dictionary & | operator= (Dictionary const &) |
| Assignment. | |
| Dictionary & | operator= (Dictionary &&) |
| Assignment. | |
| bool | operator== (Dictionary const &) const |
| Comparison. | |
| bool | operator!= (Dictionary const &) const |
| Comparison. | |
| void | attach (Owner &) |
| Attach value to owner. | |
| Owner * | owner () |
| Access owner, if any. | |
| Owner const * | owner () const |
| Access owner, if any. | |
Protected Member Functions | |
| void | attach_children (Object_model::Owner &) override |
| Attach any children. | |
Private Attributes | |
| map< Name, Object > | _data |
| Owner * | _owner {} |
Represents a COS dictionary.
| using Art::Paperback::Carousel::Dictionary::iterator = typename map<Name, Object>::iterator |
Iterator type.
| using Art::Paperback::Carousel::Dictionary::const_iterator = typename map<Name, Object>::const_iterator |
Immutable iterator type.
| Art::Paperback::Carousel::Dictionary::Dictionary | ( | ) |
Constructor.
| Art::Paperback::Carousel::Dictionary::Dictionary | ( | Dictionary const & | other | ) |
Constructor.
| Art::Paperback::Carousel::Dictionary::Dictionary | ( | Dictionary && | other | ) |
Constructor.
|
noexcept |
Destructor.
| size_t Art::Paperback::Carousel::Dictionary::size | ( | ) | const |
Get the size of the dictionary.
| bool Art::Paperback::Carousel::Dictionary::empty | ( | ) | const |
Check if the dictionary is empty. /.
| bool Art::Paperback::Carousel::Dictionary::contains | ( | Name const & | key | ) |
Check if the dictionary contains a key.
| Dictionary::iterator Art::Paperback::Carousel::Dictionary::begin | ( | ) |
Get begin iterator.
| Dictionary::const_iterator Art::Paperback::Carousel::Dictionary::begin | ( | ) | const |
Get begin iterator.
| Dictionary::const_iterator Art::Paperback::Carousel::Dictionary::cbegin | ( | ) | const |
Get begin iterator.
| Dictionary::iterator Art::Paperback::Carousel::Dictionary::end | ( | ) |
Get past-the-end iterator.
| Dictionary::const_iterator Art::Paperback::Carousel::Dictionary::end | ( | ) | const |
Get past-the-end iterator.
| Dictionary::const_iterator Art::Paperback::Carousel::Dictionary::cend | ( | ) | const |
Get past-the-end iterator.
Insert entry into dictionary.
| void Art::Paperback::Carousel::Dictionary::erase | ( | Name const & | key | ) |
Remove entry from dictionary.
| Dictionary & Art::Paperback::Carousel::Dictionary::operator= | ( | Dictionary const & | other | ) |
Assignment.
| Dictionary & Art::Paperback::Carousel::Dictionary::operator= | ( | Dictionary && | other | ) |
Assignment.
| bool Art::Paperback::Carousel::Dictionary::operator== | ( | Dictionary const & | other | ) | const |
Comparison.
| bool Art::Paperback::Carousel::Dictionary::operator!= | ( | Dictionary const & | other | ) | const |
Comparison.
|
overrideprotectedvirtual |
Attach any children.
| owner | The owner of the children. |
Reimplemented from Art::Paperback::Carousel::Object_model::Value_base.
|
inherited |
Attach value to owner.
| owner | Reference to the owner. |
|
inherited |
Access owner, if any.
|
inherited |
Access owner, if any.