Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCStaticArrayMap.html below:
NCBI C++ ToolKit: CStaticArrayMap< KeyType, ValueType, KeyCompare
Search Toolkit Book for CStaticArrayMap
class CStaticArrayMap<> provides access to a static array in much the same way as CStaticArraySet<>, except that it provides arbitrary binding of a value type to each sorted key, much like an STL map<> would. More...
#include <util/static_map.hpp>
template<size_t Size> CStaticArrayMap (const value_type(&arr)[Size], const char *file, int line, NStaticArray::ECopyWarn warn=NStaticArray::eCopyWarn_default) default constructor. More...
template<size_t Size> CStaticArrayMap (const value_type(&arr)[Size], const key_compare &comp, const char *file, int line, NStaticArray::ECopyWarn warn=NStaticArray::eCopyWarn_default) Constructor to initialize comparator object. More...
template<class Type > CStaticArrayMap (const Type *array_ptr, size_t array_size, const char *file, int line, NStaticArray::ECopyWarn warn=NStaticArray::eCopyWarn_default) default constructor. More...
template<class Type > CStaticArrayMap (const Type *array_ptr, size_t array_size, const key_compare &comp, const char *file, int line, NStaticArray::ECopyWarn warn=NStaticArray::eCopyWarn_default) Constructor to initialize comparator object. More...
CStaticArrayMap (const_iterator obj, size_type array_size) CStaticArrayMap (const_iterator obj, size_type array_size, const key_compare &comp) CStaticArraySearchBase (const value_type(&arr)[Size], const char *file, int line, NStaticArray::ECopyWarn warn) Default constructor. More...
CStaticArraySearchBase (const value_type(&arr)[Size], const key_compare &comp, const char *file, int line, NStaticArray::ECopyWarn warn) Constructor to initialize comparator object. More...
CStaticArraySearchBase (const Type *array_ptr, size_type array_size, const char *file, int line, NStaticArray::ECopyWarn warn) Default constructor. More...
CStaticArraySearchBase (const Type *array_ptr, size_type array_size, const key_compare &comp, const char *file, int line, NStaticArray::ECopyWarn warn) Constructor to initialize comparator object. More...
~CStaticArraySearchBase (void) Destructor. More...
const value_compare & value_comp () const const key_compare & key_comp () const const_iterator begin () const Return the start of the controlled sequence. More...
const_iterator end () const Return the end of the controlled sequence. More...
bool empty () const Return true if the container is empty. More...
size_type size () const Return number of elements in the container. More...
const_iterator lower_bound (const key_type &key) const Return an iterator into the sequence such that the iterator's key is less than or equal to the indicated key. More...
const_iterator upper_bound (const key_type &key) const Return an iterator into the sequence such that the iterator's key is greater than the indicated key. More...
const_iterator find (const key_type &key) const Return a const_iterator pointing to the specified element, or to the end if the element is not found. More...
size_type count (const key_type &key) const Return the count of the elements in the sequence. More...
pair< const_iterator, const_iterator > equal_range (const key_type &key) const Return a pair of iterators bracketing the given element in the controlled sequence. More...
difference_type index_of (const key_type &key) const Return the index of the indicated element, or eNpos if the element is not found. More...
typedef void(* TDeallocateFunc) (const_iterator &begin, const_iterator &end) void x_Set (const value_type *array_ptr, size_t array_size, const char *file, int line, NStaticArray::ECopyWarn) Assign array pointer and end pointer without conversion. More...
void x_Set (const Type *array2_ptr, size_t array2_size, const char *file, int line, NStaticArray::ECopyWarn warn) Assign array pointer and end pointer from differently typed array. More...
static void x_Validate (const value_type *array, size_t size, const value_compare &comp, const char *file, int line) Perform sort-order validation. This is a no-op in release mode. More...
static void x_DeallocateFunc (const_iterator &begin_ref, const_iterator &end_ref) Function used for array destruction and deallocation if it was created from a differently typed static array. More...
template<class KeyType, class ValueType, class KeyCompare = less<KeyType>>
class CStaticArrayMap< KeyType, ValueType, KeyCompare >
class CStaticArrayMap<> provides access to a static array in much the same way as CStaticArraySet<>, except that it provides arbitrary binding of a value type to each sorted key, much like an STL map<> would.
Definition at line 173 of file static_map.hpp.
◆ const_iterator
template<class KeyType , class ValueType , class KeyCompare = less<KeyType>>
Definition at line 179 of file static_map.hpp.
◆ key_compare
template<class KeyType , class ValueType , class KeyCompare = less<KeyType>>
Definition at line 181 of file static_map.hpp.
◆ size_type
template<class KeyType , class ValueType , class KeyCompare = less<KeyType>>
Definition at line 180 of file static_map.hpp.
◆ TBase
template<class KeyType , class ValueType , class KeyCompare = less<KeyType>>
Definition at line 176 of file static_map.hpp.
◆ value_type
template<class KeyType , class ValueType , class KeyCompare = less<KeyType>>
Definition at line 178 of file static_map.hpp.
◆ CStaticArrayMap() [1/6]
template<class KeyType , class ValueType , class KeyCompare = less<KeyType>>
template<size_t Size>
default constructor.
This will build a map around a given array; the storage of the end pointer is based on the supplied array size. In debug mode, this will verify that the array is sorted.
Definition at line 187 of file static_map.hpp.
◆ CStaticArrayMap() [2/6]
template<class KeyType , class ValueType , class KeyCompare = less<KeyType>>
template<size_t Size>
Constructor to initialize comparator object.
Definition at line 196 of file static_map.hpp.
◆ CStaticArrayMap() [3/6]
template<class KeyType , class ValueType , class KeyCompare = less<KeyType>>
template<class Type >
default constructor.
This will build a map around a given array; the storage of the end pointer is based on the supplied array size. In debug mode, this will verify that the array is sorted.
Definition at line 208 of file static_map.hpp.
◆ CStaticArrayMap() [4/6]
template<class KeyType , class ValueType , class KeyCompare = less<KeyType>>
template<class Type >
Constructor to initialize comparator object.
Definition at line 217 of file static_map.hpp.
◆ CStaticArrayMap() [5/6]
template<class KeyType , class ValueType , class KeyCompare >
Definition at line 260 of file static_map.hpp.
◆ CStaticArrayMap() [6/6]
template<class KeyType , class ValueType , class KeyCompare >
Definition at line 269 of file static_map.hpp.
The documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4