CGRA-ME
|
Provides some standard map operations, with a fixed size. More...
#include <Collections.h>
Classes | |
struct | const_iterator |
struct | iterator |
Public Types | |
using | value_type = std::pair< Key, MappedType > |
using | DataStore = std::vector< value_type > |
Public Member Functions | |
VectorMap (std::size_t size) | |
VectorMap (std::size_t size, IndexMap imap) | |
const MappedType & | at (const Key &k) const |
MappedType & | at (const Key &k) |
MappedType & | operator[] (const Key &k) |
std::pair< iterator, bool > | insert (value_type vt) |
iterator | find (const Key &k) |
const_iterator | find (const Key &k) const |
std::size_t | count (const Key &k) const |
iterator | end () |
const_iterator | end () const |
Private Member Functions | |
iterator | iterAt (const Key &k) |
const_iterator | iterAt (const Key &k) const |
bool | has_data (const_iterator i) const |
Private Attributes | |
DataStore | data |
IndexMap | imap |
Provides some standard map operations, with a fixed size.
Definition at line 168 of file Collections.h.
using VectorMap< IndexMap, Key, MappedType >::DataStore = std::vector<value_type> |
Definition at line 170 of file Collections.h.
using VectorMap< IndexMap, Key, MappedType >::value_type = std::pair<Key, MappedType> |
Definition at line 169 of file Collections.h.
|
inline |
Definition at line 188 of file Collections.h.
|
inline |
Definition at line 189 of file Collections.h.
|
inline |
Definition at line 196 of file Collections.h.
|
inline |
Definition at line 193 of file Collections.h.
|
inline |
Definition at line 221 of file Collections.h.
|
inline |
Definition at line 223 of file Collections.h.
|
inline |
Definition at line 224 of file Collections.h.
|
inline |
Definition at line 212 of file Collections.h.
|
inline |
Definition at line 216 of file Collections.h.
|
inlineprivate |
Definition at line 229 of file Collections.h.
|
inline |
Definition at line 205 of file Collections.h.
|
inlineprivate |
Definition at line 227 of file Collections.h.
|
inlineprivate |
Definition at line 228 of file Collections.h.
|
inline |
Definition at line 199 of file Collections.h.
|
private |
Definition at line 231 of file Collections.h.
|
private |
Definition at line 232 of file Collections.h.