WARPXM v1.10.0
Loading...
Searching...
No Matches
wxm::raii_base< T, T, T > Class Template Referenceabstract

#include <raii.h>

Public Member Functions

 raii_base () noexcept=default
 
 raii_base (raii_base &&o) noexcept
 
void swap (raii_base &o) noexcept
 
 raii_base (T d) noexcept
 
release ()
 
T & reset (T p=T())
 
 operator T () noexcept
 
 operator const T () const noexcept
 
T & operator* ()
 
const T & operator* () const
 
get () noexcept
 
const T get () const noexcept
 

Protected Member Functions

virtual void dec (T d)=0
 
virtual void inc (T d)=0
 
raii_baseoperator= (T d)
 
 ~raii_base ()=default
 Child classes need to add reset();.
 

Constructor & Destructor Documentation

◆ ~raii_base()

template<class T >
wxm::raii_base< T, T, T >::~raii_base ( )
protecteddefault

Child classes need to add reset();.

◆ raii_base() [1/3]

template<class T >
wxm::raii_base< T, T, T >::raii_base ( )
defaultnoexcept

◆ raii_base() [2/3]

template<class T >
wxm::raii_base< T, T, T >::raii_base ( raii_base< T, T, T > &&  o)
inlinenoexcept

◆ raii_base() [3/3]

template<class T >
wxm::raii_base< T, T, T >::raii_base ( d)
inlinenoexcept

Member Function Documentation

◆ dec()

template<class T >
virtual void wxm::raii_base< T, T, T >::dec ( d)
protectedpure virtual

◆ get() [1/2]

template<class T >
const T wxm::raii_base< T, T, T >::get ( ) const
inlinenoexcept

◆ get() [2/2]

template<class T >
T wxm::raii_base< T, T, T >::get ( )
inlinenoexcept

◆ inc()

template<class T >
virtual void wxm::raii_base< T, T, T >::inc ( d)
protectedpure virtual

◆ operator const T()

template<class T >
wxm::raii_base< T, T, T >::operator const T ( ) const
inlinenoexcept

◆ operator T()

template<class T >
wxm::raii_base< T, T, T >::operator T ( )
inlinenoexcept

◆ operator*() [1/2]

template<class T >
T & wxm::raii_base< T, T, T >::operator* ( )
inline

◆ operator*() [2/2]

template<class T >
const T & wxm::raii_base< T, T, T >::operator* ( ) const
inline

◆ operator=()

template<class T >
raii_base & wxm::raii_base< T, T, T >::operator= ( d)
inlineprotected

◆ release()

template<class T >
T wxm::raii_base< T, T, T >::release ( )
inline

◆ reset()

template<class T >
T & wxm::raii_base< T, T, T >::reset ( p = T())
inline

◆ swap()

template<class T >
void wxm::raii_base< T, T, T >::swap ( raii_base< T, T, T > &  o)
inlinenoexcept

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