CuteHMI - CuteHMI (CuteHMI.2)
cutehmi::MPtr< T, DELETER > Class Template Reference

Members pointer. More...

#include <cutehmi/MPtr.hpp>

Inheritance diagram for cutehmi::MPtr< T, DELETER >:
std::unique_ptr< T, DELETER >

Public Types

typedef T element_type
 
typedef T * pointer
 
typedef const T * const_pointer
 
typedef Parent::deleter_type deleter_type
 
typedef std::add_lvalue_reference< element_type >::type reference
 
typedef std::add_lvalue_reference< typenamestd::add_const< element_type >::type >::type const_reference
 

Public Member Functions

void swap (MPtr< T, DELETER > &x) noexcept
 
const_pointer get () const noexcept
 
pointer get () noexcept
 
const_pointer operator-> () const noexcept
 
pointer operator-> () noexcept
 
reference operator* ()
 
const_reference operator* () const
 

Detailed Description

template<class T, class DELETER>
class cutehmi::MPtr< T, DELETER >

Members pointer.

This class wraps std::unique_ptr and provides opaque interface that forwards const to the member.

Member Typedef Documentation

◆ const_pointer

template<class T , class DELETER >
typedef const T* cutehmi::MPtr< T, DELETER >::const_pointer

◆ const_reference

template<class T , class DELETER >
typedef std::add_lvalue_reference<typenamestd::add_const<element_type>::type>::type cutehmi::MPtr< T, DELETER >::const_reference

◆ deleter_type

template<class T , class DELETER >
typedef Parent::deleter_type cutehmi::MPtr< T, DELETER >::deleter_type

◆ element_type

template<class T , class DELETER >
typedef T cutehmi::MPtr< T, DELETER >::element_type

◆ pointer

template<class T , class DELETER >
typedef T* cutehmi::MPtr< T, DELETER >::pointer

◆ reference

template<class T , class DELETER >
typedef std::add_lvalue_reference<element_type>::type cutehmi::MPtr< T, DELETER >::reference

Member Function Documentation

◆ get() [1/2]

template<class T , class DELETER >
const_pointer cutehmi::MPtr< T, DELETER >::get ( ) const
inlinenoexcept

◆ get() [2/2]

template<class T , class DELETER >
pointer cutehmi::MPtr< T, DELETER >::get ( )
inlinenoexcept

◆ operator*() [1/2]

template<class T , class DELETER >
reference cutehmi::MPtr< T, DELETER >::operator* ( )
inline

◆ operator*() [2/2]

template<class T , class DELETER >
const_reference cutehmi::MPtr< T, DELETER >::operator* ( ) const
inline

◆ operator->() [1/2]

template<class T , class DELETER >
const_pointer cutehmi::MPtr< T, DELETER >::operator-> ( ) const
inlinenoexcept

◆ operator->() [2/2]

template<class T , class DELETER >
pointer cutehmi::MPtr< T, DELETER >::operator-> ( )
inlinenoexcept

◆ swap()

template<class T , class DELETER >
void cutehmi::MPtr< T, DELETER >::swap ( MPtr< T, DELETER > &  x)
inlinenoexcept