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

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< OrderInfoXchgorders_
 Orders queue.
 

Detailed Description

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.


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