Class PlaybackPreprocessor

Class Documentation

class PlaybackPreprocessor

Helper class for preprocessing that is required to perform playback on a range or enable several features.

This class encapsulates a lot of the stream preprocessing logic PlaybackPreprocessor enables features with stream preprocessing requirement The preprocessing is required to correctly playback a range

Public Types

using EnumerateCallback = std::function<void(Callable &callable)>

Public Functions

PlaybackPreprocessor(StreamData *streamData, StreamDataBookmark const &rangeBegin, StreamDataBookmark const &rangeEnd, PlaybackPreprocessorConfig config = sDefaultConfig, uint64_t targetQueueId = 0)

Constructor for range repeat playback.

Parameters
  • streamData -- The stream data used in preprocessing

  • rangeBegin -- The bookmark that points to start point of the range repeat

  • rangeEnd -- The bookmark that points to end point of the range repeat

  • targetQueueId -- Capture pointer to target queue. All target queue's calls in range [rangeBegin, rangeEnd] will be played back.

PlaybackPreprocessor(StreamData *streamData, PlaybackPreprocessorConfig config = sDefaultConfig)

Constructor for continious playback.

Parameters

streamData -- The stream data used in preprocessing

void EnumerateCallsBeforeRangeRepeat(Callable &originalCall, EnumerateCallback callback)
void EnumerateAdditionalRangeCalls(EnumerateCallback callback)
const CallableCache &GetRangeCache()

Public Static Attributes

static constexpr PlaybackPreprocessorConfig sDefaultConfig = {false, true}