Table of Contents

Interface IAddressMap<TLinkAddress>

Namespace
Foundation.Data.Doublets.Cli
Assembly
Foundation.Data.Doublets.Cli.dll

How the addresses of a network below a RemapLinksDecorator<TLinkAddress> read above it (issue #149). Only addresses of links are mapped: the null link, Any and the other constants of the store read the same on both sides.

public interface IAddressMap<TLinkAddress> where TLinkAddress : struct, IUnsignedNumber<TLinkAddress>

Type Parameters

TLinkAddress

Methods

ToOuter(TLinkAddress)

The address above of inner, given one when it has none yet.

TLinkAddress ToOuter(TLinkAddress inner)

Parameters

inner TLinkAddress

Returns

TLinkAddress

TryToInner(TLinkAddress, out TLinkAddress)

The address below of outer; false when outer is no address of the network below.

bool TryToInner(TLinkAddress outer, out TLinkAddress inner)

Parameters

outer TLinkAddress
inner TLinkAddress

Returns

bool