uatools 1.0.0
 
Loading...
Searching...
No Matches
eso::comm::PropertyMap Class Reference

#include <icomm_adapter_generic_v1.hpp>

Public Types

using value_type = std::pair<std::string, std::string>
 
using storage = std::vector<value_type>
 
using iterator = storage::iterator
 
using const_iterator = storage::const_iterator
 

Public Member Functions

 PropertyMap ()=default
 
 PropertyMap (std::initializer_list< value_type > init)
 
void set (std::string key, std::string val)
 
const std::string * get (std::string_view key) const
 
std::string get_or (std::string_view key, std::string_view fallback) const
 
bool contains (std::string_view key) const
 
bool erase (std::string_view key)
 
bool empty () const
 
std::size_t size () const
 
void reserve (std::size_t n)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 

Member Typedef Documentation

◆ const_iterator

using eso::comm::PropertyMap::const_iterator = storage::const_iterator

◆ iterator

using eso::comm::PropertyMap::iterator = storage::iterator

◆ storage

◆ value_type

using eso::comm::PropertyMap::value_type = std::pair<std::string, std::string>

Constructor & Destructor Documentation

◆ PropertyMap() [1/2]

eso::comm::PropertyMap::PropertyMap ( )
default

◆ PropertyMap() [2/2]

eso::comm::PropertyMap::PropertyMap ( std::initializer_list< value_type > init)
inline

Member Function Documentation

◆ begin() [1/2]

iterator eso::comm::PropertyMap::begin ( )
inline

◆ begin() [2/2]

const_iterator eso::comm::PropertyMap::begin ( ) const
inline

◆ contains()

bool eso::comm::PropertyMap::contains ( std::string_view key) const
inline

◆ empty()

bool eso::comm::PropertyMap::empty ( ) const
inline

◆ end() [1/2]

iterator eso::comm::PropertyMap::end ( )
inline

◆ end() [2/2]

const_iterator eso::comm::PropertyMap::end ( ) const
inline

◆ erase()

bool eso::comm::PropertyMap::erase ( std::string_view key)
inline

◆ get()

const std::string * eso::comm::PropertyMap::get ( std::string_view key) const
inline

◆ get_or()

std::string eso::comm::PropertyMap::get_or ( std::string_view key,
std::string_view fallback ) const
inline

◆ reserve()

void eso::comm::PropertyMap::reserve ( std::size_t n)
inline

◆ set()

void eso::comm::PropertyMap::set ( std::string key,
std::string val )
inline

◆ size()

std::size_t eso::comm::PropertyMap::size ( ) const
inline

The documentation for this class was generated from the following file: