ACE_Creation_Strategy< SVC_HANDLER > Class Template ReferenceDefines the interface for specifying a creation strategy for a SVC_HANDLER. More...
Inheritance diagram for ACE_Creation_Strategy< SVC_HANDLER >:
![]()
Collaboration diagram for ACE_Creation_Strategy< SVC_HANDLER >:
![]()
Detailed Descriptiontemplate<class SVC_HANDLER>
Defines the interface for specifying a creation strategy for a SVC_HANDLER.
|
typedef SVC_HANDLER::addr_type ACE_Creation_Strategy< SVC_HANDLER >::addr_type |
typedef SVC_HANDLER ACE_Creation_Strategy< SVC_HANDLER >::handler_type |
typedef SVC_HANDLER::stream_type ACE_Creation_Strategy< SVC_HANDLER >::stream_type |
ACE_INLINE ACE_Creation_Strategy< SVC_HANDLER >::ACE_Creation_Strategy | ( | ACE_Thread_Manager * | thr_mgr = 0 , |
|
ACE_Reactor * | reactor = ACE_Reactor::instance () | |||
) | [inline] |
Default constructor.
ACE_Creation_Strategy< SVC_HANDLER >::~ACE_Creation_Strategy | ( | void | ) | [inline, virtual] |
ACE_INLINE int ACE_Creation_Strategy< SVC_HANDLER >::open | ( | ACE_Thread_Manager * | thr_mgr = 0 , |
|
ACE_Reactor * | reactor = ACE_Reactor::instance () | |||
) | [inline] |
An ACE_Thread_Manager is useful when creating active objects and the ACE_Reactor is used to initialize the service handler's reactor.
int ACE_Creation_Strategy< SVC_HANDLER >::make_svc_handler | ( | SVC_HANDLER *& | sh | ) | [inline, virtual] |
Create a SVC_HANDLER with the appropriate creation strategy. The default behavior of this method is to make a new SVC_HANDLER if sh == 0 (passing in the <Thread_Manager>), else sh is unchanged. Returns -1 on failure, else 0.
Reimplemented in ACE_Singleton_Strategy< SVC_HANDLER >, ACE_DLL_Strategy< SVC_HANDLER >, and ACE_NOOP_Creation_Strategy< SVC_HANDLER >.
void ACE_Creation_Strategy< SVC_HANDLER >::dump | ( | void | ) | const [inline] |
Dump the state of an object.
Reimplemented in ACE_Singleton_Strategy< SVC_HANDLER >, and ACE_DLL_Strategy< SVC_HANDLER >.
ACE_Creation_Strategy< SVC_HANDLER >::ACE_ALLOC_HOOK_DECLARE |
Declare the dynamic allocation hooks.
Reimplemented in ACE_Singleton_Strategy< SVC_HANDLER >, and ACE_DLL_Strategy< SVC_HANDLER >.
ACE_Thread_Manager* ACE_Creation_Strategy< SVC_HANDLER >::thr_mgr_ [protected] |
Pointer to a thread manager.
ACE_Reactor* ACE_Creation_Strategy< SVC_HANDLER >::reactor_ [protected] |
Pointer to an ACE_Reactor.