GET library
|
#include <GETProcessLink.hh>
Public Member Functions | |
Constructors, affectation, destructor | |
GETProcessLink (GETProcess *proc=NULL, bool local=true) | |
virtual | ~GETProcessLink () |
Associated data functions | |
virtual void | SetProcess (GETProcess *proc, bool local=true) |
virtual void | SetLocalProcess (GETProcess *proc) |
virtual void | SetExternalProcess (GETProcess *proc) |
const GETProcess * | GetProcess () const |
GETProcess * | GetProcess () |
bool | IsLocal () const |
bool | IsDefined () const |
virtual void | InitProcess (u_int n, double dt) |
virtual void | RemoveProcess () |
ROOT related functions | |
ClassDef (GETProcessLink, 0) | |
Protected Attributes | |
bool | is_local |
Indicate whether the data is defined locally or externally. | |
GETProcess * | process_ptr |
Pointer to associated data. | |
Private Member Functions | |
GObject (GETProcessLink) | |
This class is used to connect processes to GET core objects. It defines whether the process is defined individually (local data) or globally (external data).
If the data is defined externally, it is just a pointer to that data, and the corresponding object is fully managed by calling code (the data object should exist as long as it is used by the object it is associated to requires it...).
If the data is defined locally, then the pointer is adopted, and the data object is deleted when modified or when the class is deleted.
GETProcessLink::GETProcessLink | ( | GETProcess * | proc = NULL , |
bool | local = true |
||
) |
Constructor (see SetProcess function for arguments description).
proc | associated process pointer |
local | set whether the data is defined locally or externally |
References is_local, process_ptr, and SetProcess().
|
virtual |
Destructor.
References RemoveProcess().
GETProcessLink::ClassDef | ( | GETProcessLink | , |
0 | |||
) |
for use within ROOT.
|
inline |
Return the associated process pointer.
References process_ptr.
Referenced by GETProcessSerie::AddProcess(), GETObject::GetFilter(), GETObject::GetNoiseIn(), GETObject::GetNoiseOut(), GETObject::GetOutputCorrection(), and GETObject::GetResponse().
|
inline |
Return the associated process pointer.
References process_ptr.
|
private |
Macro from GCpp library that defines the following functions:
|
inlinevirtual |
Initialization of the process, to adapt it to sampling parameters (for internal result sample). It defines the internal sample dimension for the process.
n | sampling size of the function |
dt | sampling time step |
References GETProcess::Init(), and process_ptr.
Referenced by GETObject::InitLocalData().
|
inline |
Return whether the associated process is defined (non NULL pointer).
References process_ptr.
Referenced by GETChannel::ApplyOutputCorrection(), GETChannel::ApplyOutputNoise(), GETObject::InitLocalData(), GETChannel::ProcessOutFromTst(), GETChannel::ProcessOutputCorrection(), and GETChannel::ProcessRecFromOut().
|
inline |
Return whether the associated process is defined locally.
References is_local.
Referenced by GETObject::InitLocalData().
|
virtual |
Function that removes the associated data: if the data is local it is deleted, else the pointer is simply set to NULL.
References is_local, and process_ptr.
Referenced by GETObject::RemoveOutputCorrection(), SetProcess(), and ~GETProcessLink().
|
inlinevirtual |
Set associated process, defined externally.
proc | associated process pointer |
References SetProcess().
Referenced by GETAGet::SetFilter(), GETObject::SetFilter(), GETAGet::SetNoiseIn(), GETObject::SetNoiseIn(), GETAGet::SetNoiseOut(), GETObject::SetNoiseOut(), GETAGet::SetOutputCorrection(), GETObject::SetOutputCorrection(), GETAGet::SetResponse(), and GETObject::SetResponse().
|
inlinevirtual |
Set associated process, defined locally (pointer is adopted).
proc | associated process pointer |
References SetProcess().
Referenced by GETAGet::SetFilter(), GETObject::SetFilter(), GETAGet::SetNoiseIn(), GETObject::SetNoiseIn(), GETAGet::SetNoiseOut(), GETObject::SetNoiseOut(), GETAGet::SetOutputCorrection(), GETObject::SetOutputCorrection(), GETObject::SetOutputCorrectionList(), GETAGet::SetResponse(), and GETObject::SetResponse().
|
inlinevirtual |
Set associated process. If it is set locally, the pointer is adopted and will be deleted with current class instance. If previous data was defined, it is cleared first.
proc | associated process pointer |
local | set whether the data is defined locally or externally |
References is_local, process_ptr, and RemoveProcess().
Referenced by GETProcessLink(), SetExternalProcess(), and SetLocalProcess().