WYSWYG editor for JUCE GUIs including Visualisers
Loading...
Searching...
No Matches
AtomicValueAttachment< T > Class Template Reference

The AtomicValueAttachment allows to read from a Value in a thread safe manner. More...

#include <foleys_AtomicValueAttachment.h>

Inherits Listener.

Public Member Functions

 AtomicValueAttachment ()
 
void attachToValue (const juce::Value &value)
 Let the attachment refer to the value.
 
get () const
 Return the current value of the property.
 
void set (T value)
 

Detailed Description

template<typename T>
class foleys::AtomicValueAttachment< T >

The AtomicValueAttachment allows to read from a Value in a thread safe manner.

You attach to a Value and call get() to read the current value.

Constructor & Destructor Documentation

◆ AtomicValueAttachment()

template<typename T >
AtomicValueAttachment ( )

Member Function Documentation

◆ attachToValue()

template<typename T >
void attachToValue ( const juce::Value & value)

Let the attachment refer to the value.

◆ get()

template<typename T >
T get ( ) const

Return the current value of the property.

◆ set()

template<typename T >
void set ( T value)

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