|
BLPAPI C++
3.25.2
|
#include <blpapi_event.h>
Public Types | |
| using | difference_type = std::ptrdiff_t |
| using | value_type = Message |
| using | pointer = Message * |
| using | reference = Message & |
| using | iterator_category = std::input_iterator_tag |
Public Member Functions | |
| iterator () | |
| iterator (const Event &event) | |
| iterator (const iterator &original) | |
| ~iterator () | |
| iterator & | operator= (const iterator &original) |
| iterator & | operator++ () |
| iterator | operator++ (int) |
| void | swap (iterator &other) |
| const Message & | operator * () const noexcept |
| const Message * | operator-> () const noexcept |
Friends | |
| bool | operator== (const iterator &lhs, const iterator &rhs) |
An input iterator that iterates the messages in an Event sequentially. It only guarantees validity for single pass algorithms which pass through an iterator position once at most. Once an iterator has been incremented, all copies of its previous value may be invalidated.
Changes to the Event invalidate any iterator obtained from it.
| using difference_type = std::ptrdiff_t |
| using iterator_category = std::input_iterator_tag |
| using value_type = Message |
| iterator | ( | ) |
Construct an empty iterator.
Construct an iterator to iterate the messages in the specified event.
Construct an iterator with the same value as the original iterator. Note that the iterator is a single-pass input iterator, incrementing one of the two copies will impact the other copy.
| ~iterator | ( | ) |
|
noexcept |
| Event::iterator & operator++ | ( | ) |
Iterate over the next message in the event. Note that this operation is relatively expensive as it will decode the next message in the event. Returns a reference to this iterator.
| Event::iterator operator++ | ( | int | ) |
Iterate over the next message in the event and return a copy of the original value of this iterator. Note that this operation is relatively expensive as it will decode the next message in the event. Also note that this is a single-pass input iterator, incremeting one of the two copies will impact the other iterator.
|
noexcept |
| Event::iterator & operator= | ( | const iterator & | original | ) |
Assign the value of the original iterator to this iterator. Note that the iterator is a single-pass input iterator, incrementing one of the two copies will impact the other copy.
| void swap | ( | iterator & | other | ) |
Swap the contents of this iterator and the other iterator.
Return true if the specified lhs and rhs are the same iterator, or both are end iterators.