Skip to content

[REF] Introduce BufferState#218

Merged
TimSiebert1 merged 1 commit intomasterfrom
introduce-buffer-type
Apr 24, 2026
Merged

[REF] Introduce BufferState#218
TimSiebert1 merged 1 commit intomasterfrom
introduce-buffer-type

Conversation

@TimSiebert1
Copy link
Copy Markdown
Collaborator

Introduce BufferState class to summarize common state and behavior in TapeInfos.

BufferState is used as RAII type for what was before stored as separate file pointer, pointer-to-first, pointer-to-current, pointer-to-last and a corresponding number-of-elements-stored; for operations values, locations and taylor coefficients. All four are now represented by a corresponding BufferState that handles the file resources, allocations and indices. Additionally, several Buffer write and read patters are summarized. All changes should make the code more robust and readable.

…ior in TapeInfos.

BufferState is used as RAII type for what was before stored as separate file pointer, pointer-to-first, pointer-to-current, pointer-to-last and a corresponding number-of-elements-stored; for operations values, locations and taylor coefficients. All four are now represented by a corresponding BufferState that handles the file resources, allocations and indices. Additionally, several Buffer write and read patters are summarized. All changes should make the code more robust and readable.
@TimSiebert1 TimSiebert1 force-pushed the introduce-buffer-type branch from 78ac29e to af2b216 Compare April 24, 2026 09:21
@TimSiebert1 TimSiebert1 merged commit 96c3de6 into master Apr 24, 2026
49 of 50 checks passed
@TimSiebert1 TimSiebert1 deleted the introduce-buffer-type branch April 24, 2026 09:26
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.

1 participant