Itoyori  v0.0.1
ityr::unique_file_ptr< T > Class Template Reference

#include <unique_file_ptr.hpp>

Public Types

using element_type = T
 
using pointer = element_type *
 
using reference = std::add_lvalue_reference_t< element_type >
 

Public Member Functions

constexpr unique_file_ptr () noexcept
 
 unique_file_ptr (const std::string &fpath, bool mlock=false)
 
 unique_file_ptr (const unique_file_ptr &)=delete
 
unique_file_ptroperator= (const unique_file_ptr &)=delete
 
 unique_file_ptr (std::nullptr_t) noexcept
 
unique_file_ptroperator= (std::nullptr_t) noexcept
 
 unique_file_ptr (unique_file_ptr &&ufp) noexcept
 
unique_file_ptroperator= (unique_file_ptr &&ufp) noexcept
 
template<typename U >
 unique_file_ptr (unique_file_ptr< U > &&ufp) noexcept
 
template<typename U >
unique_file_ptroperator= (unique_file_ptr< U > &&ufp) noexcept
 
 ~unique_file_ptr ()
 
 operator bool () const noexcept
 
pointer get () const noexcept
 
std::size_t size () const noexcept
 
reference operator* () const
 
reference operator[] (std::size_t i) const
 
pointer operator-> () const noexcept
 
pointer release () noexcept
 
void swap (unique_file_ptr< T > ufp)
 

Member Typedef Documentation

◆ element_type

template<typename T >
using ityr::unique_file_ptr< T >::element_type = T

◆ pointer

template<typename T >
using ityr::unique_file_ptr< T >::pointer = element_type*

◆ reference

template<typename T >
using ityr::unique_file_ptr< T >::reference = std::add_lvalue_reference_t<element_type>

Constructor & Destructor Documentation

◆ unique_file_ptr() [1/6]

template<typename T >
constexpr ityr::unique_file_ptr< T >::unique_file_ptr ( )
inlineconstexprnoexcept

◆ unique_file_ptr() [2/6]

template<typename T >
ityr::unique_file_ptr< T >::unique_file_ptr ( const std::string &  fpath,
bool  mlock = false 
)
inlineexplicit

◆ unique_file_ptr() [3/6]

template<typename T >
ityr::unique_file_ptr< T >::unique_file_ptr ( const unique_file_ptr< T > &  )
delete

◆ unique_file_ptr() [4/6]

template<typename T >
ityr::unique_file_ptr< T >::unique_file_ptr ( std::nullptr_t  )
inlinenoexcept

◆ unique_file_ptr() [5/6]

template<typename T >
ityr::unique_file_ptr< T >::unique_file_ptr ( unique_file_ptr< T > &&  ufp)
inlinenoexcept

◆ unique_file_ptr() [6/6]

template<typename T >
template<typename U >
ityr::unique_file_ptr< T >::unique_file_ptr ( unique_file_ptr< U > &&  ufp)
inlinenoexcept

◆ ~unique_file_ptr()

template<typename T >
ityr::unique_file_ptr< T >::~unique_file_ptr ( )
inline

Member Function Documentation

◆ get()

template<typename T >
pointer ityr::unique_file_ptr< T >::get ( ) const
inlinenoexcept

◆ operator bool()

template<typename T >
ityr::unique_file_ptr< T >::operator bool ( ) const
inlineexplicitnoexcept

◆ operator*()

template<typename T >
reference ityr::unique_file_ptr< T >::operator* ( ) const
inline

◆ operator->()

template<typename T >
pointer ityr::unique_file_ptr< T >::operator-> ( ) const
inlinenoexcept

◆ operator=() [1/4]

template<typename T >
unique_file_ptr& ityr::unique_file_ptr< T >::operator= ( const unique_file_ptr< T > &  )
delete

◆ operator=() [2/4]

template<typename T >
unique_file_ptr& ityr::unique_file_ptr< T >::operator= ( std::nullptr_t  )
inlinenoexcept

◆ operator=() [3/4]

template<typename T >
unique_file_ptr& ityr::unique_file_ptr< T >::operator= ( unique_file_ptr< T > &&  ufp)
inlinenoexcept

◆ operator=() [4/4]

template<typename T >
template<typename U >
unique_file_ptr& ityr::unique_file_ptr< T >::operator= ( unique_file_ptr< U > &&  ufp)
inlinenoexcept

◆ operator[]()

template<typename T >
reference ityr::unique_file_ptr< T >::operator[] ( std::size_t  i) const
inline

◆ release()

template<typename T >
pointer ityr::unique_file_ptr< T >::release ( )
inlinenoexcept

◆ size()

template<typename T >
std::size_t ityr::unique_file_ptr< T >::size ( ) const
inlinenoexcept

◆ swap()

template<typename T >
void ityr::unique_file_ptr< T >::swap ( unique_file_ptr< T >  ufp)
inline

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