Leka
A low-latency C++20 price-time-priority limit order book and matching engine
▶ Replay viewer
Loading...
Searching...
No Matches
lob::SequenceNumberGenerator Class Reference

Generates process-wide monotonic sequence numbers. More...

#include <sequence_number_generator.hpp>

Static Public Member Functions

static SequenceNumber generate ()
 Returns the next valid sequence number or throws on exhaustion.

Detailed Description

Generates process-wide monotonic sequence numbers.

Sequence numbers identify accepted engine processing order and are assigned only after an incoming order passes validation and duplicate checks.

Definition at line 14 of file sequence_number_generator.hpp.

Member Function Documentation

◆ generate()

SequenceNumber lob::SequenceNumberGenerator::generate ( )
static

Returns the next valid sequence number or throws on exhaustion.

Advances the global processing sequence without allowing wraparound.

Definition at line 12 of file sequence_number_generator.cpp.


The documentation for this class was generated from the following files: