libbmq
a5f8a06ba1d16cb5a65643e1fa7f1a1d6aadef40
|
#include <bmqa_messageiterator.h>
Public Member Functions | |
MessageIterator () | |
Default constructor. More... | |
bool | nextMessage () |
const Message & | message () const |
An iterator providing read-only sequential access to messages contained into a MesssageEvent
.
BloombergLP::bmqa::MessageIterator::MessageIterator | ( | ) |
bool BloombergLP::bmqa::MessageIterator::nextMessage | ( | ) |
Advance the position of the iterator to the next message in the event. Return true if there is a next message and false otherwise. Note that advancing to the next message will invalidate any previously returned bmqa::Message retrieved from the message()
call.
const Message& BloombergLP::bmqa::MessageIterator::message | ( | ) | const |
Return the message to which the iterator is pointing, if any; otherwise return an invalid message. Note that nextMessage
must be called before message
in order to advance the iterators position to the first message in the event.