Add CLinks concept based on main ILinks methods #159
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Implementation Details
The CLinks concept requires:
Type Requirements
LinkAddressType: Type for link addressesReadHandlerType: Handler type for read operations (Each)WriteHandlerType: Handler type for write operations (Create, Update, Delete)Member Requirements
Constants: Static constants for effective interface communicationCount(restriction): Counts links matching restrictionEach(restriction, handler): Iterates through matching linksCreate(substitution, handler): Creates new linksUpdate(restriction, substitution, handler): Updates existing linksDelete(restriction, handler): Deletes matching linksFiles Added
cpp/Platform.Data/CLinks.h
cpp/Platform.Data.Tests/CLinksTests.cpp
cpp/Platform.Data.Tests/CLinksSimpleTest.cpp
Test Plan
Based on Issue Requirements
Resolves #85 by adding a CLinks concept based on the main methods of ILinks (without extensions), following the selective polymorphism approach suggested in the issue comments.
🤖 Generated with Claude Code