|
|
using | key_type = typename InternalContainer::key_type |
| |
|
using | mapped_type = typename InternalContainer::mapped_type |
| |
|
using | value_type = typename InternalContainer::value_type |
| |
|
using | size_type = typename InternalContainer::size_type |
| |
|
using | difference_type = typename InternalContainer::difference_type |
| |
|
using | allocator_type = typename InternalContainer::allocator_type |
| |
|
using | reference = typename InternalContainer::reference |
| |
|
using | const_reference = typename InternalContainer::const_reference |
| |
|
using | pointer = typename InternalContainer::pointer |
| |
|
using | const_pointer = typename InternalContainer::const_pointer |
| |
|
using | iterator = typename InternalContainer::iterator |
| |
|
using | const_iterator = typename InternalContainer::const_iterator |
| |
|
using | reverse_iterator = typename InternalContainer::reverse_iterator |
| |
| using | const_reverse_iterator |
| |
|
|
iterator | begin () noexcept |
| |
|
const_iterator | begin () const noexcept |
| |
|
const_iterator | cbegin () const noexcept |
| |
|
iterator | end () noexcept |
| |
|
const_iterator | end () const noexcept |
| |
|
const_iterator | cend () const noexcept |
| |
|
reverse_iterator | rbegin () noexcept |
| |
|
const_reverse_iterator | rbegin () const noexcept |
| |
|
const_reverse_iterator | crbegin () const noexcept |
| |
|
reverse_iterator | rend () noexcept |
| |
|
const_reverse_iterator | rend () const noexcept |
| |
|
const_reverse_iterator | crend () const noexcept |
| |
|
bool | empty () const noexcept |
| |
|
size_type | size () const noexcept |
| |
| void | clear () |
| | Remove all objects from the container and (if written) from disk.
|
| |
|
std::pair< iterator, bool > | insert (value_type const &value) |
| |
|
std::pair< iterator, bool > | insert (value_type &&value) |
| |
|
iterator | insert (const_iterator hint, value_type const &value) |
| |
|
iterator | insert (const_iterator hint, value_type &&value) |
| |
|
template<class InputIt> |
| void | insert (InputIt first, InputIt last) |
| |
|
void | insert (std::initializer_list< value_type > ilist) |
| |
|
void | swap (Container &other) |
| |
|
mapped_type & | at (key_type const &key) |
| |
|
mapped_type const & | at (key_type const &key) const |
| |
| mapped_type & | operator[] (key_type const &key) |
| | Access the value that is mapped to a key equivalent to key, creating it if such key does not exist already.
|
| |
| mapped_type & | operator[] (key_type &&key) |
| | Access the value that is mapped to a key equivalent to key, creating it if such key does not exist already.
|
| |
|
iterator | find (key_type const &key) |
| |
|
const_iterator | find (key_type const &key) const |
| |
| size_type | count (key_type const &key) const |
| | This returns either 1 if the key is found in the container of 0 if not.
|
| |
| bool | contains (key_type const &key) const |
| | Checks if there is an element with a key equivalent to an exiting key in the container.
|
| |
| size_type | erase (key_type const &key) |
| | Remove a single element from the container and (if written) from disk.
|
| |
| iterator | erase (iterator res) |
| |
| template<class... Args> |
| auto | emplace (Args &&...args) -> decltype(InternalContainer().emplace(std::forward< Args >(args)...)) |
| |
|
| Container (Container const &other) |
| |
|
| Container (Container &&other) noexcept |
| |
|
Container & | operator= (Container const &other) |
| |
|
Container & | operator= (Container &&other) noexcept |
| |
|
| Attributable (NoInit) noexcept |
| |
| Attribute | getAttribute (std::string const &key) const |
| | Retrieve value of Attribute stored with provided key.
|
| |
| bool | deleteAttribute (std::string const &key) |
| | Remove Attribute of provided value both logically and physically.
|
| |
| std::vector< std::string > | attributes () const |
| | List all currently stored Attributes' keys.
|
| |
| size_t | numAttributes () const |
| | Count all currently stored Attributes.
|
| |
| bool | containsAttribute (std::string const &key) const |
| | Check whether am Attribute with a given key exists.
|
| |
| std::string | comment () const |
| | Retrieve a user-supplied comment associated with the object.
|
| |
| Attributable & | setComment (std::string const &comment) |
| | Populate Attribute corresponding to a comment with the user-supplied comment.
|
| |
| void | seriesFlush (std::string backendConfig="{}") |
| | Flush the corresponding Series object.
|
| |
| void | iterationFlush (std::string backendConfig="{}") |
| | Flush the containing Iteration.
|
| |
| MyPath | myPath () const |
| | The path to this object within its containing Series.
|
| |
|
void | touch () |
| | Sets the object dirty to make internal procedures think it has been modified.
|
| |
|
OpenpmdStandard | openPMDStandard () const |
| |
| template<typename T> |
| bool | setAttribute (std::string const &key, T value) |
| | Populate Attribute of provided name with provided value.
|
| |
|
bool | setAttribute (std::string const &key, char const value[]) |
| |
template<typename
T, typename T_key = std::string, typename T_container = std::map<T_key, T>>
class openPMD::Container< T, T_key, T_container >
Map-like container that enforces openPMD requirements and handles IO.
- See also
- http://en.cppreference.com/w/cpp/container/map
- Template Parameters
-
| T | Type of objects stored |
| T_key | Key type to look elements up by |
| T_container | Type of container used for internal storage (must supply the same type traits and interface as std::map) |