ipcq 0.12.0
Loading...
Searching...
No Matches
ipcq::detail::ShmRemover< ShmTraits > Class Template Reference

Small helper that removes shared memory, to make ShmControl exception-safe with RAII. More...

#include <shm.hpp>

Public Types

enum class  Policy { None = 0 , Destructor = 1 , ConstructorAndDestructor = 2 }
 
using SharedMemoryObject = typename ShmTraits::SharedMemoryObject
 
using MappedRegion = typename ShmTraits::MappedRegion
 

Public Member Functions

 ShmRemover (std::string name, Policy policy)
 
 ShmRemover (ShmRemover &&rhs) noexcept
 
ShmRemover & operator= (ShmRemover &&rhs) noexcept
 
 ~ShmRemover () noexcept
 

Detailed Description

template<class ShmTraits>
class ipcq::detail::ShmRemover< ShmTraits >

Small helper that removes shared memory, to make ShmControl exception-safe with RAII.

Definition at line 237 of file shm.hpp.

Member Typedef Documentation

◆ MappedRegion

template<class ShmTraits>
using ipcq::detail::ShmRemover< ShmTraits >::MappedRegion = typename ShmTraits::MappedRegion

Definition at line 240 of file shm.hpp.

◆ SharedMemoryObject

template<class ShmTraits>
using ipcq::detail::ShmRemover< ShmTraits >::SharedMemoryObject = typename ShmTraits::SharedMemoryObject

Definition at line 239 of file shm.hpp.

Member Enumeration Documentation

◆ Policy

template<class ShmTraits>
enum class ipcq::detail::ShmRemover::Policy
strong
Enumerator
None 
Destructor 
ConstructorAndDestructor 

Definition at line 242 of file shm.hpp.

Constructor & Destructor Documentation

◆ ShmRemover() [1/2]

template<class ShmTraits>
ipcq::detail::ShmRemover< ShmTraits >::ShmRemover ( std::string name,
Policy policy )
inline

Definition at line 243 of file shm.hpp.

◆ ShmRemover() [2/2]

template<class ShmTraits>
ipcq::detail::ShmRemover< ShmTraits >::ShmRemover ( ShmRemover< ShmTraits > && rhs)
inlinenoexcept

Definition at line 248 of file shm.hpp.

◆ ~ShmRemover()

template<class ShmTraits>
ipcq::detail::ShmRemover< ShmTraits >::~ShmRemover ( )
inlinenoexcept

Definition at line 262 of file shm.hpp.

Member Function Documentation

◆ operator=()

template<class ShmTraits>
ShmRemover & ipcq::detail::ShmRemover< ShmTraits >::operator= ( ShmRemover< ShmTraits > && rhs)
inlinenoexcept

Definition at line 254 of file shm.hpp.


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