Savarese Software Research Corporation
service::ServiceContext Class Reference

#include <service.h>

List of all members.

Classes

class   TimeoutHandler

Public Types

typedef boost::shared_ptr
< TimeoutHandler
timeout_handler_ptr
typedef
boost::multi_index_container
< timeout_handler_ptr,
boost::multi_index::indexed_by
< boost::multi_index::hashed_unique
< boost::multi_index::const_mem_fun
< TimeoutHandler, const
TimeoutHandler
*,&TimeoutHandler::address > > > > 
timeout_map

Public Member Functions

  ServiceContext (EventLoop *loop=0)
timeout_map::size_type  count_timeouts () const
void  clear_timeouts ()
timeout_handler_ptr  add_timeout (const timeout_handler &handler_fun, const TimeValue &timeout, const bool once)
void  remove_timeout (TimeoutHandler *timeout)
EventLoop event_loop ()

Detailed Description

Definition at line 99 of file service/service.h.


Member Typedef Documentation

Definition at line 138 of file service/service.h.

typedef boost::multi_index_container< timeout_handler_ptr, boost::multi_index::indexed_by< boost::multi_index::hashed_unique< boost::multi_index::const_mem_fun<TimeoutHandler, const TimeoutHandler *, &TimeoutHandler::address> > > > service::ServiceContext::timeout_map

Definition at line 147 of file service/service.h.


Constructor & Destructor Documentation

service::ServiceContext::ServiceContext ( EventLoop loop = 0 ) [inline]

Definition at line 155 of file service/service.h.


Member Function Documentation

timeout_handler_ptr service::ServiceContext::add_timeout ( const timeout_handler handler_fun,
const TimeValue &  timeout,
const bool  once 
) [inline]

Definition at line 167 of file service/service.h.

void service::ServiceContext::clear_timeouts ( ) [inline]

Definition at line 161 of file service/service.h.

timeout_map::size_type service::ServiceContext::count_timeouts ( ) const [inline]

Definition at line 157 of file service/service.h.

EventLoop& service::ServiceContext::event_loop ( ) [inline]

Definition at line 183 of file service/service.h.

void service::ServiceContext::remove_timeout ( TimeoutHandler timeout ) [inline]

Definition at line 177 of file service/service.h.


The documentation for this class was generated from the following file:

Savarese Software Research Corporation
Copyright © 2006-2010 Savarese Software Research Corporation. All rights reserved.