Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
util::wrap_ptr< T > Class Template Reference

Public Types

using element_type = T
using pointer = element_type *
using const_pointer = element_type const *
using reference = element_type &
using const_reference = element_type const &

Public Member Functions

 wrap_ptr (pointer p)
 wrap_ptr (std::unique_ptr< element_type > &&uniq_p)
 wrap_ptr (wrap_ptr &&other)
wrap_ptr & operator= (wrap_ptr &&other) noexcept
template<class V>
wrap_ptr & operator= (std::unique_ptr< V > &&uniq_ptr)
wrap_ptr & operator= (pointer p)
const_reference operator* () const
reference operator* ()
const_pointer operator-> () const
pointer operator-> ()

Detailed Description

template<class T>
class util::wrap_ptr< T >

Definition at line 735 of file utility.h.

Member Typedef Documentation

◆ const_pointer

template<class T>
using util::wrap_ptr< T >::const_pointer = element_type const *

Definition at line 739 of file utility.h.

◆ const_reference

template<class T>
using util::wrap_ptr< T >::const_reference = element_type const &

Definition at line 741 of file utility.h.

◆ element_type

template<class T>
using util::wrap_ptr< T >::element_type = T

Definition at line 737 of file utility.h.

◆ pointer

template<class T>
using util::wrap_ptr< T >::pointer = element_type *

Definition at line 738 of file utility.h.

◆ reference

template<class T>
using util::wrap_ptr< T >::reference = element_type &

Definition at line 740 of file utility.h.

Constructor & Destructor Documentation

◆ wrap_ptr() [1/4]

template<class T>
util::wrap_ptr< T >::wrap_ptr ( )
inline

Definition at line 743 of file utility.h.

◆ wrap_ptr() [2/4]

template<class T>
util::wrap_ptr< T >::wrap_ptr ( pointer p)
inline

Definition at line 748 of file utility.h.

◆ wrap_ptr() [3/4]

template<class T>
util::wrap_ptr< T >::wrap_ptr ( std::unique_ptr< element_type > && uniq_p)
inline

Definition at line 753 of file utility.h.

◆ wrap_ptr() [4/4]

template<class T>
util::wrap_ptr< T >::wrap_ptr ( wrap_ptr< T > && other)
inline

Definition at line 758 of file utility.h.

◆ ~wrap_ptr()

template<class T>
util::wrap_ptr< T >::~wrap_ptr ( )
inline

Definition at line 797 of file utility.h.

Member Function Documentation

◆ operator*() [1/2]

template<class T>
reference util::wrap_ptr< T >::operator* ( )
inline

Definition at line 809 of file utility.h.

◆ operator*() [2/2]

template<class T>
const_reference util::wrap_ptr< T >::operator* ( ) const
inline

Definition at line 805 of file utility.h.

◆ operator->() [1/2]

template<class T>
pointer util::wrap_ptr< T >::operator-> ( )
inline

Definition at line 817 of file utility.h.

◆ operator->() [2/2]

template<class T>
const_pointer util::wrap_ptr< T >::operator-> ( ) const
inline

Definition at line 813 of file utility.h.

◆ operator=() [1/3]

template<class T>
wrap_ptr & util::wrap_ptr< T >::operator= ( pointer p)
inline

Definition at line 786 of file utility.h.

◆ operator=() [2/3]

template<class T>
template<class V>
wrap_ptr & util::wrap_ptr< T >::operator= ( std::unique_ptr< V > && uniq_ptr)
inline

Definition at line 778 of file utility.h.

◆ operator=() [3/3]

template<class T>
wrap_ptr & util::wrap_ptr< T >::operator= ( wrap_ptr< T > && other)
inlinenoexcept

Definition at line 764 of file utility.h.


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