nngn
Loading...
Searching...
No Matches
nngn::pointer_flag< T > Class Template Reference

#include <pointer_flag.h>

Public Member Functions

 pointer_flag ()=default
 
constexpr pointer_flag (T *p)
 
Tget ()
 
bool flag ()
 
void set_flag (bool b)
 

Private Member Functions

auto to_uint () const
 

Private Attributes

Tp = nullptr
 

Static Private Attributes

static constexpr uintptr_t MASK = 0b1
 

Constructor & Destructor Documentation

◆ pointer_flag() [1/2]

template<typename T >
nngn::pointer_flag< T >::pointer_flag ( )
default

◆ pointer_flag() [2/2]

template<typename T >
nngn::pointer_flag< T >::pointer_flag ( T * p)
inlineexplicitconstexpr
Here is the call graph for this function:

Member Function Documentation

◆ flag()

template<typename T >
bool nngn::pointer_flag< T >::flag ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get()

template<typename T >
T * nngn::pointer_flag< T >::get ( )

◆ set_flag()

template<typename T >
void nngn::pointer_flag< T >::set_flag ( bool b)
inline

◆ to_uint()

template<typename T >
auto nngn::pointer_flag< T >::to_uint ( ) const
inlineprivate
Here is the caller graph for this function:

Member Data Documentation

◆ MASK

template<typename T >
uintptr_t nngn::pointer_flag< T >::MASK = 0b1
staticconstexprprivate

◆ p

template<typename T >
T* nngn::pointer_flag< T >::p = nullptr
private

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