/** Get iterator to element beyond end of message queue list. * @return iterator to element beyond end of message queue list * @exception NotLockedException thrown if message queue is not locked during this operation. */ MessageQueue::MessageIterator MessageQueue::end() { if (mutex_->try_lock()) { mutex_->unlock(); throw NotLockedException("Message queue must be locked to get end iterator."); } return MessageIterator(); }
MessageIterator end() { return MessageIterator(_split_points.end() - 1); }
MessageIterator begin() { return MessageIterator(_split_points.begin()); }
MessageIterator operator++(int) { return MessageIterator(*_cursor++); }
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> MessageIterator Message::iter() const { return MessageIterator(iterImpl()); }