template<typename input_collection_t, typename data_t = typename input_collection_t::value_type, typename hash_function_t = default_hash<data_t>, typename hash_t = decltype(std::declval<hash_function_t>()(data_t{0})), template< typename > class vector_t = dvector>
struct detray::hash_tree< input_collection_t, data_t, hash_function_t, hash_t, vector_t >::hashed_node
Default node in the hash tree.
template<typename input_collection_t, typename data_t = typename input_collection_t::value_type, typename hash_function_t = default_hash<data_t>, typename hash_t = decltype(std::declval<hash_function_t>()(data_t{0})), template< typename > class vector_t = dvector>
| detray::hash_tree< input_collection_t, data_t, hash_function_t, hash_t, vector_t >::hashed_node::hashed_node |
( |
hash_t | hash | ) |
|
|
explicit |
Construct a node with its hash.
- Parameters
-
| hash | Hash stored in the node. |
template<typename input_collection_t, typename data_t = typename input_collection_t::value_type, typename hash_function_t = default_hash<data_t>, typename hash_t = decltype(std::declval<hash_function_t>()(data_t{0})), template< typename > class vector_t = dvector>
| hash_t & detray::hash_tree< input_collection_t, data_t, hash_function_t, hash_t, vector_t >::hashed_node::key |
( |
| ) |
|
Get the mutable node hash.
- Returns
- Mutable reference to the node hash.