DeSiGNAR  0.5a
Data Structures General Library
Public Member Functions | List of all members
Designar::ArrayMap< Key, Value, Cmp, ArrayType > Class Template Reference

#include <map.H>

Inheritance diagram for Designar::ArrayMap< Key, Value, Cmp, ArrayType >:
Inheritance graph
[legend]
Collaboration diagram for Designar::ArrayMap< Key, Value, Cmp, ArrayType >:
Collaboration graph
[legend]

Public Member Functions

 ArrayMap (nat_t cap, Cmp &_cmp)
 
 ArrayMap (Cmp &&_cmp=Cmp())
 
 ArrayMap (nat_t cap, Cmp &&_cmp=Cmp())
 
 ArrayMap (const std::initializer_list< Item > &l)
 
 ArrayMap (const ArrayMap &map)
 
 ArrayMap (ArrayMap &&map)
 
ArrayMapoperator= (const ArrayMap &m)
 
ArrayMapoperator= (ArrayMap &&m)
 
- Public Member Functions inherited from Designar::GenMap< Key, Value, Cmp, ArraySet< MapKey< Key, Value >, CmpWrapper< Key, Value, Cmp >, ArrayType > >
Cmp & get_cmp ()
 
const Cmp & get_cmp () const
 
Value * insert (const Key &k, const Value &v)
 
Value * insert (Key &&k, const Value &v)
 
Value * insert (const Key &k, Value &&v)
 
Value * insert (Key &&k, Value &&v)
 
Value * append (const Key &k, const Value &v)
 
Value * append (Key &&k, const Value &v)
 
Value * append (const Key &k, Value &&v)
 
Value * append (Key &&k, Value &&v)
 
Value * search (const Key &k)
 
Value * search (Key &&k)
 
const Value * search (const Key &k) const
 
const Value * search (Key &&k) const
 
Value * search_or_insert (const Key &k, const Value &v)
 
Value * search_or_insert (Key &&k, const Value &v)
 
Value * search_or_insert (const Key &k, Value &&v)
 
Value * search_or_insert (Key &&k, Value &&v)
 
Value * search_or_insert (const Key &k)
 
Value * search_or_insert (Key &&k)
 
Value & find (const Key &k)
 
const Value & find (const Key &k) const
 
Value & find (Key &&k)
 
const Value & find (Key &&k) const
 
bool has (const Key &k) const
 
bool has (Key &&k) const
 
bool remove (const Key &k)
 
Value & operator[] (const Key &k)
 
const Value & operator[] (const Key &k) const
 
Value & operator[] (Key &&k)
 
const Value & operator[] (Key &&k) const
 

Additional Inherited Members

- Public Types inherited from Designar::GenMap< Key, Value, Cmp, ArraySet< MapKey< Key, Value >, CmpWrapper< Key, Value, Cmp >, ArrayType > >
using KeyType = Key
 
using ValueType = Value
 
using SizeType = nat_t
 
using CmpType = Cmp
 
- Public Types inherited from Designar::ArraySet< MapKey< Key, Value >, CmpWrapper< Key, Value, Cmp >, ArrayType >
using ContainerType = ArrayType< MapKey< Key, Value >, CmpWrapper< Key, Value, Cmp > >
 

Constructor & Destructor Documentation

template<typename Key , typename Value , class Cmp = std::less<Key>, template< typename, class > class ArrayType = UnsortedArraySet>
Designar::ArrayMap< Key, Value, Cmp, ArrayType >::ArrayMap ( nat_t  cap,
Cmp &  _cmp 
)
inline
template<typename Key , typename Value , class Cmp = std::less<Key>, template< typename, class > class ArrayType = UnsortedArraySet>
Designar::ArrayMap< Key, Value, Cmp, ArrayType >::ArrayMap ( Cmp &&  _cmp = Cmp())
inline
template<typename Key , typename Value , class Cmp = std::less<Key>, template< typename, class > class ArrayType = UnsortedArraySet>
Designar::ArrayMap< Key, Value, Cmp, ArrayType >::ArrayMap ( nat_t  cap,
Cmp &&  _cmp = Cmp() 
)
inline
template<typename Key , typename Value , class Cmp = std::less<Key>, template< typename, class > class ArrayType = UnsortedArraySet>
Designar::ArrayMap< Key, Value, Cmp, ArrayType >::ArrayMap ( const std::initializer_list< Item > &  l)
inline
template<typename Key , typename Value , class Cmp = std::less<Key>, template< typename, class > class ArrayType = UnsortedArraySet>
Designar::ArrayMap< Key, Value, Cmp, ArrayType >::ArrayMap ( const ArrayMap< Key, Value, Cmp, ArrayType > &  map)
inline
template<typename Key , typename Value , class Cmp = std::less<Key>, template< typename, class > class ArrayType = UnsortedArraySet>
Designar::ArrayMap< Key, Value, Cmp, ArrayType >::ArrayMap ( ArrayMap< Key, Value, Cmp, ArrayType > &&  map)
inline

Member Function Documentation

template<typename Key , typename Value , class Cmp = std::less<Key>, template< typename, class > class ArrayType = UnsortedArraySet>
ArrayMap& Designar::ArrayMap< Key, Value, Cmp, ArrayType >::operator= ( const ArrayMap< Key, Value, Cmp, ArrayType > &  m)
inline
template<typename Key , typename Value , class Cmp = std::less<Key>, template< typename, class > class ArrayType = UnsortedArraySet>
ArrayMap& Designar::ArrayMap< Key, Value, Cmp, ArrayType >::operator= ( ArrayMap< Key, Value, Cmp, ArrayType > &&  m)
inline

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