LLVM 20.0.0git
Public Member Functions | List of all members
llvm::detail::PunnedPointer< Ptr > Struct Template Reference

#include "llvm/ADT/PointerIntPair.h"

Inheritance diagram for llvm::detail::PunnedPointer< Ptr >:
Inheritance graph
[legend]

Public Member Functions

constexpr PunnedPointer (intptr_t i=0)
 
constexpr intptr_t asInt () const
 
constexpr operator intptr_t () const
 
constexpr PunnedPointeroperator= (intptr_t V)
 
PtrgetPointerAddress ()
 
const PtrgetPointerAddress () const
 

Detailed Description

template<typename Ptr>
struct llvm::detail::PunnedPointer< Ptr >

Definition at line 28 of file PointerIntPair.h.

Constructor & Destructor Documentation

◆ PunnedPointer()

template<typename Ptr >
constexpr llvm::detail::PunnedPointer< Ptr >::PunnedPointer ( intptr_t  i = 0)
inlineexplicitconstexpr

Definition at line 37 of file PointerIntPair.h.

Member Function Documentation

◆ asInt()

template<typename Ptr >
constexpr intptr_t llvm::detail::PunnedPointer< Ptr >::asInt ( ) const
inlineconstexpr

◆ getPointerAddress() [1/2]

template<typename Ptr >
Ptr * llvm::detail::PunnedPointer< Ptr >::getPointerAddress ( )
inline

Definition at line 52 of file PointerIntPair.h.

References Ptr.

◆ getPointerAddress() [2/2]

template<typename Ptr >
const Ptr * llvm::detail::PunnedPointer< Ptr >::getPointerAddress ( ) const
inline

Definition at line 53 of file PointerIntPair.h.

References Ptr.

◆ operator intptr_t()

template<typename Ptr >
constexpr llvm::detail::PunnedPointer< Ptr >::operator intptr_t ( ) const
inlineconstexpr

Definition at line 45 of file PointerIntPair.h.

References llvm::detail::PunnedPointer< Ptr >::asInt().

◆ operator=()

template<typename Ptr >
constexpr PunnedPointer & llvm::detail::PunnedPointer< Ptr >::operator= ( intptr_t  V)
inlineconstexpr

Definition at line 47 of file PointerIntPair.h.


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