|
tvm
|
Generic attribute map. More...
#include <attr_registry_map.h>
Public Member Functions | |
| int | count (const KeyType &key) const |
| Check if the map has key. | |
| const ffi::Any & | operator[] (const KeyType &key) const |
| get the corresponding value element at key. | |
| template<typename ValueType > | |
| ValueType | get (const KeyType &key, ValueType def_value) const |
| get the corresponding value element at key with default value. | |
Friends | |
| template<typename , typename > | |
| class | AttrRegistry |
| class | OpRegEntry |
Generic attribute map.
| KeyType | the type of the key. |
|
inline |
Check if the map has 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. |
| ValueType | The content value type. |
|
inline |
get the corresponding value element at key.
| key | The key to the map |
|
friend |