momo  3.10
momo::internal::PtrCaster Class Reference

#include <Utility.h>

Static Public Member Functions

template<typename Object >
static uintptr_t ToUInt (Object *ptr) noexcept
 
template<typename ResObject >
static ResObject * FromUInt (uintptr_t intPtr) noexcept
 
template<typename QObject , typename QByte = ConstLike<Byte, QObject>>
static QByte * ToBytePtr (QObject *ptr) noexcept
 
template<typename ResObject , bool isWithinLifetime = false, bool isSingleObject = false, typename QByte , typename QResObject = ConstLike<ResObject, QByte>>
static QResObject * FromBytePtr (QByte *bytePtr) noexcept
 

Member Function Documentation

◆ FromBytePtr()

template<typename ResObject , bool isWithinLifetime = false, bool isSingleObject = false, typename QByte , typename QResObject = ConstLike<ResObject, QByte>>
static QResObject* momo::internal::PtrCaster::FromBytePtr ( QByte *  bytePtr)
inlinestaticnoexcept

◆ FromUInt()

template<typename ResObject >
static ResObject* momo::internal::PtrCaster::FromUInt ( uintptr_t  intPtr)
inlinestaticnoexcept

◆ ToBytePtr()

template<typename QObject , typename QByte = ConstLike<Byte, QObject>>
static QByte* momo::internal::PtrCaster::ToBytePtr ( QObject *  ptr)
inlinestaticnoexcept

◆ ToUInt()

template<typename Object >
static uintptr_t momo::internal::PtrCaster::ToUInt ( Object *  ptr)
inlinestaticnoexcept

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