OpenSWMM Engine  6.0.0-alpha.3
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.3)
Loading...
Searching...
No Matches
openswmm::WriteTask Struct Reference

One item in the IOThread write queue. More...

#include <WriteTask.hpp>

Collaboration diagram for openswmm::WriteTask:

Public Member Functions

 WriteTask ()=default
 
 WriteTask (SimulationSnapshot snap, int seq=0)
 
 WriteTask (WriteTask &&) noexcept=default
 
WriteTaskoperator= (WriteTask &&) noexcept=default
 
 WriteTask (const WriteTask &)=delete
 
WriteTaskoperator= (const WriteTask &)=delete
 

Public Attributes

SimulationSnapshot snapshot
 The snapshot to be written (deep copy of relevant SoA slices).
 
int sequence = 0
 Sequential task index (0-based). Useful for ordering assertions.
 

Detailed Description

One item in the IOThread write queue.

Moved into the queue from the simulation thread; consumed by the IO thread. Ownership of all vector data is transferred with the move, so no copies are made for typical usage.

Constructor & Destructor Documentation

◆ WriteTask() [1/4]

openswmm::WriteTask::WriteTask ( )
default
Here is the caller graph for this function:

◆ WriteTask() [2/4]

openswmm::WriteTask::WriteTask ( SimulationSnapshot snap,
int seq = 0 )
inlineexplicit

◆ WriteTask() [3/4]

openswmm::WriteTask::WriteTask ( WriteTask && )
defaultnoexcept
Here is the call graph for this function:

◆ WriteTask() [4/4]

openswmm::WriteTask::WriteTask ( const WriteTask & )
delete
Here is the call graph for this function:

Member Function Documentation

◆ operator=() [1/2]

WriteTask & openswmm::WriteTask::operator= ( const WriteTask & )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

WriteTask & openswmm::WriteTask::operator= ( WriteTask && )
defaultnoexcept
Here is the call graph for this function:

Member Data Documentation

◆ sequence

int openswmm::WriteTask::sequence = 0

Sequential task index (0-based). Useful for ordering assertions.

◆ snapshot

SimulationSnapshot openswmm::WriteTask::snapshot

The snapshot to be written (deep copy of relevant SoA slices).


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