LArSoft
v07_13_02
Liquid Argon Software toolkit - http://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 60 of file DumpUtils.h.
using lar::dump::ArrayDumper< Array >::Array_t = Array |
Definition at line 61 of file DumpUtils.h.
using lar::dump::ArrayDumper< Array >::This_t = ArrayDumper<Array_t> |
Definition at line 62 of file DumpUtils.h.
|
inline |
Definition at line 67 of file DumpUtils.h.
|
default |
|
default |
|
inlineexplicit |
Converts the content of the stored vector into a string.
Definition at line 81 of file DumpUtils.h.
|
inline |
Inserts the content of the referenced array into the specified stream.
Definition at line 77 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 64 of file DumpUtils.h.
size_t lar::dump::ArrayDumper< Array >::n |
Number of elements to be printed.
Definition at line 65 of file DumpUtils.h.