CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::SerializerPlainKeyEncoder< TSerializer > Class Template Reference

Encoder adapter that hashes values but not keys. More...

Inheritance diagram for catapult::cache::SerializerPlainKeyEncoder< TSerializer >:

Public Types

using KeyType = typename TSerializer::KeyType
 
using ValueType = typename TSerializer::ValueType
 

Static Public Member Functions

static constexpr const KeyTypeEncodeKey (const KeyType &key)
 Encodes key by returning it without modification. More...
 
static Hash256 EncodeValue (const ValueType &value)
 Encodes value by hashing it. More...
 

Detailed Description

template<typename TSerializer>
class catapult::cache::SerializerPlainKeyEncoder< TSerializer >

Encoder adapter that hashes values but not keys.

Member Typedef Documentation

◆ KeyType

template<typename TSerializer>
using catapult::cache::SerializerPlainKeyEncoder< TSerializer >::KeyType = typename TSerializer::KeyType

◆ ValueType

template<typename TSerializer>
using catapult::cache::SerializerPlainKeyEncoder< TSerializer >::ValueType = typename TSerializer::ValueType

Member Function Documentation

◆ EncodeKey()

template<typename TSerializer>
static constexpr const KeyType& catapult::cache::SerializerPlainKeyEncoder< TSerializer >::EncodeKey ( const KeyType key)
inlinestaticconstexpr

Encodes key by returning it without modification.

◆ EncodeValue()

template<typename TSerializer>
static Hash256 catapult::cache::SerializerPlainKeyEncoder< TSerializer >::EncodeValue ( const ValueType value)
inlinestatic

Encodes value by hashing it.

Here is the call graph for this function:

The documentation for this class was generated from the following file: