Monado OpenXR Runtime
Loading...
Searching...
No Matches
xrt::util::FrameServerBase< T, functions > Class Template Reference

CRTP glue wrapper for xrt_fs. More...

#include <glue/g_frameserver.hpp>

Public Member Functions

const T & derived () const noexcept
 
T & derived () noexcept
 
const xrt_fs * getXFS () const noexcept
 
xrt_fs * getXFS () noexcept
 

Static Public Member Functions

static const T * fromXFS (const xrt_fs *xfs) noexcept
 
static T * fromXFS (xrt_fs *xfs) noexcept
 

Detailed Description

template<class T, FrameServerFunctions functions>
class xrt::util::FrameServerBase< T, functions >

CRTP glue wrapper for xrt_fs.

Relies on standard layout to recover the derived object from the C struct, and has some requirements and limitations because of that. See C++ glue wrappers for the guide and conventions for these wrappers.

xrt_fs has no destroy function, a frameserver is instead destroyed through a xrt_frame_node added to a xrt_frame_context, see FrameNodeBase.

The identifying fields (name, product, manufacturer, serial and source_id) are zeroed and are to be filled in by the derived class via getXFS.


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