CatapultServer  v0.5.0.1 (Elephant)
catapult::model::ResolverContext Class Reference

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
 

Detailed Description

Context used to resolve unresolved types.

Member Typedef Documentation

◆ AddressResolver

◆ MosaicResolver

◆ Resolver

template<typename TUnresolved , typename TResolved >
using catapult::model::ResolverContext::Resolver = std::function<TResolved (const TUnresolved&)>
private

Constructor & Destructor Documentation

◆ ResolverContext() [1/2]

catapult::model::ResolverContext::ResolverContext ( )

Creates a default context.

◆ ResolverContext() [2/2]

catapult::model::ResolverContext::ResolverContext ( const MosaicResolver mosaicResolver,
const AddressResolver addressResolver 
)

Creates a context around mosaicResolver and addressResolver.

Member Function Documentation

◆ resolve() [1/2]

Address catapult::model::ResolverContext::resolve ( const UnresolvedAddress address) const

Resolves address.

◆ resolve() [2/2]

MosaicId catapult::model::ResolverContext::resolve ( UnresolvedMosaicId  mosaicId) const

Resolves mosaic id (mosaicId).

Here is the caller graph for this function:

Member Data Documentation

◆ m_addressResolver

AddressResolver catapult::model::ResolverContext::m_addressResolver
private

◆ m_mosaicResolver

MosaicResolver catapult::model::ResolverContext::m_mosaicResolver
private

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