ReXGlue SDK
Loading...
Searching...
No Matches
rex::kernel::Pinned< T > Class Template Reference

#include <rex/kernel/object/object_pin.h>

Public Member Functions

 Pinned (ObjectPin pin)
 operator bool () const noexcept
T * operator-> () const noexcept
T & operator* () const noexcept
X_HANDLE GetHandle () const noexcept
u32 GetGuestAddress () const
const ObjectPin & GetSlot () const noexcept

Detailed Description

template<typename T>
class rex::kernel::Pinned< T >

A pin that exposes the object struct of a known type.

Template Parameters
TThe object struct the KernelObject is expected to hold, or an interface it implements.

Constructor & Destructor Documentation

◆ Pinned()

template<typename T>
rex::kernel::Pinned< T >::Pinned ( ObjectPin pin)
inlineexplicit

Views an object pin as type T. The view is empty when the pin holds another type.

Parameters
pinThe object pin, moved in.

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