My Project
Opm::OrderedMap< K, T > Class Template Reference

Public Types

using storage_type = typename std::vector< std::pair< K, T > >
 
using index_type = typename std::unordered_map< K, std::size_t >
 
using iter_type = typename storage_type::iterator
 
using const_iter_type = typename storage_type::const_iterator
 

Public Member Functions

 OrderedMap (const index_type &index, const storage_type &storage)
 
const index_type & getIndex () const
 
const storage_type & getStorage () const
 
std::size_t count (const K &key) const
 
T & operator[] (const K &key)
 
std::size_t erase (const K &key)
 
void insert (std::pair< K, T > key_value_pair)
 
T & get (const K &key)
 
T & iget (size_t index)
 
const T & get (const K &key) const
 
const T & iget (size_t index) const
 
const T & at (size_t index) const
 
const T & at (const K &key) const
 
T & at (size_t index)
 
T & at (const K &key)
 
size_t size () const
 
const_iter_type begin () const
 
const_iter_type end () const
 
iter_type begin ()
 
iter_type end ()
 
iter_type find (const K &key)
 
const_iter_type find (const K &key) const
 
bool operator== (const OrderedMap< K, T > &data) const
 
template<class Serializer >
void serializeOp (Serializer &serializer)
 

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