AFIO  v2.00 late alpha
afio_v2_xxx::io_handle::extent_guard Class Reference

RAII holder a locked extent of bytes in a file. More...

#include "io_handle.hpp"

Public Member Functions

constexpr extent_guard ()
 Default constructor.
 
 extent_guard (extent_guard &&o) noexcept
 Move constructor.
 
extent_guardoperator= (extent_guard &&o) noexcept
 Move assign.
 
 operator bool () const noexcept
 True if extent guard is valid.
 
bool operator! () const noexcept
 True if extent guard is invalid.
 
io_handlehandle () const noexcept
 The io_handle to be unlocked.
 
void set_handle (io_handle *h) noexcept
 Sets the io_handle to be unlocked.
 
std::tuple< extent_type, extent_type, bool > extent () const noexcept
 The extent to be unlocked.
 
void unlock () noexcept
 Unlocks the locked extent immediately.
 
void release () noexcept
 Detach this RAII unlocker from the locked state.
 

Friends

class io_handle
 

Detailed Description

RAII holder a locked extent of bytes in a file.


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