Control Surface stm32
MIDI Control Surface library for Arduino
Public Types | Public Member Functions | Public Attributes | List of all members
AtomicPosition< T > Struct Template Reference

#include <Submodules/Encoder/AtomicPosition.hpp>

Detailed Description

template<class T>
struct AtomicPosition< T >

Definition at line 121 of file AtomicPosition.hpp.

+ Collaboration diagram for AtomicPosition< T >:

Public Types

using type = T
 

Public Member Functions

 AtomicPosition (T t)
 
 AtomicPosition (const AtomicPosition &o)
 
 AtomicPosition (AtomicPosition &&o)
 
AtomicPositionoperator= (const AtomicPosition &o)
 
AtomicPositionoperator= (AtomicPosition &&o)
 
void add (type other)
 
type get () const
 
void set (type other)
 
type xchg (type other)
 
void add_isr (type other)
 

Public Attributes

volatile type value
 

Member Typedef Documentation

◆ type

using type = T

Definition at line 122 of file AtomicPosition.hpp.

Constructor & Destructor Documentation

◆ AtomicPosition() [1/3]

AtomicPosition ( t)
inline

Definition at line 125 of file AtomicPosition.hpp.

◆ AtomicPosition() [2/3]

AtomicPosition ( const AtomicPosition< T > &  o)
inline

Definition at line 126 of file AtomicPosition.hpp.

◆ AtomicPosition() [3/3]

AtomicPosition ( AtomicPosition< T > &&  o)
inline

Definition at line 127 of file AtomicPosition.hpp.

Member Function Documentation

◆ operator=() [1/2]

AtomicPosition & operator= ( const AtomicPosition< T > &  o)
inline

Definition at line 128 of file AtomicPosition.hpp.

◆ operator=() [2/2]

AtomicPosition & operator= ( AtomicPosition< T > &&  o)
inline

Definition at line 132 of file AtomicPosition.hpp.

◆ add()

void add ( type  other)
inline

Definition at line 137 of file AtomicPosition.hpp.

◆ get()

type get ( ) const
inline

Definition at line 142 of file AtomicPosition.hpp.

◆ set()

void set ( type  other)
inline

Definition at line 149 of file AtomicPosition.hpp.

◆ xchg()

type xchg ( type  other)
inline

Definition at line 154 of file AtomicPosition.hpp.

◆ add_isr()

void add_isr ( type  other)
inline

Definition at line 162 of file AtomicPosition.hpp.

Member Data Documentation

◆ value

volatile type value

Definition at line 123 of file AtomicPosition.hpp.


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