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)
 
 pointer_flag ()=default
 
constexpr pointer_flag (T *p)
 
Tget ()
 
bool flag ()
 
void set_flag (bool b)
 

Private Member Functions

auto to_uint () const
 
auto to_uint () const
 

Private Attributes

Tp = nullptr
 

Static Private Attributes

static constexpr uintptr_t MASK = 0b1
 

Constructor & Destructor Documentation

◆ pointer_flag() [1/4]

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

◆ pointer_flag() [2/4]

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

◆ pointer_flag() [3/4]

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

◆ pointer_flag() [4/4]

template<typename T >
constexpr nngn::pointer_flag< T >::pointer_flag ( T p)
explicitconstexpr

Member Function Documentation

◆ flag() [1/2]

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:

◆ flag() [2/2]

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

◆ get() [1/2]

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

◆ get() [2/2]

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

◆ set_flag() [1/2]

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

◆ set_flag() [2/2]

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

◆ to_uint() [1/2]

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

◆ to_uint() [2/2]

template<typename T >
auto nngn::pointer_flag< T >::to_uint ( ) const
inlineprivate

Member Data Documentation

◆ MASK

template<typename T >
static constexpr 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 files: