Platform.Data.Doublets C++
Loading...
Searching...
No Matches
LinksNullConstantToSelfReferenceResolver.h
Go to the documentation of this file.
2{
3 template <typename...>
5 template <std::integral TLinkAddress>
6 class LinksNullConstantToSelfReferenceResolver<TLinkAddress> : public DecoratorBase<TFacade, TDecorated>
7 {
8 public:
9 LinksNullConstantToSelfReferenceResolver(ILinks<TLinkAddress>& storage) : DecoratorBase(storage) {}
10
11 public:
12 TLinkAddress Create(const LinkType& restriction)
13 {
14 return this->decorated().TDecorated::CreatePoint();
15 }
16
17 public:
18 TLinkAddress Update(const LinkType& restriction, const LinkType& substitution)
19 {
20 return this->decorated().TDecorated::Update(
21 restriction, this->decorated().TDecorated::ResolveConstantAsSelfReference(_constants.Null, restriction,
22 substitution));
23 }
24 };
25} // namespace Platform::Data::Doublets::Decorators
TLinkAddress Create(const LinkType &restriction)
Definition LinksNullConstantToSelfReferenceResolver.h:12
LinksNullConstantToSelfReferenceResolver(ILinks< TLinkAddress > &storage)
Definition LinksNullConstantToSelfReferenceResolver.h:9
TLinkAddress Update(const LinkType &restriction, const LinkType &substitution)
Definition LinksNullConstantToSelfReferenceResolver.h:18
Definition LinksNullConstantToSelfReferenceResolver.h:4
Definition Decorators.h:4