Honeycomb
0.1
Component-Model Framework
|
Common functions between map elem and the map tail specialization. Use through class MtMapElem. More...
#include <MtMap.h>
Classes | |
struct | empty_ |
Check if empty at compile-time. More... | |
struct | hasKey_ |
Check if key exists at compile-time. More... | |
struct | size_ |
Get size of map at compile-time. More... | |
Public Types | |
typedef Key_ | Key |
Key type. More... | |
typedef Val_ | Val |
Value type. More... | |
typedef List_ | List |
Rest of map. More... | |
template<class Key > | |
using | getResult = typename findElem< Key >::type::Val |
Result type of get() More... | |
typedef MtMapIter< Subclass > | beginResult |
Result type of begin() More... | |
typedef MtMapIter< const Subclass > | beginResult_const |
typedef MtMapIter< Subclass, MtMapTail > | endResult |
Result type of end() More... | |
typedef MtMapIter< const Subclass, MtMapTail > | endResult_const |
template<class Key > | |
using | iterResult = MtMapIter< Subclass, typename findElem< Key >::type > |
Result type of iter() More... | |
template<class Key > | |
using | iterResult_const = MtMapIter< const Subclass, typename findElem< Key >::type > |
template<class... Pairs> | |
using | insertResult = typename insertResult_< Pairs... >::type |
Result type of insert(). New pairs are inserted at the front. More... | |
template<class... Keys> | |
using | eraseResult = typename eraseResult_< isTail, Keys... >::type |
Result type of erase(). Reconstructs type without matching keys. More... | |
typedef clearResult_::type | clearResult |
Result type of clear() More... | |
Public Member Functions | |
template<class Key > | |
bool | hasKey (Key) const |
Check if has key. More... | |
beginResult | begin () |
Get beginning of an iterator over keys and values of this map. More... | |
beginResult_const | begin () const |
endResult | end () |
Get end of an iterator over keys and values of this map. More... | |
endResult_const | end () const |
template<class Key > | |
iterResult< Key > | iter (Key) |
Get iterator to element by key. More... | |
template<class Key > | |
iterResult_const< Key > | iter (Key) const |
template<class... Pairs> | |
insertResult_seq< honey::priv::PairSeqGen< Pairs... >, Pairs... >::type | insert (Pairs &&...pairs) const |
Insert pairs of the form (key() = value) into the map. More... | |
template<class... Keys> | |
eraseResult< Keys... > | erase (Keys...) const |
Erase keys from the map. More... | |
clearResult | clear () |
Clear map of all keys. More... | |
szt | size () const |
Get size of map. More... | |
bool | empty () const |
Check if empty. More... | |
Friends | |
template<class , class , class , class > | |
class | MtMapCommon |
template<class , class > | |
class | MtMapIter |
ostream & | operator<< (ostream &os, const Subclass &map) |
Common functions between map elem and the map tail specialization. Use through class MtMapElem.
typedef MtMapIter<Subclass> honey::MtMapCommon< Subclass, Key_, Val_, List_ >::beginResult |
Result type of begin()
typedef MtMapIter<const Subclass> honey::MtMapCommon< Subclass, Key_, Val_, List_ >::beginResult_const |
typedef clearResult_ ::type honey::MtMapCommon< Subclass, Key_, Val_, List_ >::clearResult |
Result type of clear()
typedef MtMapIter<Subclass, MtMapTail> honey::MtMapCommon< Subclass, Key_, Val_, List_ >::endResult |
Result type of end()
typedef MtMapIter<const Subclass, MtMapTail> honey::MtMapCommon< Subclass, Key_, Val_, List_ >::endResult_const |
using honey::MtMapCommon< Subclass, Key_, Val_, List_ >::eraseResult = typename eraseResult_<isTail, Keys...>::type |
Result type of erase(). Reconstructs type without matching keys.
using honey::MtMapCommon< Subclass, Key_, Val_, List_ >::getResult = typename findElem<Key>::type::Val |
Result type of get()
using honey::MtMapCommon< Subclass, Key_, Val_, List_ >::insertResult = typename insertResult_<Pairs...>::type |
Result type of insert(). New pairs are inserted at the front.
using honey::MtMapCommon< Subclass, Key_, Val_, List_ >::iterResult = MtMapIter<Subclass, typename findElem<Key>::type> |
Result type of iter()
using honey::MtMapCommon< Subclass, Key_, Val_, List_ >::iterResult_const = MtMapIter<const Subclass, typename findElem<Key>::type> |
typedef Key_ honey::MtMapCommon< Subclass, Key_, Val_, List_ >::Key |
Key type.
typedef List_ honey::MtMapCommon< Subclass, Key_, Val_, List_ >::List |
Rest of map.
typedef Val_ honey::MtMapCommon< Subclass, Key_, Val_, List_ >::Val |
Value type.
|
inline |
Get beginning of an iterator over keys and values of this map.
|
inline |
|
inline |
Clear map of all keys.
|
inline |
Check if empty.
|
inline |
Get end of an iterator over keys and values of this map.
|
inline |
|
inline |
Erase keys from the map.
|
inline |
Check if has key.
|
inline |
Insert pairs of the form (key() = value)
into the map.
|
inline |
Get iterator to element by key.
|
inline |
|
inline |
Get size of map.
|
friend |
|
friend |
|
friend |