40 :
Order(
id, p, qty, s, ts, ts) {
58 return priority < other.priority;
62 return priority > other.priority;
#define SLICK_DETAIL_NAMESPACE_BEGIN
#define SLICK_DETAIL_NAMESPACE_END
#define SLICK_CACHE_ALIGNED
int64_t Quantity
Quantity type - volume or size.
int64_t Price
Price type - fixed-point representation Example: For 4 decimal places, price = actual_price * 10000 T...
uint64_t OrderId
Unique order identifier.
Side
Order side - using enum for easy array indexing.
uint64_t Timestamp
Timestamp in nanoseconds since epoch.
Order structure for Level 3 orderbook Uses intrusive list design for zero-allocation order queues at ...
bool operator<(const Order &other) const noexcept
Comparison operator for priority-based sorting Lower priority value = higher priority in queue.
Order(OrderId id, Price p, Quantity qty, Side s, Timestamp ts) noexcept
Constructor with timestamp as priority (common case)
bool operator>(const Order &other) const noexcept
Order(OrderId id, Price p, Quantity qty, Side s, Timestamp ts, uint64_t prio) noexcept
Constructor with all fields.
Order() noexcept
Default constructor (for pool allocation)