|
| ColorTable () |
|
template<typename Iter > |
| ColorTable (const Iter &beg, const Iter &end) |
|
| Map () |
| Creates an empty map. More...
|
|
| Map (const std::less< std::size_t > &func) |
| Creates an empty map and uses func as key compare function. More...
|
|
| Map (const InputIter &first, const InputIter &last) |
| Creates and initializes the map with copies of the key value pairs in the range [first, last). More...
|
|
| Map (const InputIter &first, const InputIter &last, const std::less< std::size_t > &func) |
| Creates and initializes the map with copies of the key value pairs in the range [first, last) and uses func as key compare function. More...
|
|
virtual | ~Map () |
| Virtual destructor. More...
|
|
StorageType & | getData () |
|
const StorageType & | getData () const |
|
std::size_t | getSize () const |
| Returns the size (number of entries) of the map. More...
|
|
bool | isEmpty () const |
| Tells whether the map is empty (getSize() == 0 ). More...
|
|
void | clear () |
| Erases all entries. More...
|
|
void | swap (Map &map) |
| Swaps the contents with map. More...
|
|
std::less< std::size_t > | getKeyCompareFunction () const |
| Returns the key compare function used by the map. More...
|
|
EntryIterator | getEntry (const std::size_t &key) |
| Returns a mutable iterator pointing to the entry specified by key. More...
|
|
ConstEntryIterator | getEntry (const std::size_t &key) const |
| Returns a constant iterator pointing to the entry specified by key. More...
|
|
bool | containsEntry (const std::size_t &key) const |
| Tells whether the map contains an entry with the specified key. More...
|
|
Color & | getValue (const std::size_t &key) |
| Returns a non-const reference to the value associated with the specified key. More...
|
|
Color & | getValue (const std::size_t &key, Color &def_value) |
| Returns a non-const reference to the value associated with the specified key, or the value given by the second argument if the specified entry does not exist. More...
|
|
const Color & | getValue (const std::size_t &key) const |
| Returns a const reference to the value associated with the specified key. More...
|
|
const Color & | getValue (const std::size_t &key, const Color &def_value) const |
| Returns a const reference to the value associated with the specified key, or the value given by the second argument if the specified entry does not exist. More...
|
|
Color & | operator[] (const std::size_t &key) |
| Returns a non-const reference to the value associated with the specified key. More...
|
|
const Color & | operator[] (const std::size_t &key) const |
| Returns a const reference to the value associated with the specified key. More...
|
|
void | removeEntry (const EntryIterator &it) |
| Removes the entry pointed to by the iterator it from the map. More...
|
|
bool | removeEntry (const std::size_t &key) |
| Removes the entry specified by key from the map. More...
|
|
void | removeEntries (const EntryIterator &first, const EntryIterator &last) |
| Removes all entries pointed to by the iterators in the range [first, last) from the map. More...
|
|
std::pair< EntryIterator, bool > | insertEntry (const Entry &item) |
| Tries to insert the key/value pair item into the map. More...
|
|
std::pair< EntryIterator, bool > | insertEntry (const std::size_t &key, const Color &value) |
| Tries to insert a new entry with specified key and value into the map. More...
|
|
EntryIterator | insertEntry (const EntryIterator &it, const Entry &item) |
| Tries to insert the key/value pair item into the map and uses the iterator it as a hint for the insertion location. More...
|
|
EntryIterator | insertEntry (const EntryIterator &it, const std::size_t &key, const Color &value) |
| Tries to insert a new entry with the specified key and value into the map and uses the iterator it as a hint for the insertion location. More...
|
|
EntryIterator | setEntry (const Entry &item) |
| Inserts a new entry or updates the value of an existing entry with the key and value given by item. More...
|
|
EntryIterator | setEntry (const std::size_t &key, const Color &value) |
| Inserts a new entry or updates the value of an existing entry with the specified key and value. More...
|
|
void | insertEntries (const InputIter &first, const InputIter &last) |
| Tries to insert the key/value pairs in the range [first, last). More...
|
|
void | setEntries (const InputIter &first, const InputIter &last) |
| Inserts new entries or updates the value of existing entries using the key/value pairs in the range [first, last). More...
|
|
EntryIterator | getLowerBound (const std::size_t &key) |
| Returns a mutable iterator pointing to the first entry whose key is not less than the specified key. More...
|
|
ConstEntryIterator | getLowerBound (const std::size_t &key) const |
| Returns a constant iterator pointing to the first entry whose key is not less than the specified key. More...
|
|
EntryIterator | getUpperBound (const std::size_t &key) |
| Returns a mutable iterator pointing to the first entry whose key is greater than the specified key. More...
|
|
ConstEntryIterator | getUpperBound (const std::size_t &key) const |
| Returns a constant iterator pointing to the first entry whose key is greater than the specified key. More...
|
|
ConstEntryIterator | getEntriesBegin () const |
| Returns a constant iterator pointing to the beginning of the map. More...
|
|
EntryIterator | getEntriesBegin () |
| Returns a mutable iterator pointing to the beginning of the map. More...
|
|
ConstEntryIterator | getEntriesEnd () const |
| Returns a constant iterator pointing to the end of the map. More...
|
|
EntryIterator | getEntriesEnd () |
| Returns a mutable iterator pointing to the end of the map. More...
|
|
ConstEntryIterator | begin () const |
| Returns a constant iterator pointing to the beginning of the map. More...
|
|
EntryIterator | begin () |
| Returns a mutable iterator pointing to the beginning of the map. More...
|
|
ConstEntryIterator | end () const |
| Returns a constant iterator pointing to the end of the map. More...
|
|
EntryIterator | end () |
| Returns a mutable iterator pointing to the end of the map. More...
|
|
ConstReverseEntryIterator | getEntriesReverseBegin () const |
| Returns a constant iterator pointing to the beginning of the reversed map. More...
|
|
ReverseEntryIterator | getEntriesReverseBegin () |
| Returns a mutable iterator pointing to the beginning of the reversed map. More...
|
|
ConstReverseEntryIterator | getEntriesReverseEnd () const |
| Returns a constant iterator pointing to the end of the reversed map. More...
|
|
ReverseEntryIterator | getEntriesReverseEnd () |
| Returns a mutable iterator pointing to the end of the reversed map. More...
|
|
A container for the storage and lookup of Vis::Color objects that are associated with a numeric identifier.