NSVD Reader  0.0.1
nodamushi::ref< T > Struct Template Reference

raw pointer container.(not managed) More...

#include <refhash.hpp>

Public Member Functions

 ref ()
 
 ref (const T &v)
 
 ref (const ref< T > &r)=default
 
 ref (ref< T > &&r)=default
 
bool operator== (const ref< T > &r) const
 
bool operator== (const T &r) const
 
bool operator== (T &&r) const
 
bool operator== (const T *r) const
 
 operator bool () const
 
const T & operator * () const
 

Public Attributes

const T * t
 

Detailed Description

template<typename T>
struct nodamushi::ref< T >

raw pointer container.(not managed)

Definition at line 20 of file refhash.hpp.

Constructor & Destructor Documentation

◆ ref() [1/4]

template<typename T>
nodamushi::ref< T >::ref ( )
inline

Definition at line 23 of file refhash.hpp.

◆ ref() [2/4]

template<typename T>
nodamushi::ref< T >::ref ( const T &  v)
inline

Definition at line 24 of file refhash.hpp.

◆ ref() [3/4]

template<typename T>
nodamushi::ref< T >::ref ( const ref< T > &  r)
default

◆ ref() [4/4]

template<typename T>
nodamushi::ref< T >::ref ( ref< T > &&  r)
default

Member Function Documentation

◆ operator *()

template<typename T>
const T& nodamushi::ref< T >::operator * ( ) const
inline

Definition at line 53 of file refhash.hpp.

◆ operator bool()

template<typename T>
nodamushi::ref< T >::operator bool ( ) const
inlineexplicit

Definition at line 52 of file refhash.hpp.

◆ operator==() [1/4]

template<typename T>
bool nodamushi::ref< T >::operator== ( const ref< T > &  r) const
inline

Definition at line 28 of file refhash.hpp.

◆ operator==() [2/4]

template<typename T>
bool nodamushi::ref< T >::operator== ( const T &  r) const
inline

Definition at line 34 of file refhash.hpp.

◆ operator==() [3/4]

template<typename T>
bool nodamushi::ref< T >::operator== ( T &&  r) const
inline

Definition at line 40 of file refhash.hpp.

◆ operator==() [4/4]

template<typename T>
bool nodamushi::ref< T >::operator== ( const T *  r) const
inline

Definition at line 46 of file refhash.hpp.

Member Data Documentation

◆ t

template<typename T>
const T* nodamushi::ref< T >::t

Definition at line 22 of file refhash.hpp.


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