Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::Channel< T >::Unlocker< Ptr > Class Template Reference

#include <src/libslic3r/Channel.hpp>

+ Collaboration diagram for Slic3r::Channel< T >::Unlocker< Ptr >:

Public Member Functions

 Unlocker (UniqueLock lock)
 
 Unlocker (const Unlocker &other) noexcept
 
 Unlocker (Unlocker &&other) noexcept
 
Unlockeroperator= (const Unlocker &other)=delete
 
Unlockeroperator= (Unlocker &&other)
 
void operator() (Ptr *)
 

Private Attributes

UniqueLock m_lock
 

Detailed Description

template<class T>
template<class Ptr>
class Slic3r::Channel< T >::Unlocker< Ptr >

Constructor & Destructor Documentation

◆ Unlocker() [1/3]

template<class T >
template<class Ptr >
Slic3r::Channel< T >::Unlocker< Ptr >::Unlocker ( UniqueLock  lock)
inline
23: m_lock(std::move(lock)) {}
UniqueLock m_lock
Definition Channel.hpp:31

◆ Unlocker() [2/3]

template<class T >
template<class Ptr >
Slic3r::Channel< T >::Unlocker< Ptr >::Unlocker ( const Unlocker< Ptr > &  other)
inlinenoexcept
24: m_lock(std::move(other.m_lock)) {} // XXX: done beacuse of MSVC 2013 not supporting init of deleter by move

◆ Unlocker() [3/3]

template<class T >
template<class Ptr >
Slic3r::Channel< T >::Unlocker< Ptr >::Unlocker ( Unlocker< Ptr > &&  other)
inlinenoexcept
25: m_lock(std::move(other.m_lock)) {}

Member Function Documentation

◆ operator()()

template<class T >
template<class Ptr >
void Slic3r::Channel< T >::Unlocker< Ptr >::operator() ( Ptr *  )
inline

◆ operator=() [1/2]

template<class T >
template<class Ptr >
Unlocker & Slic3r::Channel< T >::Unlocker< Ptr >::operator= ( const Unlocker< Ptr > &  other)
delete

◆ operator=() [2/2]

template<class T >
template<class Ptr >
Unlocker & Slic3r::Channel< T >::Unlocker< Ptr >::operator= ( Unlocker< Ptr > &&  other)
inline
27{ m_lock = std::move(other.m_lock); }

References Slic3r::Channel< T >::Unlocker< Ptr >::m_lock.

Member Data Documentation

◆ m_lock

template<class T >
template<class Ptr >
UniqueLock Slic3r::Channel< T >::Unlocker< Ptr >::m_lock
mutableprivate

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