23 #ifndef STORAGE_SWAP_H 24 #define STORAGE_SWAP_H 27 #include "storage/Filesystems/BlkFilesystem.h" 43 static std::vector<Swap*> get_all(
Devicegraph* devicegraph);
44 static std::vector<const Swap*> get_all(
const Devicegraph* devicegraph);
51 const Impl& get_impl()
const;
53 virtual Swap* clone()
const override;
Class to represent a swap filesystem in the devicegraph.
Definition: Swap.h:36
The master container of the libstorage.
Definition: Devicegraph.h:153
Definition: BlkFilesystem.h:42
Swap * to_swap(Device *device)
Converts pointer to Device to pointer to Swap.
An abstract base class of storage devices, and a vertex in the Devicegraph.
Definition: Device.h:75
bool is_swap(const Device *device)
Checks whether device points to an Swap.
The storage namespace.
Definition: Actiongraph.h:37