Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Allocator Arithmetic #88

Open
ryanmrichard opened this issue Jul 11, 2022 · 0 comments
Open

Enable Allocator Arithmetic #88

ryanmrichard opened this issue Jul 11, 2022 · 0 comments

Comments

@ryanmrichard
Copy link
Member

Issue Description

See #87. This is more or less the same issue, but now on the Allocator class.

Compared to Shape, how to implement the various operations for Allocator is more unclear. As a first pass I'm fine just setting the resulting Allocator to one of the input Allocator objects. E.g.:

void Allocator::add(const_annotation_reference, const_annotation_reference, Allocator& out,
                    const_annotation_reference, const_allocator_reference rhs) {
out = rhs;
}

This works because both of our Allocator specializations (single element tiles, and one-big tile) are agnostic to the operation. At some point derived classes will have more state (e.g., tiling info for each mode) and the operations will need to be fleshed out more at that point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant