Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
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

template<class T >
using type = T

Definition at line 122 of file AtomicPosition.hpp.

Constructor & Destructor Documentation

◆ AtomicPosition() [1/3]

template<class T >
AtomicPosition ( T t)
inline

Definition at line 125 of file AtomicPosition.hpp.

◆ AtomicPosition() [2/3]

template<class T >
AtomicPosition ( const AtomicPosition< T > & o)
inline

Definition at line 126 of file AtomicPosition.hpp.

◆ AtomicPosition() [3/3]

template<class T >
AtomicPosition ( AtomicPosition< T > && o)
inline

Definition at line 127 of file AtomicPosition.hpp.

Member Function Documentation

◆ operator=() [1/2]

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

Definition at line 128 of file AtomicPosition.hpp.

◆ operator=() [2/2]

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

Definition at line 132 of file AtomicPosition.hpp.

◆ add()

template<class T >
void add ( type other)
inline

Definition at line 137 of file AtomicPosition.hpp.

◆ get()

template<class T >
type get ( ) const
inline

Definition at line 142 of file AtomicPosition.hpp.

◆ set()

template<class T >
void set ( type other)
inline

Definition at line 149 of file AtomicPosition.hpp.

◆ xchg()

template<class T >
type xchg ( type other)
inline

Definition at line 154 of file AtomicPosition.hpp.

◆ add_isr()

template<class T >
void add_isr ( type other)
inline

Definition at line 162 of file AtomicPosition.hpp.

Member Data Documentation

◆ value

template<class T >
volatile type value

Definition at line 123 of file AtomicPosition.hpp.


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