Home | History | Annotate | Download | only in detail

Lines Matching refs:service

33   // Constructor. Adds the initial service.
34 template <typename Service, typename Arg>
36 Service* initial_service, Arg arg);
44 // Get the first service object cast to the specified type. Called during
46 template <typename Service>
47 Service& first_service();
49 // Get the service object corresponding to the specified service type. Will
50 // create a new service object automatically if no such object already
51 // exists. Ownership of the service object is not transferred to the caller.
52 template <typename Service>
53 Service& use_service();
55 // Add a service object. Throws on error, in which case ownership of the
57 template <typename Service>
58 void add_service(Service* new_service);
60 // Check whether a service object of the specified type already exists.
61 template <typename Service>
65 // Initialise a service's key based on its id.
67 asio::io_service::service::key& key,
71 // Initialise a service's key based on its id.
72 template <typename Service>
73 static void init_key(asio::io_service::service::key& key,
74 const asio::detail::service_id<Service>& /*id*/);
77 // Check if a service matches the given id.
79 const asio::io_service::service::key& key1,
80 const asio::io_service::service::key& key2);
82 // The type of a factory function used for creating a service instance.
83 typedef asio::io_service::service*
86 // Factory function for creating a service instance.
87 template <typename Service>
88 static asio::io_service::service* create(
91 // Destroy a service instance.
93 asio::io_service::service* service);
95 // Helper class to manage service pointers.
100 asio::io_service::service* ptr_;
104 // Get the service object corresponding to the specified service key. Will
105 // create a new service object automatically if no such object already
106 // exists. Ownership of the service object is not transferred to the caller.
107 ASIO_DECL asio::io_service::service* do_use_service(
108 const asio::io_service::service::key& key,
111 // Add a service object. Throws on error, in which case ownership of the
114 const asio::io_service::service::key& key,
115 asio::io_service::service* new_service);
117 // Check whether a service object with the specified key already exists.
119 const asio::io_service::service::key& key) const;
124 // The owner of this service registry and the services it contains.
127 // The first service in the list of contained services.
128 asio::io_service::service* first_service_;