CYD-UI
A C++ library for building native graphic user interfaces
Loading...
Searching...
No Matches
cydui::use_context< ContextType > Struct Template Referenceexport

Public Types

using ret_context_type = ContextType
 
using context_type = std::remove_const_t<ContextType>
 

Public Member Functions

 use_context ()=default
 
 use_context (const use_context &other)=delete
 
use_contextoperator= (const use_context &other)=delete
 
 use_context (use_context &&other) noexcept
 
use_contextoperator= (use_context &&other)
 
 ~use_context ()
 
ret_context_typeoperator-> ()
 
ret_context_typeoperator* ()
 
void notify ()
 

Static Public Attributes

static constexpr bool is_readonly = std::is_const_v<ContextType>
 

Friends

struct use_context_delegate
 

Detailed Description

template<typename ContextType>
struct cydui::use_context< ContextType >

Definition at line 71 of file component_contexts.cppm.

Member Typedef Documentation

◆ context_type

template<typename ContextType>
using cydui::use_context< ContextType >::context_type = std::remove_const_t<ContextType>

Definition at line 73 of file component_contexts.cppm.

◆ ret_context_type

template<typename ContextType>
using cydui::use_context< ContextType >::ret_context_type = ContextType

Definition at line 72 of file component_contexts.cppm.

Constructor & Destructor Documentation

◆ use_context() [1/3]

template<typename ContextType>
cydui::use_context< ContextType >::use_context ( )
default
+ Here is the caller graph for this function:

◆ use_context() [2/3]

template<typename ContextType>
cydui::use_context< ContextType >::use_context ( const use_context< ContextType > & other)
delete
+ Here is the call graph for this function:

◆ use_context() [3/3]

template<typename ContextType>
cydui::use_context< ContextType >::use_context ( use_context< ContextType > && other)
inlinenoexcept

Definition at line 84 of file component_contexts.cppm.

+ Here is the call graph for this function:

◆ ~use_context()

template<typename ContextType>
cydui::use_context< ContextType >::~use_context ( )
inline

Definition at line 108 of file component_contexts.cppm.

Member Function Documentation

◆ notify()

template<typename ContextType>
void cydui::use_context< ContextType >::notify ( )
inline

Definition at line 123 of file component_contexts.cppm.

◆ operator*()

template<typename ContextType>
ret_context_type & cydui::use_context< ContextType >::operator* ( )
inline

Definition at line 119 of file component_contexts.cppm.

◆ operator->()

template<typename ContextType>
ret_context_type * cydui::use_context< ContextType >::operator-> ( )
inline

Definition at line 115 of file component_contexts.cppm.

◆ operator=() [1/2]

template<typename ContextType>
use_context & cydui::use_context< ContextType >::operator= ( const use_context< ContextType > & other)
delete
+ Here is the call graph for this function:

◆ operator=() [2/2]

template<typename ContextType>
use_context & cydui::use_context< ContextType >::operator= ( use_context< ContextType > && other)
inline

Definition at line 96 of file component_contexts.cppm.

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ use_context_delegate

template<typename ContextType>
friend struct use_context_delegate
friend

Definition at line 76 of file component_contexts.cppm.

Member Data Documentation

◆ is_readonly

template<typename ContextType>
bool cydui::use_context< ContextType >::is_readonly = std::is_const_v<ContextType>
staticconstexpr

Definition at line 74 of file component_contexts.cppm.


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