ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
|
Subject for any simple type. More...
#include <AtDataSubject.h>
Public Member Functions | |
AtSimpleType (T data) | |
T | Get () const |
void | Set (T data, bool notify=true) |
![]() | |
virtual | ~AtSubject ()=default |
void | Attach (AtObserver *observer) |
Attach an observer to get notified when this subject changes. More... | |
void | Detach (AtObserver *observer) |
Detach an observer to stop getting notified when this subject changes. More... | |
void | Notify () |
Notify all attached subjects that something changed. More... | |
Protected Attributes | |
T | fData |
Additional Inherited Members | |
![]() | |
AtSubject ()=default | |
Subject for any simple type.
Assumes ==
and copy asignment operator do something reasonable.
Definition at line 51 of file AtDataSubject.h.
|
inline |
Definition at line 56 of file AtDataSubject.h.
|
inline |
Definition at line 57 of file AtDataSubject.h.
|
inline |
Definition at line 58 of file AtDataSubject.h.
|
protected |
Definition at line 53 of file AtDataSubject.h.