Scorum
Public Member Functions | List of all members
scorum::utils::ref< T > Class Template Reference

#include <ref.hpp>

Public Member Functions

 ref ()=default
 
 ref (T &inst)
 
 ref (const ref &)=default
 
 ref (ref &&)=default
 
refoperator= (const ref &)=default
 
refoperator= (ref &&)=default
 
 operator T& () const
 
T & get () const
 

Detailed Description

template<typename T>
class scorum::utils::ref< T >

Definition at line 13 of file ref.hpp.

Constructor & Destructor Documentation

◆ ref() [1/4]

template<typename T >
scorum::utils::ref< T >::ref ( )
default

◆ ref() [2/4]

template<typename T >
scorum::utils::ref< T >::ref ( T &  inst)
inline

Definition at line 18 of file ref.hpp.

◆ ref() [3/4]

template<typename T >
scorum::utils::ref< T >::ref ( const ref< T > &  )
default

◆ ref() [4/4]

template<typename T >
scorum::utils::ref< T >::ref ( ref< T > &&  )
default

Member Function Documentation

◆ get()

template<typename T >
T& scorum::utils::ref< T >::get ( ) const
inline

Definition at line 32 of file ref.hpp.

◆ operator T&()

template<typename T >
scorum::utils::ref< T >::operator T& ( ) const
inline

Definition at line 27 of file ref.hpp.

◆ operator=() [1/2]

template<typename T >
ref& scorum::utils::ref< T >::operator= ( const ref< T > &  )
default

◆ operator=() [2/2]

template<typename T >
ref& scorum::utils::ref< T >::operator= ( ref< T > &&  )
default

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