15 #ifndef STXXL_IO_REQUEST_HEADER
16 #define STXXL_IO_REQUEST_HEADER
34 #define BLOCK_ALIGN 4096
70 void check_alignment()
const;
72 std::ostream & print(std::ostream& out)
const;
98 if (get_reference_count() < 2)
99 check_nref_failed(after);
103 void check_nref_failed(
bool after);
108 return req.
print(out);
118 #endif // !STXXL_IO_REQUEST_HEADER
friend std::ostream & operator<<(std::ostream &os, const uint_pair &a)
make a uint_pair outputtable via iostreams, using unsigned long long.
static const int bytes
number of bytes in uint_pair
Completion handler class (Loki-style).
void error_occured(const std::string &msg)
Inform the request object that an error occurred during the I/O execution.
counting_ptr< request > request_ptr
A reference counting pointer for request.
Provides reference counting abilities for use with counting_ptr with mutex locking.
std::auto_ptr< _Tp > result
offset_type get_offset() const
compat_unique_ptr< stxxl::io_error >::result error
Defines interface of file.
void check_nref(bool after=false)
#define STXXL_BEGIN_NAMESPACE
completion_handler on_complete
size_type get_size() const
void check_errors()
Rises an exception if there were error with the I/O.
stxxl::internal_size_type size_type
Functional interface of a request.
request_type get_type() const
std::ostream & print(std::ostream &out) const
Dumps properties of a request.
void * get_buffer() const
stxxl::external_size_type offset_type
Request with basic properties like file and offset.
void error_occured(const char *msg)
Inform the request object that an error occurred during the I/O execution.
#define STXXL_END_NAMESPACE