ArrayMapHelper< K, V, true, COMPARE, ARRAY > Class Template Reference

#include <arraymap.h>

Public Types

using Entry = Pair< K, V >
 
using Array = typename ARRAY::template Type< Entry >
 
using IsSorted = std::true_type
 
using Sort = SimpleSort< ArrayMapHelper >
 

Static Public Member Functions

static Bool LessThan (const Entry &a, const Entry &b)
 
static Bool IsEqual (const Entry &a, const Entry &b)
 
template<typename KEY >
static Bool LessThan (const KEY &a, const Entry &b)
 
template<typename KEY >
static Bool IsEqual (const KEY &a, const Entry &b)
 
template<typename KEY >
static Bool LessThan (const Entry &a, const KEY &b)
 
static ResultRef< EntryInsert (Array &array, const K &key, Bool &created, Int &index)
 
template<typename KEY >
static const EntryFind (const Array &array, const KEY &key)
 
template<typename KEY >
static Int FindIndex (const Array &array, const KEY &key)
 
static Bool Erase (Array &array, const K &key)
 

Member Typedef Documentation

◆ Entry

using Entry = Pair<K, V>

◆ Array

using Array = typename ARRAY::template Type<Entry>

◆ IsSorted

using IsSorted = std::true_type

◆ Sort

Member Function Documentation

◆ LessThan() [1/3]

static Bool LessThan ( const Entry a,
const Entry b 
)
static

◆ IsEqual() [1/2]

static Bool IsEqual ( const Entry a,
const Entry b 
)
static

◆ LessThan() [2/3]

static Bool LessThan ( const KEY &  a,
const Entry b 
)
static

◆ IsEqual() [2/2]

static Bool IsEqual ( const KEY &  a,
const Entry b 
)
static

◆ LessThan() [3/3]

static Bool LessThan ( const Entry a,
const KEY &  b 
)
static

◆ Insert()

static ResultRef<Entry> Insert ( Array array,
const K &  key,
Bool created,
Int index 
)
static

◆ Find()

static const Entry* Find ( const Array array,
const KEY &  key 
)
static

◆ FindIndex()

static Int FindIndex ( const Array array,
const KEY &  key 
)
static

◆ Erase()

static Bool Erase ( Array array,
const K &  key 
)
static