Platform.Data.Doublets C++
Loading...
Searching...
No Matches
LinksNonExistentDependenciesCreator.h
Go to the documentation of this file.
2{
3 template <typename...>
5 template <std::integral TLinkAddress>
6 class LinksNonExistentDependenciesCreator<TLinkAddress> : public DecoratorBase<TFacade, TDecorated>
7 {
8 public:
9 LinksNonExistentDependenciesCreator(ILinks<TLinkAddress>& storage) : DecoratorBase(storage) {}
10
11 public:
12 TLinkAddress Update(const LinkType& restriction, const LinkType& substitution)
13 {
14 auto constants = _constants;
15 storage.EnsureCreated(substitution[constants.SourcePart], substitution[constants.TargetPart]);
16 return storage.Update(restriction, substitution);
17 }
18 };
19} // namespace Platform::Data::Doublets::Decorators
LinksNonExistentDependenciesCreator(ILinks< TLinkAddress > &storage)
Definition LinksNonExistentDependenciesCreator.h:9
TLinkAddress Update(const LinkType &restriction, const LinkType &substitution)
Definition LinksNonExistentDependenciesCreator.h:12
Definition LinksNonExistentDependenciesCreator.h:4
Definition Decorators.h:4