LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lar::dump::VectorDumper< T * > Struct Template Reference

#include "DumpUtils.h"

Inheritance diagram for lar::dump::VectorDumper< T * >:
lar::dump::ArrayDumper< T const * >

Public Types

using Array_t = T const *
 
using This_t = ArrayDumper< Array_t >
 

Public Member Functions

 VectorDumper (T *v)
 
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...
 

Detailed Description

template<typename T>
struct lar::dump::VectorDumper< T * >

Definition at line 207 of file DumpUtils.h.

Member Typedef Documentation

using lar::dump::ArrayDumper< T const * >::Array_t = T const *
inherited

Definition at line 70 of file DumpUtils.h.

using lar::dump::ArrayDumper< T const * >::This_t = ArrayDumper<Array_t>
inherited

Definition at line 71 of file DumpUtils.h.

Constructor & Destructor Documentation

template<typename T >
lar::dump::VectorDumper< T * >::VectorDumper ( T *  v)
inlineexplicit

Definition at line 208 of file DumpUtils.h.

208 : ArrayDumper<T const*>(v, 3U) {}

Member Function Documentation

lar::dump::ArrayDumper< T const * >::operator std::string ( ) const
inlineexplicitinherited

Converts the content of the stored vector into a string.

Definition at line 92 of file DumpUtils.h.

93  {
94  std::ostringstream sstr;
95  this->operator()(sstr);
96  return sstr.str();
97  }
void operator()(Stream &&out) const
Inserts the content of the referenced array into the specified stream.
Definition: DumpUtils.h:86
void lar::dump::ArrayDumper< T const * >::operator() ( Stream &&  out) const
inlineinherited

Inserts the content of the referenced array into the specified stream.

Definition at line 86 of file DumpUtils.h.

References lar::dump::details::dumpArray().

87  {
88  details::dumpArray(std::forward<Stream>(out), a, n);
89  }
void dumpArray(Stream &&out, Array &&a, size_t n)
Inserts n of elements of a in the specified stream.
Definition: DumpUtils.h:41
size_t n
Number of elements to be printed.
Definition: DumpUtils.h:74
Array_t const & a
A reference to the array to be printed.
Definition: DumpUtils.h:73

Member Data Documentation

Array_t const& lar::dump::ArrayDumper< T const * >::a
inherited

A reference to the array to be printed.

Definition at line 73 of file DumpUtils.h.

size_t lar::dump::ArrayDumper< T const * >::n
inherited

Number of elements to be printed.

Definition at line 74 of file DumpUtils.h.


The documentation for this struct was generated from the following file: