Flex
Flex exchange system
Public Member Functions | Public Attributes | List of all members
orders_queue_cached Class Reference

Working version of orders_queue with cached head order. More...

#include <orders_queue.hpp>

Collaboration diagram for orders_queue_cached:
Collaboration graph
[legend]

Public Member Functions

 orders_queue_cached (orders_queue &q)
 Constructor.
 
bool empty () const
 Is queue empty.
 
OrderInfoXchgWithIdx & front_with_idx ()
 Get queue head (front) with caching.
 
void pop ()
 Pop front order.
 
 ~orders_queue_cached ()
 Destructor to store the remaining head order back to queue.
 

Public Attributes

orders_queueq_
 
opt< OrderInfoXchgWithIdx > head_
 
uint128 head_orig_amount_
 

Detailed Description

Working version of orders_queue with cached head order.


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