STXXL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stxxl::completion_handler Class Reference

Detailed Description

Completion handler class (Loki-style).

In some situations one needs to execute some actions after completion of an I/O request. In these cases one can use an I/O completion handler - a function object that can be passed as a parameter to asynchronous I/O calls stxxl::file::aread and stxxl::file::awrite .

Definition at line 61 of file completion_handler.h.

+ Collaboration diagram for stxxl::completion_handler:

Public Member Functions

 completion_handler ()
 Construct default, no operation completion handler. More...
 
 completion_handler (const completion_handler &obj)
 Copy constructor. More...
 
template<typename HandlerType >
 completion_handler (const HandlerType &handler)
 Construct a completion handler which calls some function. More...
 
void operator() (request *req)
 Call the enclosed completion handler. More...
 
completion_handleroperator= (const completion_handler &obj)
 Assignment operator. More...
 

Private Attributes

compat_unique_ptr
< completion_handler_impl >
::result 
m_ptr
 

Constructor & Destructor Documentation

stxxl::completion_handler::completion_handler ( )
inline

Construct default, no operation completion handler.

Definition at line 67 of file completion_handler.h.

stxxl::completion_handler::completion_handler ( const completion_handler obj)
inline

Copy constructor.

Definition at line 72 of file completion_handler.h.

template<typename HandlerType >
stxxl::completion_handler::completion_handler ( const HandlerType &  handler)
inline

Construct a completion handler which calls some function.

Definition at line 78 of file completion_handler.h.

Member Function Documentation

void stxxl::completion_handler::operator() ( request req)
inline

Call the enclosed completion handler.

Definition at line 90 of file completion_handler.h.

completion_handler& stxxl::completion_handler::operator= ( const completion_handler obj)
inline

Assignment operator.

Definition at line 83 of file completion_handler.h.

References m_ptr.

Member Data Documentation

compat_unique_ptr<completion_handler_impl>::result stxxl::completion_handler::m_ptr
private

Definition at line 63 of file completion_handler.h.

Referenced by operator=().


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