Skip to content

Remove reference member from ChunkPointer#32

Open
Baryonics wants to merge 2 commits into
YanzhaoW:masterfrom
Baryonics:reader_remove_reference_member
Open

Remove reference member from ChunkPointer#32
Baryonics wants to merge 2 commits into
YanzhaoW:masterfrom
Baryonics:reader_remove_reference_member

Conversation

@Baryonics
Copy link
Copy Markdown
Contributor

  • Removed std::size_t &current_size from ChunkPointer
  • Edited chunk_end_after_increment() accordingly
  • parse_entry_points() increments size_ via lambda

Fixes #31

@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Baryonics Baryonics force-pushed the reader_remove_reference_member branch from 8dbcc65 to 07688a2 Compare May 19, 2026 09:30
Copy link
Copy Markdown
Owner

@YanzhaoW YanzhaoW left a comment

Choose a reason for hiding this comment

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

Hi,

thanks for the PR. Just a little bit improvement on the name.

Comment thread source/centipede/reader/binary.cpp Outdated
.transform(
[&size](auto)
{
++size;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I feel size is a bad name, and it isn't concrete about which size it represents. Maybe use current_n_points?

@YanzhaoW
Copy link
Copy Markdown
Owner

Ok, good. Squash it and I will merge it.

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.

[Reader] Reference member isn't a good idea

3 participants