11 #ifndef ASIO_DETAIL_REACTOR_OP_QUEUE_HPP 12 #define ASIO_DETAIL_REACTOR_OP_QUEUE_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 30 template <
typename Descriptor>
54 iterator
begin() {
return operations_.begin(); }
55 iterator
end() {
return operations_.end(); }
62 std::pair<iterator, bool> entry =
64 entry.first->second.push(op);
77 if (i != operations_.end())
106 return operations_.empty();
112 return operations_.find(descriptor) != operations_.end();
120 if (i != operations_.end())
134 operations_.erase(i);
149 iterator i = operations_.begin();
150 while (i != operations_.end())
152 iterator op_iter = i++;
153 ops.
push(op_iter->second);
154 operations_.erase(op_iter);
168 #endif // ASIO_DETAIL_REACTOR_OP_QUEUE_HPP
bool perform_operations(Descriptor descriptor, op_queue< operation > &ops)
bool has_operation(Descriptor descriptor) const
bool enqueue_operation(Descriptor descriptor, reactor_op *op)
void get_all_operations(op_queue< operation > &ops)
bool perform_operations(iterator i, op_queue< operation > &ops)
mapped_type(const mapped_type &)
bool cancel_operations(Descriptor descriptor, op_queue< operation > &ops, const asio::error_code &ec=asio::error::operation_aborted)
bool cancel_operations(iterator i, op_queue< operation > &ops, const asio::error_code &ec=asio::error::operation_aborted)
hash_map< key_type, mapped_type >::value_type value_type
Class to represent an error code value.
std::pair< K, V > value_type
void operator=(const mapped_type &)
hash_map< key_type, mapped_type >::iterator iterator
std::list< value_type >::iterator iterator