![]() |
LArSoft
v10_06_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Dumps the first N elements of an array. More...
#include "DumpUtils.h"
Public Types | |
| using | Array_t = Array |
| using | This_t = ArrayDumper< Array_t > |
Public Member Functions | |
| ArrayDumper (Array_t const &a, size_t n) | |
| ArrayDumper (This_t const &from)=default | |
| ArrayDumper (This_t &&from)=default | |
| ArrayDumper & | operator= (This_t const &from)=delete |
| ArrayDumper & | operator= (This_t &&from)=delete |
| template<typename Stream > | |
| void | operator() (Stream &&out) const |
| Inserts the content of the referenced array into the specified stream. More... | |
| operator std::string () const | |
| Converts the content of the stored vector into a string. More... | |
Public Attributes | |
| Array_t const & | a |
| A reference to the array to be printed. More... | |
| size_t | n |
| Number of elements to be printed. More... | |
Dumps the first N elements of an array.
| Array | the array type (supporting indexing operator) |
The dump is producer by the call operator, in the form
{ a1, a2, ... aN }
Definition at line 69 of file DumpUtils.h.
| using lar::dump::ArrayDumper< Array >::Array_t = Array |
Definition at line 70 of file DumpUtils.h.
| using lar::dump::ArrayDumper< Array >::This_t = ArrayDumper<Array_t> |
Definition at line 71 of file DumpUtils.h.
|
inline |
Definition at line 76 of file DumpUtils.h.
|
default |
|
default |
|
inlineexplicit |
Converts the content of the stored vector into a string.
Definition at line 92 of file DumpUtils.h.
|
inline |
Inserts the content of the referenced array into the specified stream.
Definition at line 86 of file DumpUtils.h.
|
delete |
|
delete |
| Array_t const& lar::dump::ArrayDumper< Array >::a |
A reference to the array to be printed.
Definition at line 73 of file DumpUtils.h.
| size_t lar::dump::ArrayDumper< Array >::n |
Number of elements to be printed.
Definition at line 74 of file DumpUtils.h.