Stxxl  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
stxxl::completion_handler Class Reference

Completion handler class (Loki-style) More...

#include <completion_handler.h>

List of all members.

Public Member Functions

 completion_handler ()
 completion_handler (const completion_handler &obj)
template<typename handler_type >
 completion_handler (const handler_type &handler__)
completion_handleroperator= (const completion_handler &obj)
void operator() (request *req)

Private Attributes

compat_unique_ptr
< completion_handler_impl >
::result 
sp_impl_

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 . For an example of use see mng/test_mng.cpp

Definition at line 63 of file completion_handler.h.


Constructor & Destructor Documentation

Definition at line 68 of file completion_handler.h.

Definition at line 72 of file completion_handler.h.

template<typename handler_type >
stxxl::completion_handler::completion_handler ( const handler_type &  handler__) [inline]

Definition at line 77 of file completion_handler.h.


Member Function Documentation

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

Definition at line 86 of file completion_handler.h.

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

Definition at line 81 of file completion_handler.h.

References sp_impl_.


Member Data Documentation

compat_unique_ptr<completion_handler_impl>::result stxxl::completion_handler::sp_impl_ [private]

Definition at line 65 of file completion_handler.h.

Referenced by operator=().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines