OSM::Internal::TaggedPointer

Search for usage in LXR

OSM::Internal::TaggedPointer< T > Class Template Reference

#include <internal.h>

Inheritance diagram for OSM::Internal::TaggedPointer< T >:

Public Member Functions

constexpr TaggedPointer (T *ptr, uint8_t tag)
 
constexpr T * get () const
 
constexpr operator bool () const
 
constexpr bool operator!= (TaggedPointer< T > other) const
 
constexpr bool operator< (TaggedPointer< T > other) const
 
constexpr bool operator== (TaggedPointer< T > other) const
 
constexpr void set (T *data)
 
constexpr void setTag (uint8_t tag)
 
constexpr uint8_t tag () const
 

Detailed Description

template<typename T>
class OSM::Internal::TaggedPointer< T >

Pointer with the lower bits used for compact flag storage.

Definition at line 16 of file internal.h.

Constructor & Destructor Documentation

◆ TaggedPointer()

template<typename T >
OSM::Internal::TaggedPointer< T >::TaggedPointer ( T * ptr,
uint8_t tag )
inlineexplicitconstexpr

Definition at line 20 of file internal.h.

Member Function Documentation

◆ get()

template<typename T >
T * OSM::Internal::TaggedPointer< T >::get ( ) const
inlinenodiscardconstexpr

Definition at line 24 of file internal.h.

◆ operator bool()

template<typename T >
OSM::Internal::TaggedPointer< T >::operator bool ( ) const
inlinenodiscardconstexpr

Definition at line 28 of file internal.h.

◆ operator!=()

template<typename T >
bool OSM::Internal::TaggedPointer< T >::operator!= ( TaggedPointer< T > other) const
inlinenodiscardconstexpr

Definition at line 30 of file internal.h.

◆ operator<()

template<typename T >
bool OSM::Internal::TaggedPointer< T >::operator< ( TaggedPointer< T > other) const
inlinenodiscardconstexpr

Definition at line 31 of file internal.h.

◆ operator==()

template<typename T >
bool OSM::Internal::TaggedPointer< T >::operator== ( TaggedPointer< T > other) const
inlinenodiscardconstexpr

Definition at line 29 of file internal.h.

◆ set()

template<typename T >
void OSM::Internal::TaggedPointer< T >::set ( T * data)
inlineconstexpr

Definition at line 25 of file internal.h.

◆ setTag()

template<typename T >
void OSM::Internal::TaggedPointer< T >::setTag ( uint8_t tag)
inlineconstexpr

Definition at line 27 of file internal.h.

◆ tag()

template<typename T >
uint8_t OSM::Internal::TaggedPointer< T >::tag ( ) const
inlinenodiscardconstexpr

Definition at line 26 of file internal.h.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:55:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.