Flex
Flex exchange system
|
Working version of orders_queue with cached head order. More...
#include <orders_queue.hpp>
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_queue & | q_ |
opt< OrderInfoXchgWithIdx > | head_ |
uint128 | head_orig_amount_ |
Working version of orders_queue with cached head order.