LArSoft  v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
geo::part::PartitionDataDescriber< Data > Struct Template Reference

Class providing custom dump for data contained in the partition. More...

#include "Partitions.h"

Public Member Functions

template<typename Stream >
 PartitionDataDescriber (Stream &&out, Data const *data, std::string indent="", std::string firstIndent="")
 Constructor; see describePartitionData() for argument description. More...
 

Detailed Description

template<typename Data>
struct geo::part::PartitionDataDescriber< Data >

Class providing custom dump for data contained in the partition.

Template Parameters
Datathe type of data in the partition

This data type is expected to do its printout in a constructor with signature:

template <typename Stream>
Stream&& out, Data const* data,
std::string indent = "", std::string firstIndent = ""
);

This class provides a terse, non-specific dump of any datum. Specializations are expected for specific data types.

Definition at line 91 of file Partitions.h.

Constructor & Destructor Documentation

template<typename Data >
template<typename Stream >
geo::part::PartitionDataDescriber< Data >::PartitionDataDescriber ( Stream &&  out,
Data const *  data,
std::string  indent = "",
std::string  firstIndent = "" 
)

Constructor; see describePartitionData() for argument description.

Definition at line 682 of file Partitions.h.

687 {
688  out << firstIndent;
689  std::string typeName = lar::debug::demangle<Data>();
690  if (data) { out << typeName << "[" << ((void*)data) << "]"; }
691  else {
692  out << "no '" << typeName << "' data";
693  }
694 }

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