DABC (Data Acquisition Backbone Core)  2.9.9
Public Member Functions | Data Fields
dabc::DependPair Struct Reference

Keeps dependency between two objects. More...

Public Member Functions

 DependPair ()
 
 DependPair (const DependPair &d)
 
 DependPair (Object *_src, Object *_tgt)
 

Data Fields

int fire
 how to proceed pair 0 - remain, 1 - inform src, 2 - just delete More...
 
Reference src
 reference on object which want to be informed when DependPair::tgt object is deleted More...
 
Objecttgt
 when this object deleted, DependPair::src will be informed More...
 

Detailed Description

Keeps dependency between two objects.

When DependPair::tgt object want to be deleted, ObjectDestroyed() method will be called in DependPair::src object to perform correct cleanup It is supposed that DependPair::src has reference on DependPair::tgt and this reference should be released, otherwise DependPair::tgt object will be not possible to destroy

Definition at line 67 of file Manager.cxx.

Constructor & Destructor Documentation

◆ DependPair() [1/3]

dabc::DependPair::DependPair ( )
inline

Definition at line 72 of file Manager.cxx.

◆ DependPair() [2/3]

dabc::DependPair::DependPair ( Object _src,
Object _tgt 
)
inline

Definition at line 73 of file Manager.cxx.

◆ DependPair() [3/3]

dabc::DependPair::DependPair ( const DependPair d)
inline

Definition at line 74 of file Manager.cxx.

Field Documentation

◆ src

Reference dabc::DependPair::src

reference on object which want to be informed when DependPair::tgt object is deleted

Definition at line 68 of file Manager.cxx.

◆ tgt

Object* dabc::DependPair::tgt

when this object deleted, DependPair::src will be informed

Definition at line 69 of file Manager.cxx.

◆ fire

int dabc::DependPair::fire

how to proceed pair 0 - remain, 1 - inform src, 2 - just delete

Definition at line 70 of file Manager.cxx.


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