ATLAS Offline Software
|
The temporary buffer for internal computations which is split into two halves. More...
#include <TargetBuffer_t.h>
Public Member Functions | |
void | clear (unsigned int max_buffer) |
Buffer_t | operator[] (unsigned int fold_idx) |
std::vector< double > | releaseData (std::vector< double >::size_type final_size, unsigned int fold_idx) |
move the final result to its destination More... | |
Private Member Functions | |
void | resize (unsigned int max_buffer) |
Private Attributes | |
std::vector< double > | m_buffer |
The temporary buffer for internal computations which is split into two halves.
The buffer can be used in iterative computations which uses in each iteration the output of the previous one. For such computations, the input is stored in one half and the output in the other half, and the two buffers are swapped after each iteration. Finally the output half of the last iteration is copied to the beginning of the buffer and the buffer is shrunken to its final size.
Definition at line 163 of file TargetBuffer_t.h.
|
inline |
|
inline |
Definition at line 171 of file TargetBuffer_t.h.
|
inline |
move the final result to its destination
copy the indicated half to the beginning (if necessary) and shrink the buffer to its final size Finally "move" the internal buffer to its final destination.
Definition at line 181 of file TargetBuffer_t.h.
|
inlineprivate |
Definition at line 193 of file TargetBuffer_t.h.
|
private |
Definition at line 200 of file TargetBuffer_t.h.