![]() |
MODFLOW 6
version 6.8.0.dev0
USGS Modular Hydrologic Model
|
Data Types | |
| type | particleeventsubscriptiontype |
| Subscription to particle events: a procedure to handle the event with an unlimited pointer for storing arbitrary context the handling procedure may reference. More... | |
| type | particleeventdispatchertype |
| Dispatcher for particle events. Consumers subscribe handlers to the dispatcher. Events may be dispatched, with the first handler to handle the event stopping propagation, or broadcast, with all handlers receiving the event. More... | |
| interface | handle_event |
| Event handler interface. Handlers may signal to the dispatching caller whether they have handled the event, but the signal is ignored for broadcasts. More... | |
Functions/Subroutines | |
| subroutine | subscribe (this, handler, context) |
| Add a subscription to the dispatcher. More... | |
| subroutine | prep_event (this, particle, event) |
| Prepare an event for dispatching, loading it with the current state of the particle. For internal use only. More... | |
| subroutine | dispatch (this, particle, event) |
| Dispatch an event for handling. The first subscriber to handle the event stops propagation. More... | |
| subroutine | broadcast (this, particle, event) |
| Broadcast an event to all subscribers so all receive the event and a chance to handle it. More... | |
| subroutine | destroy (this) |
| Destroy the dispatcher. More... | |
|
private |
Definition at line 123 of file ParticleEvents.f90.
|
private |
Definition at line 144 of file ParticleEvents.f90.
| subroutine particleeventsmodule::dispatch | ( | class(particleeventdispatchertype), intent(inout) | this, |
| type(particletype), intent(inout), pointer | particle, | ||
| class(particleeventtype), intent(in), pointer | event | ||
| ) |
Definition at line 97 of file ParticleEvents.f90.
|
private |
Definition at line 64 of file ParticleEvents.f90.
|
private |
Definition at line 47 of file ParticleEvents.f90.