24 #ifndef STORAGE_SWAP_H 25 #define STORAGE_SWAP_H 28 #include "storage/Filesystems/BlkFilesystem.h" 66 const Impl& get_impl()
const;
68 virtual Swap* clone()
const override;
Class to represent a swap filesystem in the devicegraph.
Definition: Swap.h:37
The main container of the libstorage-ng.
Definition: Devicegraph.h:169
Definition: BlkFilesystem.h:42
Swap * to_swap(Device *device)
Converts pointer to Device to pointer to Swap.
An abstract base class for storage devices.
Definition: Device.h:81
bool is_swap(const Device *device)
Checks whether device points to an Swap.
static Swap * create(Devicegraph *devicegraph)
Create a device of type Swap.
static std::vector< Swap * > get_all(Devicegraph *devicegraph)
Get all Swaps.
The storage namespace.
Definition: Actiongraph.h:38