openMSX
Public Member Functions | Public Attributes | List of all members
openmsx::PersistentElementBase< C, T > Struct Template Reference

#include <ImGuiPartInterface.hh>

Inheritance diagram for openmsx::PersistentElementBase< C, T >:
Inheritance graph
[legend]
Collaboration diagram for openmsx::PersistentElementBase< C, T >:
Collaboration graph
[legend]

Public Member Functions

constexpr PersistentElementBase (zstring_view name_, T C::*p_)
 
T & get (C &c) const
 

Public Attributes

zstring_view name
 
T C::* p
 

Detailed Description

template<typename C, typename T>
struct openmsx::PersistentElementBase< C, T >

Definition at line 36 of file ImGuiPartInterface.hh.

Constructor & Destructor Documentation

◆ PersistentElementBase()

template<typename C , typename T >
constexpr openmsx::PersistentElementBase< C, T >::PersistentElementBase ( zstring_view  name_,
T C::*  p_ 
)
inlineconstexpr

Definition at line 37 of file ImGuiPartInterface.hh.

Member Function Documentation

◆ get()

template<typename C , typename T >
T & openmsx::PersistentElementBase< C, T >::get ( C c) const
inline

Definition at line 43 of file ImGuiPartInterface.hh.

References openmsx::PersistentElementBase< C, T >::p.

Member Data Documentation

◆ name

template<typename C , typename T >
zstring_view openmsx::PersistentElementBase< C, T >::name

Definition at line 40 of file ImGuiPartInterface.hh.

◆ p

template<typename C , typename T >
T C::* openmsx::PersistentElementBase< C, T >::p

Definition at line 41 of file ImGuiPartInterface.hh.

Referenced by openmsx::PersistentElementBase< C, T >::get().


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