Apache Mesos
Public Types | Public Member Functions | List of all members
LinkedHashMap< Key, Value > Class Template Reference

#include <linkedhashmap.hpp>

Public Types

typedef std::pair< Key, Value > entry
 
typedef std::list< entrylist
 
typedef hashmap< Key, typename list::iterator > map
 

Public Member Functions

 LinkedHashMap ()=default
 
 LinkedHashMap (const LinkedHashMap< Key, Value > &other)
 
LinkedHashMapoperator= (const LinkedHashMap< Key, Value > &other)
 
 LinkedHashMap (LinkedHashMap< Key, Value > &&)=delete
 
LinkedHashMapoperator= (LinkedHashMap &&)=delete
 
Value & operator[] (const Key &key)
 
Option< Value > get (const Key &key) const
 
Value & at (const Key &key)
 
const Value & at (const Key &key) const
 
bool contains (const Key &key) const
 
size_t erase (const Key &key)
 
std::vector< Key > keys () const
 
std::vector< Value > values () const
 
size_t size () const
 
bool empty () const
 
void clear ()
 
list::iterator begin ()
 
list::iterator end ()
 
list::const_iterator begin () const
 
list::const_iterator end () const
 

Member Typedef Documentation

template<typename Key, typename Value>
typedef std::pair<Key, Value> LinkedHashMap< Key, Value >::entry
template<typename Key, typename Value>
typedef std::list<entry> LinkedHashMap< Key, Value >::list
template<typename Key, typename Value>
typedef hashmap<Key, typename list::iterator> LinkedHashMap< Key, Value >::map

Constructor & Destructor Documentation

template<typename Key, typename Value>
LinkedHashMap< Key, Value >::LinkedHashMap ( )
default
template<typename Key, typename Value>
LinkedHashMap< Key, Value >::LinkedHashMap ( const LinkedHashMap< Key, Value > &  other)
inline
template<typename Key, typename Value>
LinkedHashMap< Key, Value >::LinkedHashMap ( LinkedHashMap< Key, Value > &&  )
delete

Member Function Documentation

template<typename Key, typename Value>
Value& LinkedHashMap< Key, Value >::at ( const Key &  key)
inline
template<typename Key, typename Value>
const Value& LinkedHashMap< Key, Value >::at ( const Key &  key) const
inline
template<typename Key, typename Value>
list::iterator LinkedHashMap< Key, Value >::begin ( )
inline
template<typename Key, typename Value>
list::const_iterator LinkedHashMap< Key, Value >::begin ( ) const
inline
template<typename Key, typename Value>
void LinkedHashMap< Key, Value >::clear ( )
inline
template<typename Key, typename Value>
bool LinkedHashMap< Key, Value >::contains ( const Key &  key) const
inline
template<typename Key, typename Value>
bool LinkedHashMap< Key, Value >::empty ( ) const
inline
template<typename Key, typename Value>
list::iterator LinkedHashMap< Key, Value >::end ( )
inline
template<typename Key, typename Value>
list::const_iterator LinkedHashMap< Key, Value >::end ( ) const
inline
template<typename Key, typename Value>
size_t LinkedHashMap< Key, Value >::erase ( const Key &  key)
inline
template<typename Key, typename Value>
Option<Value> LinkedHashMap< Key, Value >::get ( const Key &  key) const
inline
template<typename Key, typename Value>
std::vector<Key> LinkedHashMap< Key, Value >::keys ( ) const
inline
template<typename Key, typename Value>
LinkedHashMap& LinkedHashMap< Key, Value >::operator= ( const LinkedHashMap< Key, Value > &  other)
inline
template<typename Key, typename Value>
LinkedHashMap& LinkedHashMap< Key, Value >::operator= ( LinkedHashMap< Key, Value > &&  )
delete
template<typename Key, typename Value>
Value& LinkedHashMap< Key, Value >::operator[] ( const Key &  key)
inline
template<typename Key, typename Value>
size_t LinkedHashMap< Key, Value >::size ( ) const
inline
template<typename Key, typename Value>
std::vector<Value> LinkedHashMap< Key, Value >::values ( ) const
inline

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