|
tvm
|
ffi::Map<Key, ValueType> used to store meta-data. More...
#include <attr_registry_map.h>
Public Member Functions | |
| AttrRegistryMap (const AttrRegistryMapContainerMap< KeyType > &map) | |
| constructor | |
| int | count (const KeyType &key) const |
| Check if the map has op as key. | |
| ValueType | operator[] (const KeyType &key) const |
| get the corresponding value element at key. | |
| ValueType | get (const KeyType &key, ValueType def_value) const |
| get the corresponding value element at key with default value. | |
Protected Attributes | |
| const AttrRegistryMapContainerMap< KeyType > & | map_ |
| The internal map field. | |
ffi::Map<Key, ValueType> used to store meta-data.
| KeyType | The type of the key |
| ValueType | The type of the value stored in map. |
|
inlineexplicit |
constructor
| map | The internal map. |
Check if the map has op as key.
| key | The key to the map |
|
inline |
get the corresponding value element at key with default value.
| key | The key to the map |
| def_value | The default value when the key does not exist. |
|
inline |
get the corresponding value element at key.
| key | The key to the map |
|
protected |
The internal map field.