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 >
constexpr 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 >
constexpr T * OSM::Internal::TaggedPointer< T >::get ( ) const
inlineconstexpr

Definition at line 24 of file internal.h.

◆ operator bool()

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

Definition at line 28 of file internal.h.

◆ operator!=()

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

Definition at line 30 of file internal.h.

◆ operator<()

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

Definition at line 31 of file internal.h.

◆ operator==()

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

Definition at line 29 of file internal.h.

◆ set()

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

Definition at line 25 of file internal.h.

◆ setTag()

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

Definition at line 27 of file internal.h.

◆ tag()

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

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 Tue Mar 26 2024 11:20:03 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.