template class Core::ConstMap

Overview

Constant map container class. More…

#include <coremap.h>

template <typename TKey, typename TValue>
class ConstMap
{
public:
    // construction

    ConstMap(KeyValue<TKey, TValue>* data, int length);

    // methods

    TValue& operator [] (const TKey& key) const;
    TValue& at(const TKey& key) const;
    TKey& findKey(const TValue& value) const;
    bool contains(const TKey& key) const;
};

Detailed Documentation

Constant map container class.

Methods

TValue& operator [] (const TKey& key) const

Get value by key (operator).

TValue& at(const TKey& key) const

Get value by key.

TKey& findKey(const TValue& value) const

Find key by value.

bool contains(const TKey& key) const

Check if container holds given key.