Seastar
High performance C++ framework for concurrent servers
Public Member Functions | Protected Attributes | List of all members
seastar::layered_file_impl Class Reference

Detailed Description

Base class for layered file implementations.

A layered file implementation implements file_impl virtual functions such as dma_read() by forwarding them to another, existing file called the underlying file. This base class simplifies construction of layered files by performing standard tasks such as setting up the file alignment. Actual implementation of the I/O methods is left for the derived class.

#include <seastar/core/layered_file.hh>

Inheritance diagram for seastar::layered_file_impl:

Public Member Functions

 layered_file_impl (file underlying_file) noexcept
 
fileunderlying_file () noexcept
 The underlying file which can be used to back I/O methods.
 
const fileunderlying_file () const noexcept
 The underlying file which can be used to back I/O methods.
 

Protected Attributes

file _underlying_file
 

Constructor & Destructor Documentation

◆ layered_file_impl()

seastar::layered_file_impl::layered_file_impl ( file  underlying_file)
inlineexplicitnoexcept

Constructs a layered file. This sets up the underlying_file() method and initializes alignment constants to be the same as the underlying file.


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