Celeritas  0.5.0-86+4a8eea4
Static Public Member Functions | List of all members
celeritas::ReprTraits< T > Struct Template Reference

Traits for writing an object for diagnostic or testing output. More...

#include <Repr.hh>

Static Public Member Functions

static void print_type (std::ostream &os, char const *name=nullptr)
 
static void init (std::ostream &)
 
static void print_value (std::ostream &os, T const &value)
 

Detailed Description

template<class T>
struct celeritas::ReprTraits< T >

Traits for writing an object for diagnostic or testing output.

The "streamable" traits usually write so that the object can be injected into test code. The default tries to use whatever ostream operator is available. Other overrides are provided for collections, characters, and more?


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