LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Manipulator managing the dump of the vector content into a stream. More...
#include "DumpUtils.h"
Public Types | |
using | Vector_t = Vector |
using | This_t = VectorDumper< Vector_t > |
Public Member Functions | |
VectorDumper (Vector_t const &v) | |
VectorDumper (This_t const &from)=default | |
VectorDumper (This_t &&from)=default | |
VectorDumper & | operator= (This_t const &from)=delete |
VectorDumper & | operator= (This_t &&from)=delete |
template<typename Stream > | |
void | operator() (Stream &&out) const |
Inserts the content of the stored vector into the specified stream. More... | |
operator std::string () const | |
Converts the content of the stored vector into a string. More... | |
Public Attributes | |
Vector_t const & | v |
A reference to the vector to be printed. More... | |
Manipulator managing the dump of the vector content into a stream.
Vector | the type of vector to be dumped |
The manipulator is constructed with the object that needs to be dumped. This implementation requires a vector of at least 3D with methods X()
, Y()
and Z()
. The dump is producer by the call operator, in the form
{ vx, vy, vz }
An overloaded insertion operator will call the operator()
method of the manipulator to perform the insertion.
This class can be specialised to manage different vector types. For example:
Definition at line 174 of file DumpUtils.h.
using lar::dump::VectorDumper< Vector >::This_t = VectorDumper<Vector_t> |
Definition at line 176 of file DumpUtils.h.
using lar::dump::VectorDumper< Vector >::Vector_t = Vector |
Definition at line 175 of file DumpUtils.h.
|
inlineexplicit |
Definition at line 180 of file DumpUtils.h.
|
default |
|
default |
|
inlineexplicit |
Converts the content of the stored vector into a string.
Definition at line 196 of file DumpUtils.h.
|
inline |
Inserts the content of the stored vector into the specified stream.
Definition at line 190 of file DumpUtils.h.
|
delete |
|
delete |
Vector_t const& lar::dump::VectorDumper< Vector >::v |
A reference to the vector to be printed.
Definition at line 178 of file DumpUtils.h.