![]()  | 
  
    kspaceFirstOrder3D-OMP
    1.2
    
   The C++ implementation of the k-wave toolbox for the time-domain simulation of acoustic wave fields in 3D 
   | 
 
A container for output streams. More...
#include <OutputStreamContainer.h>

Public Member Functions | |
| OutputStreamContainer () | |
| Constructor.  More... | |
| OutputStreamContainer (const OutputStreamContainer &)=delete | |
| Copy constructor not allowed.  | |
| ~OutputStreamContainer () | |
| Destructor.  More... | |
| OutputStreamContainer & | operator= (OutputStreamContainer &)=delete | 
| Operator = not allowed.  | |
| size_t | size () const | 
| Get size of the container.  More... | |
| bool | empty () const | 
| Is the container empty?  More... | |
| BaseOutputStream & | operator[] (const OutputStreamIdx outputStreamIdx) | 
| operator []  More... | |
| void | addStreams (MatrixContainer &matrixContainer) | 
| Add all streams in simulation in the container, set all streams records here!  More... | |
| void | createStreams () | 
| Create all streams - opens the datasets.  More... | |
| void | reopenStreams () | 
| Reopen streams after checkpoint file (datasets).  More... | |
| void | sampleStreams () | 
| Sample all streams.  More... | |
| void | postProcessStreams () | 
| Post-process all streams and flush them to the file.  More... | |
| void | checkpointStreams () | 
| Checkpoint streams.  More... | |
| void | closeStreams () | 
| Close all streams.  More... | |
| void | freeStreams () | 
| Free all streams - destroy them.  More... | |
Protected Member Functions | |
| BaseOutputStream * | createOutputStream (MatrixContainer &matrixContainer, const MatrixContainer::MatrixIdx sampledMatrixIdx, const MatrixName &fileObjectName, const BaseOutputStream::ReduceOperator reduceOp, float *bufferToReuse=nullptr) | 
| Create a new output stream.  More... | |
Private Attributes | |
| std::map< OutputStreamIdx, BaseOutputStream * > | mContainer | 
| Map with output streams.  | |
The output stream container maintains matrices used to sample data. These may or may not require some scratch place or reuse temp matrices.
Definition at line 50 of file OutputStreamContainer.h.
      
  | 
  strong | 
Output streams identifiers in k-Wave.
Definition at line 58 of file OutputStreamContainer.h.
| OutputStreamContainer::OutputStreamContainer | ( | ) | 
Default constructor.
Definition at line 53 of file OutputStreamContainer.cpp.
| OutputStreamContainer::~OutputStreamContainer | ( | ) | 
Destructor
Definition at line 64 of file OutputStreamContainer.cpp.
| void OutputStreamContainer::addStreams | ( | MatrixContainer & | matrixContainer | ) | 
Please note, the matrix container has to be populated before calling this routine.
| [in] | matrixContainer | - matrix container to link the steams with sampled matrices and sensor masks. | 
Add all streams in simulation in the container, set all streams records here!
Definition at line 73 of file OutputStreamContainer.cpp.
| void OutputStreamContainer::checkpointStreams | ( | ) | 
Checkpoint streams without post-processing (flush to the file).
Definition at line 261 of file OutputStreamContainer.cpp.
| void OutputStreamContainer::closeStreams | ( | ) | 
Close all streams (apply post-processing if necessary, flush data and close).
Definition at line 291 of file OutputStreamContainer.cpp.
      
  | 
  protected | 
| [in] | matrixContainer | - name of the HDF5 dataset or group | 
| [in] | sampledMatrixIdx | - code id of the matrix | 
| [in] | fileObjectName | - name of the HDF5 dataset or group | 
| [in] | reduceOp | - reduction operator | 
| [in] | bufferToReuse | - buffer to reuse | 
Create a new output stream.
Definition at line 327 of file OutputStreamContainer.cpp.
| void OutputStreamContainer::createStreams | ( | ) | 
Create all streams.
Definition at line 216 of file OutputStreamContainer.cpp.
      
  | 
  inline | 
Definition at line 143 of file OutputStreamContainer.h.
| void OutputStreamContainer::freeStreams | ( | ) | 
Free all streams - destroy them.
Definition at line 306 of file OutputStreamContainer.cpp.
      
  | 
  inline | 
| [in] | outputStreamIdx | - Id of the output stream. | 
Definition at line 153 of file OutputStreamContainer.h.
| void OutputStreamContainer::postProcessStreams | ( | ) | 
Post-process all streams and flush them to the file.
Definition at line 276 of file OutputStreamContainer.cpp.
| void OutputStreamContainer::reopenStreams | ( | ) | 
Reopen all streams after restarting from checkpoint.
Definition at line 231 of file OutputStreamContainer.cpp.
| void OutputStreamContainer::sampleStreams | ( | ) | 
Sample all streams.
Definition at line 246 of file OutputStreamContainer.cpp.
      
  | 
  inline | 
Definition at line 134 of file OutputStreamContainer.h.