CatapultServer
v0.5.0.1 (Elephant)
|
Context used to resolve unresolved types. More...
Public Member Functions | |
ResolverContext () | |
Creates a default context. More... | |
ResolverContext (const MosaicResolver &mosaicResolver, const AddressResolver &addressResolver) | |
Creates a context around mosaicResolver and addressResolver. More... | |
MosaicId | resolve (UnresolvedMosaicId mosaicId) const |
Resolves mosaic id (mosaicId). More... | |
Address | resolve (const UnresolvedAddress &address) const |
Resolves address. More... | |
Private Types | |
template<typename TUnresolved , typename TResolved > | |
using | Resolver = std::function< TResolved(const TUnresolved &)> |
using | MosaicResolver = Resolver< UnresolvedMosaicId, MosaicId > |
using | AddressResolver = Resolver< UnresolvedAddress, Address > |
Private Attributes | |
MosaicResolver | m_mosaicResolver |
AddressResolver | m_addressResolver |
Context used to resolve unresolved types.
|
private |
|
private |
|
private |
catapult::model::ResolverContext::ResolverContext | ( | ) |
Creates a default context.
catapult::model::ResolverContext::ResolverContext | ( | const MosaicResolver & | mosaicResolver, |
const AddressResolver & | addressResolver | ||
) |
Creates a context around mosaicResolver and addressResolver.
Address catapult::model::ResolverContext::resolve | ( | const UnresolvedAddress & | address | ) | const |
Resolves address.
MosaicId catapult::model::ResolverContext::resolve | ( | UnresolvedMosaicId | mosaicId | ) | const |
Resolves mosaic id (mosaicId).
|
private |
|
private |