ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
Public Member Functions | Protected Attributes | List of all members
DataHandling::AtSimpleType< T > Class Template Reference

Subject for any simple type. More...

#include <AtDataSubject.h>

Inheritance diagram for DataHandling::AtSimpleType< T >:
Inheritance graph
[legend]
Collaboration diagram for DataHandling::AtSimpleType< T >:
Collaboration graph
[legend]

Public Member Functions

 AtSimpleType (T data)
 
Get () const
 
void Set (T data, bool notify=true)
 
- Public Member Functions inherited from DataHandling::AtSubject
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

fData
 

Additional Inherited Members

- Protected Member Functions inherited from DataHandling::AtSubject
 AtSubject ()=default
 

Detailed Description

template<typename T>
class DataHandling::AtSimpleType< T >

Subject for any simple type.

Assumes == and copy asignment operator do something reasonable.

Definition at line 51 of file AtDataSubject.h.

Constructor & Destructor Documentation

◆ AtSimpleType()

template<typename T >
DataHandling::AtSimpleType< T >::AtSimpleType ( data)
inline

Definition at line 56 of file AtDataSubject.h.

Member Function Documentation

◆ Get()

template<typename T >
T DataHandling::AtSimpleType< T >::Get ( ) const
inline

Definition at line 57 of file AtDataSubject.h.

◆ Set()

template<typename T >
void DataHandling::AtSimpleType< T >::Set ( data,
bool  notify = true 
)
inline

Definition at line 58 of file AtDataSubject.h.

Member Data Documentation

◆ fData

template<typename T >
T DataHandling::AtSimpleType< T >::fData
protected

Definition at line 53 of file AtDataSubject.h.


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