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

add cell index to the Push method of Tree #20

Merged
merged 6 commits into from
Mar 27, 2021

Conversation

evan-forbes
Copy link
Member

This PR modifies the Tree interface to pass along the information needed to identify which cell is being pushed.

closes #19

@evan-forbes evan-forbes self-assigned this Mar 26, 2021
tree.go Outdated Show resolved Hide resolved
tree.go Outdated
// pushed
type CellIndex struct {
AxisIndex uint
CellIndex uint
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it on purpose that the type CellIndex contains a field with the same name as the type (CellIndex)?

Copy link
Member Author

@evan-forbes evan-forbes Mar 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops, changed the type CellIndex -> SquareIndex, and dropped the Index of the fields. Happy to change it something else if anyone has ideas 1f35c00

Copy link
Member

@liamsi liamsi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@evan-forbes evan-forbes merged commit ef1d6c5 into master Mar 27, 2021
@evan-forbes evan-forbes deleted the evan/update-tree-interface branch March 27, 2021 01:00
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

Successfully merging this pull request may close these issues.

Upated the Tree interface to communicate row and column position
2 participants