Skip to content

Remove reference member from ChunkPointer#32

Merged
YanzhaoW merged 1 commit into
YanzhaoW:masterfrom
Baryonics:reader_remove_reference_member
May 20, 2026
Merged

Remove reference member from ChunkPointer#32
YanzhaoW merged 1 commit 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.

renamed local variable size to current_n_points to clearify its usage
@Baryonics Baryonics force-pushed the reader_remove_reference_member branch from fc94ed4 to d74cca4 Compare May 20, 2026 09:17
@YanzhaoW YanzhaoW merged commit 760d701 into YanzhaoW:master May 20, 2026
12 checks passed
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