EGS Brachy
An egs++ user code for rapid brachytherapy calculations
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations
/Users/marc/Developer/EGSnrc/HEN_HOUSE/user_codes/egs_brachy/egs_brachy/pubsub.h File Reference

A simple pub/sub module to allow various egs_brachy classes to subscribe to particle events. More...

#include <list>
#include <string>
#include <map>
Include dependency graph for pubsub.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Subscriber
 
class  Publisher
 

Typedefs

typedef pair< bool, EB_MessageEBSendMessage
 

Enumerations

enum  EB_Message {
  NEW_HISTORY , PARTICLE_INITIALIZED , PARTICLE_TAKING_STEP , PARTICLE_TOOK_STEP ,
  PARTICLE_ESCAPING_SOURCE , PARTICLE_ESCAPED_SOURCE , PARTICLE_ESCAPING_GEOM , PARTICLE_ESCAPED_GEOM ,
  PHOTON_SCATTER_EVENT , NON_SOURCE_PHOTON_SCATTER_EVENT
}
 

Detailed Description

A simple pub/sub module to allow various egs_brachy classes to subscribe to particle events.

Adapted from http://www.cs.sjsu.edu/~pearce/modules/patterns/events/pubsubimp.htm

Definition in file pubsub.h.

Typedef Documentation

◆ EBSendMessage

typedef pair<bool, EB_Message> EBSendMessage

Definition at line 69 of file pubsub.h.

Enumeration Type Documentation

◆ EB_Message

enum EB_Message
Enumerator
NEW_HISTORY 
PARTICLE_INITIALIZED 
PARTICLE_TAKING_STEP 
PARTICLE_TOOK_STEP 
PARTICLE_ESCAPING_SOURCE 
PARTICLE_ESCAPED_SOURCE 
PARTICLE_ESCAPING_GEOM 
PARTICLE_ESCAPED_GEOM 
PHOTON_SCATTER_EVENT 
NON_SOURCE_PHOTON_SCATTER_EVENT 

Definition at line 54 of file pubsub.h.