LuciadCPillar C# 2023.1.04
Luciad.Utils.Observable< T > Class Template Reference

This class makes it possible to hold and observe a value that can change over time. More...

Public Member Functions

 Observable (T initialValue)
 Constructs the observable with an initial value. More...
 
void AddCallback (IInvalidationCallback callback)
 Adds a callback that is notified when setValue is called. More...
 
void RemoveCallback (IInvalidationCallback callback)
 Remove the given callback. More...
 

Static Public Member Functions

static Observable< T > Create (T initialValue)
 Creates a new Observable with the given initial value. More...
 

Properties

Value [get, set]
 

Detailed Description

This class makes it possible to hold and observe a value that can change over time.

T

the type to hold

2022.0

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::Observable.

Constructor & Destructor Documentation

◆ Observable()

Luciad.Utils.Observable< T >.Observable ( initialValue)
inline

Constructs the observable with an initial value.

initialValue

the initial value.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::Observable::Observable.

Member Function Documentation

◆ AddCallback()

void Luciad.Utils.Observable< T >.AddCallback ( IInvalidationCallback  callback)
inline

Adds a callback that is notified when setValue is called.

callback

a callback

luciad::InvalidArgumentException

when the call back is already added.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::Observable::addCallback.

◆ Create()

Luciad.Utils.Observable< T > Luciad.Utils.Observable< T >.Create ( initialValue)
inlinestatic

Creates a new Observable with the given initial value.

initialValue

the initial value.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::Observable::create.

◆ RemoveCallback()

void Luciad.Utils.Observable< T >.RemoveCallback ( IInvalidationCallback  callback)
inline

Remove the given callback.

callback

a callback

luciad::InvalidArgumentException

when the call back is not known.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::Observable::removeCallback.

Property Documentation

◆ Value

T Luciad.Utils.Observable< T >.Value
getset