Twitch SDK (Internal)
Public Member Functions | Public Attributes | List of all members
ttv::ClientServerValue< T > Struct Template Reference

#include <coreutilities.h>

Public Member Functions

 ClientServerValue ()
 
 ClientServerValue (const T &val)
 
 operator T ()
 
void operator= (const T &val)
 
bool operator== (const T &other)
 
bool operator!= (const T &other)
 

Public Attributes

client
 
server
 

Detailed Description

template<typename T>
struct ttv::ClientServerValue< T >

Provides double-buffering of a value that is typically needed between 2 threads. It can be used as a single value via overloaded operators and in this case it will return the client value.

Constructor & Destructor Documentation

◆ ClientServerValue() [1/2]

template<typename T>
ttv::ClientServerValue< T >::ClientServerValue ( )
inline

◆ ClientServerValue() [2/2]

template<typename T>
ttv::ClientServerValue< T >::ClientServerValue ( const T &  val)
inline

Member Function Documentation

◆ operator T()

template<typename T>
ttv::ClientServerValue< T >::operator T ( )
inline

◆ operator!=()

template<typename T>
bool ttv::ClientServerValue< T >::operator!= ( const T &  other)
inline

◆ operator=()

template<typename T>
void ttv::ClientServerValue< T >::operator= ( const T &  val)
inline

◆ operator==()

template<typename T>
bool ttv::ClientServerValue< T >::operator== ( const T &  other)
inline

Member Data Documentation

◆ client

template<typename T>
T ttv::ClientServerValue< T >::client

◆ server

template<typename T>
T ttv::ClientServerValue< T >::server

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