Public Member Functions | List of all members
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 97 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 767 of file Partitions.h.

771 {
772  out << firstIndent;
773  std::string typeName = lar::debug::demangle<Data>();
774  if (data) {
775  out << typeName << "[" << ((void*) data) << "]";
776  }
777  else {
778  out << "no '" << typeName << "' data";
779  }
780 } // geo::part::PartitionDataDescriber::PartitionDataDescriber()
std::string string
Definition: nybbler.cc:12

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