Classes | Namespaces | Functions
DumpUtils.h File Reference
#include <string>
#include <sstream>
#include <type_traits>

Go to the source code of this file.

Classes

struct  gar::dump::ArrayDumper< Array >
 Dumps the first N elements of an array. More...
 
struct  gar::dump::ArrayDumper< T * >
 
struct  gar::dump::VectorDumper< Vector >
 Manipulator managing the dump of the vector content into a stream. More...
 
struct  gar::dump::VectorDumper< T * >
 
struct  gar::dump::VectorDumper< T[3]>
 

Namespaces

 gar
 General GArSoft Utilities.
 
 gar::dump
 Namespace for GArSoft dumping utilities.
 
 gar::dump::details
 

Functions

template<typename Coll >
auto gar::dump::details::ptr_cbegin (Coll const &v)
 
template<typename T >
std::add_const_t< T > * gar::dump::details::ptr_cbegin (T *ptr)
 
template<typename Stream , typename Array >
void gar::dump::details::dumpArray (Stream &&out, Array &&a, size_t n)
 Inserts n of elements of a in the specified stream. More...
 
template<size_t N, typename Array >
auto gar::dump::array (Array const &a)
 Returns a manipulator which will print the specified array. More...
 
template<typename Vector >
auto gar::dump::vector (Vector const &v)
 Returns a manipulator which will print the specified array. More...
 
template<typename Vector3D >
auto gar::dump::vector3D (Vector3D const &v)
 Returns a manipulator which will print the specified vector. More...
 
template<typename Stream , typename Array >
Stream & gar::dump::operator<< (Stream &&out, ArrayDumper< Array > &&manip)
 Dumps the array contained in the manipulator into a stream. More...
 
template<typename Stream , typename Vector >
Stream & gar::dump::operator<< (Stream &&out, VectorDumper< Vector > &&manip)
 Dumps the vector contained in the manipulator into a stream. More...
 
template<typename String , typename Vector >
String gar::dump::operator+ (String const &s, VectorDumper< Vector > const &manip)
 Concatenates a vector to the specified string. More...
 
template<typename Vector >
std::string gar::dump::operator+ (const char *s, VectorDumper< Vector > const &manip)
 Creates a string with s concatenated to the rendered vector. More...
 
template<typename String , typename Vector >
String gar::dump::operator+ (VectorDumper< Vector > const &manip, String const &s)
 
template<typename Vector >
std::string gar::dump::operator+ (VectorDumper< Vector > const &manip, const char *s)
 Creates a string with the rendered vector concatenated to s. More...
 
template<typename String , typename Vector >
Stringgar::dump::operator+= (String &s, VectorDumper< Vector > const &manip)
 Appends a string rendering of a vector to the specified string. More...