|
| ArrayMap () noexcept |
|
| ArrayMap (std::initializer_list< Node > values) |
|
| ArrayMap (const ArrayMap ©) |
|
| ArrayMap (ArrayMap &&move) noexcept |
|
ArrayMap & | operator= (const ArrayMap &assign) |
|
ArrayMap & | operator= (ArrayMap &&assign) |
|
Node * | find (const KEY &key) |
|
const Node * | find (const KEY &key) const |
|
bool | hasKey (const KEY &key) const noexcept |
|
VALUE & | getValue (const KEY &key) |
|
const VALUE & | getValue (const KEY &key) const |
|
bool | add (const KEY &key, const VALUE &value) |
|
void | setSize (MemorySize size) |
|
void | setSize (MemorySize size, const Association< KEY, VALUE > &value) |
|
void | ensureCapacity (MemorySize capacity) |
|
MemorySize | getCapacity () const noexcept |
|
Value * | getElements () |
|
const Value * | getElements () const noexcept |
|
| Array () |
|
| Array (MemorySize size) |
|
| Array (MemorySize size, const Value &value) |
|
| Array (std::initializer_list< Value > l) |
|
| Array (const Array ©) noexcept |
|
| Array (Array &&move) noexcept |
|
Array & | operator= (const Array ©) noexcept |
|
Array & | operator= (Array &&move) noexcept |
|
MemorySize | getSize () const noexcept |
|
bool | isEmpty () const noexcept |
|
Association< KEY, VALUE > * | getFirstReference () noexcept |
|
const Association< KEY, VALUE > * | getFirstReference () const noexcept |
|
Association< KEY, VALUE > & | getFirst () |
|
const Association< KEY, VALUE > & | getFirst () const |
|
Association< KEY, VALUE > & | getLast () |
|
const Association< KEY, VALUE > & | getLast () const |
|
Iterator | getBeginIterator () noexcept |
|
Iterator | getEndIterator () noexcept |
|
ReadIterator | getBeginReadIterator () const noexcept |
|
ReadIterator | getEndReadIterator () const noexcept |
|
ReadIterator | begin () const noexcept |
|
Iterator | begin () noexcept |
|
ReadIterator | end () const noexcept |
|
Iterator | end () noexcept |
|
ReadIterator | cbegin () const noexcept |
|
ReadIterator | cend () const noexcept |
|
| operator RandomAccessIterable< Iterator > () noexcept |
|
Enumerator | getEnumerator () noexcept |
|
ReadEnumerator | getReadEnumerator () const noexcept |
|
void | append (const Value &value) |
|
void | append (Value &&value) |
|
void | append (std::initializer_list< Value > l) |
|
void | prepend (const Value &value) |
|
void | prepend (Value &&value) |
|
void | prepend (std::initializer_list< Value > l) |
|
void | insert (MemorySize index, const Value &value) |
|
void | insert (MemorySize index, Value &&value) |
|
void | insert (const Iterator &it, const Value &value) |
|
void | insert (const Iterator &it, Value &&value) |
|
void | remove (MemorySize index) |
|
void | remove (const Iterator &it) |
|
void | remove (MemorySize _begin, MemorySize _end) |
|
void | remove (const Iterator &_begin, const Iterator &_end) |
|
void | removeAll () |
|
Array | slice (MemorySize _begin, MemorySize _end) const |
|
Array | slice (const Iterator &_begin, const Iterator &_end) const |
|
Value & | getAt (MemorySize index) |
|
const Value & | getAt (MemorySize index) const |
|
void | setAt (MemorySize index, const Value &value) |
|
void | setAt (MemorySize index, Value &&value) |
|
Association< KEY, VALUE > & | operator[] (MemorySize index) |
|
const Value & | operator[] (MemorySize index) const |
|
bool | operator== (const Array &compare) const |
|
bool | operator!= (const Array &compare) const |
|
bool | operator< (const Array &compare) const |
|
bool | operator>= (const Array &compare) const |
|
| operator bool () const noexcept |
|
void | shuffle () |
|
MemoryDiff | indexOf (const Association< KEY, VALUE > &value) const |
|
MemoryDiff | lastIndexOf (const Association< KEY, VALUE > &value) const |
|
const Association< KEY, VALUE > * | find (const Association< KEY, VALUE > &value) const |
|
void | sort () |
|
void | sort (PREDICATE predicate) |
|
Array | head (MemorySize n) const |
|
Array | tail (MemorySize n) const |
|
Array & | operator<< (const Association< KEY, VALUE > &value) |
|
Array & | operator<< (Association< KEY, VALUE > &&value) |
|
template<class KEY, class VALUE>
class ArrayMap< KEY, VALUE >
Association of value with value.
Map using Array container. Use this for returning a limited size set of values from functions.
Linear search for key! But fine as long as only a few items are added.
- See also
- Map