![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
Walks the outstanding orders, oldest first. More...
#include <algotradelib/src/backtest/engine.hpp>
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| A forward iterator. | |
| using | value_type = QueuedOrder<BrokerTag> |
| An outstanding order. | |
| using | difference_type = std::ptrdiff_t |
| The distance between two positions. | |
| using | pointer = const QueuedOrder<BrokerTag>* |
| A pointer to an order. | |
| using | reference = const QueuedOrder<BrokerTag>& |
| A reference to an order. | |
Public Member Functions | |
| const_iterator ()=default | |
| An iterator past the end of an empty queue. | |
| reference | operator* () const noexcept |
| Returns the order here. | |
| pointer | operator-> () const noexcept |
| Points at the order here. | |
| const_iterator & | operator++ () noexcept |
| Moves to the next outstanding order. | |
| const_iterator | operator++ (int) noexcept |
| Moves to the next outstanding order. | |
Friends | |
| class | Queue |
| bool | operator== (const const_iterator &lhs, const const_iterator &rhs) noexcept |
| Compares two positions in one queue. | |
| bool | operator!= (const const_iterator &lhs, const const_iterator &rhs) noexcept |
| Compares two positions in one queue. | |
Walks the outstanding orders, oldest first.
Definition at line 296 of file engine.hpp.
| using algotradelib::backtest::QueueingExecutor< BrokerTag >::Queue::const_iterator::difference_type = std::ptrdiff_t |
The distance between two positions.
Definition at line 303 of file engine.hpp.
| using algotradelib::backtest::QueueingExecutor< BrokerTag >::Queue::const_iterator::iterator_category = std::forward_iterator_tag |
A forward iterator.
Definition at line 299 of file engine.hpp.
| using algotradelib::backtest::QueueingExecutor< BrokerTag >::Queue::const_iterator::pointer = const QueuedOrder<BrokerTag>* |
A pointer to an order.
Definition at line 305 of file engine.hpp.
| using algotradelib::backtest::QueueingExecutor< BrokerTag >::Queue::const_iterator::reference = const QueuedOrder<BrokerTag>& |
A reference to an order.
Definition at line 307 of file engine.hpp.
| using algotradelib::backtest::QueueingExecutor< BrokerTag >::Queue::const_iterator::value_type = QueuedOrder<BrokerTag> |
An outstanding order.
Definition at line 301 of file engine.hpp.
|
default |
An iterator past the end of an empty queue.
Referenced by algotradelib::backtest::QueueingExecutor< BrokerTag >::Queue::begin(), algotradelib::backtest::QueueingExecutor< BrokerTag >::Queue::end(), operator!=, operator++(), operator++(), and operator==.
|
inlinenoexcept |
|
inlinenoexcept |
Moves to the next outstanding order.
Definition at line 329 of file engine.hpp.
|
inlinenoexcept |
Moves to the next outstanding order.
Definition at line 338 of file engine.hpp.
|
inlinenoexcept |
|
friend |
Compares two positions in one queue.
| lhs | The first. |
| rhs | The second. |
Definition at line 358 of file engine.hpp.
|
friend |
Compares two positions in one queue.
| lhs | The first. |
| rhs | The second. |
Definition at line 349 of file engine.hpp.
|
friend |
Definition at line 363 of file engine.hpp.