LArSoft  v09_90_00
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 96 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 715 of file Partitions.h.

720 {
721  out << firstIndent;
722  std::string typeName = lar::debug::demangle<Data>();
723  if (data) { out << typeName << "[" << ((void*)data) << "]"; }
724  else {
725  out << "no '" << typeName << "' data";
726  }
727 } // geo::part::PartitionDataDescriber::PartitionDataDescriber()

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