Flex
Flex exchange system
|
Orders queue to keep orders and common state (tokens amount). More...
#include <orders_queue.hpp>
Public Member Functions | |
bool | empty () const |
Is queue empty. | |
void | drop_no_post_orders (process_queue_state &state, bool sell) |
Drop orders without post_order flag. | |
Public Attributes | |
uint128 | all_amount_ |
Amount of tokens in all orders. | |
big_queue< OrderInfoXchg > | orders_ |
Orders queue. | |
Orders queue to keep orders and common state (tokens amount).
Working state of orders queue includes cached head order. This order may be modified "in memory" and stored back into queue (using change_front) only if order is partially processed at the end of process_queue.