kblib 0.2.3
General utilities library for modern C++
kblib::live_ptr< const mT > Class Template Reference

#include <kblib/memory.h>

Inheritance diagram for kblib::live_ptr< const mT >:
Collaboration diagram for kblib::live_ptr< const mT >:

Public Types

using T = const mT
 
using value_type = T
 

Public Member Functions

 live_ptr ()=default
 
 live_ptr (const live_ptr< T > &o)=default
 
 live_ptr (const live_ptr< mT > &o)
 
 live_ptr (live_ptr< T > &&o) noexcept=default
 
 live_ptr (live_ptr< mT > &&o) noexcept
 
auto operator= (const live_ptr< T > &o) -> live_ptr &=default
 
auto operator= (live_ptr< T > &&o) noexcept -> live_ptr &=default
 
auto operator= (const live_ptr< mT > &o) -> live_ptr &
 
auto operator= (live_ptr< mT > &&o) noexcept -> live_ptr &
 
 live_ptr (const live_wrapper< mT > &o)
 
auto operator= (const live_wrapper< mT > &o) -> live_ptr &
 
 ~live_ptr ()=default
 
- Public Member Functions inherited from kblib::detail_memory::live_ptr_base< live_ptr< const mT > >
auto operator* () noexcept -> T &
 
auto operator* () const noexcept -> const T &
 
auto operator-> () noexcept -> T *
 
auto operator-> () const noexcept -> const T *
 
 operator bool () const noexcept
 
 live_ptr_base () noexcept=default
 
 live_ptr_base (live_wrapper< mT > *p)
 
 live_ptr_base (const live_ptr_base &o)
 
 live_ptr_base (live_ptr_base &&o) noexcept
 
auto operator= (const live_ptr_base &o) noexcept -> live_ptr_base &
 
auto operator= (live_ptr_base &&o) noexcept -> live_ptr_base &
 
auto operator= (const live_ptr< const mT > &o) -> live_ptr< const mT > &
 
auto operator= (live_ptr< const mT > &&o) noexcept -> live_ptr< const mT > &
 
 ~live_ptr_base ()
 

Additional Inherited Members

- Protected Member Functions inherited from kblib::detail_memory::live_ptr_base< live_ptr< const mT > >
auto add () -> void
 
auto rem () -> void
 
auto move (live_ptr< const mT > &o) -> void
 
- Protected Attributes inherited from kblib::detail_memory::live_ptr_base< live_ptr< const mT > >
live_wrapper< mT > * obj
 

Detailed Description

template<typename mT>
class kblib::live_ptr< const mT >

Definition at line 361 of file memory.h.

Member Typedef Documentation

◆ T

template<typename mT >
using kblib::live_ptr< const mT >::T = const mT

Definition at line 366 of file memory.h.

◆ value_type

template<typename mT >
using kblib::live_ptr< const mT >::value_type = T

Definition at line 367 of file memory.h.

Constructor & Destructor Documentation

◆ live_ptr() [1/6]

template<typename mT >
kblib::live_ptr< const mT >::live_ptr ( )
default

◆ live_ptr() [2/6]

template<typename mT >
kblib::live_ptr< const mT >::live_ptr ( const live_ptr< T > &  o)
default

◆ live_ptr() [3/6]

template<typename mT >
kblib::live_ptr< const mT >::live_ptr ( const live_ptr< mT > &  o)
inline

Definition at line 370 of file memory.h.

◆ live_ptr() [4/6]

template<typename mT >
kblib::live_ptr< const mT >::live_ptr ( live_ptr< T > &&  o)
defaultnoexcept

◆ live_ptr() [5/6]

template<typename mT >
kblib::live_ptr< const mT >::live_ptr ( live_ptr< mT > &&  o)
inlinenoexcept

Definition at line 373 of file memory.h.

◆ live_ptr() [6/6]

template<typename mT >
kblib::live_ptr< const mT >::live_ptr ( const live_wrapper< mT > &  o)
inlineexplicit

Definition at line 388 of file memory.h.

◆ ~live_ptr()

template<typename mT >
kblib::live_ptr< const mT >::~live_ptr ( )
default

Member Function Documentation

◆ operator=() [1/5]

template<typename mT >
auto kblib::live_ptr< const mT >::operator= ( const live_ptr< mT > &  o) -> live_ptr&
inline

Definition at line 377 of file memory.h.

◆ operator=() [2/5]

template<typename mT >
auto kblib::live_ptr< const mT >::operator= ( const live_ptr< T > &  o) -> live_ptr &=default
default

◆ operator=() [3/5]

template<typename mT >
auto kblib::live_ptr< const mT >::operator= ( const live_wrapper< mT > &  o) -> live_ptr&
inline

Definition at line 392 of file memory.h.

◆ operator=() [4/5]

template<typename mT >
auto kblib::live_ptr< const mT >::operator= ( live_ptr< mT > &&  o) -> live_ptr&
inlinenoexcept

Definition at line 382 of file memory.h.

◆ operator=() [5/5]

template<typename mT >
auto kblib::live_ptr< const mT >::operator= ( live_ptr< T > &&  o) -> live_ptr &=default
defaultnoexcept

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