Skip to content

Add GetLatestSlot and GetLatestSample functionality#208

Draft
muhseth wants to merge 4 commits intoeclipse-score:mainfrom
muhseth:muse_skeleton_get
Draft

Add GetLatestSlot and GetLatestSample functionality#208
muhseth wants to merge 4 commits intoeclipse-score:mainfrom
muhseth:muse_skeleton_get

Conversation

@muhseth
Copy link

@muhseth muhseth commented Mar 18, 2026

No description provided.

muhseth added 3 commits March 17, 2026 12:19
- Adds GetLatestSlot function to EventDataControlComposite

Issue: SWP-249517
- Adds GetLatestSampleFunction to SkeletonEvent
Issue: SWP-249517
- fixes clang format issues.
Issue: SWP-249517
@castler castler changed the title Muse skeleton get Add GetLatestSlot and GetLatestSample functionality Mar 19, 2026
@LittleHuba
Copy link
Contributor

@muhseth please fix conflicts.

@LittleHuba LittleHuba marked this pull request as draft March 24, 2026 09:27
}

template <template <class> class AtomicIndirectorType>
score::cpp::optional<SlotIndexType> EventDataControlCompositeImpl<AtomicIndirectorType>::FindLatestReadableSlotIndex(
Copy link
Contributor

Choose a reason for hiding this comment

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

You should instead change existing EventDataControlCompositeImpl::GetLatestTimestamp()! You are mostly duplicating code here. The new/refactored function should be named GetLatestSlot and it should return the index PLUS the timestamp!

And please take into account, what I have written here: https://jira.cc.bmwgroup.net/browse/SWP-253464

slot_index < static_cast<SlotIndexType>(control.state_slots_.size());
++slot_index)
{
SCORE_LANGUAGE_FUTURECPP_ASSERT_PRD(static_cast<std::size_t>(slot_index) < control.state_slots_.size());
Copy link
Contributor

Choose a reason for hiding this comment

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

? Why this assert? I do not get 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.

3 participants