CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::SyncedValue Class Reference

#include <cxSyncedValue.h>

Inheritance diagram for cx::SyncedValue:

Signals

void changed ()
 

Public Member Functions

 SyncedValue (QVariant val=QVariant())
 
void set (QVariant val)
 
QVariant get () const
 
template<class T >
value () const
 

Static Public Member Functions

static SyncedValuePtr create (QVariant val=QVariant())
 

Detailed Description

A value intended for sharing between several objects

Use the changed() signal to listen for changes made by others.

Definition at line 30 of file cxSyncedValue.h.

Constructor & Destructor Documentation

cx::SyncedValue::SyncedValue ( QVariant  val = QVariant())

Definition at line 17 of file cxSyncedValue.cpp.

Member Function Documentation

void cx::SyncedValue::changed ( )
signal
SyncedValuePtr cx::SyncedValue::create ( QVariant  val = QVariant())
static

Definition at line 21 of file cxSyncedValue.cpp.

QVariant cx::SyncedValue::get ( ) const

Definition at line 32 of file cxSyncedValue.cpp.

void cx::SyncedValue::set ( QVariant  val)

Definition at line 25 of file cxSyncedValue.cpp.

template<class T >
T cx::SyncedValue::value ( ) const
inline

Definition at line 39 of file cxSyncedValue.h.


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