Classes | Functions
fhicl::detail::no_defaults Namespace Reference

Classes

struct  expected_types
 
struct  expected_types< std::string >
 

Functions

std::string stripped_typename (std::string const &fullName)
 
std::string padded_string (std::string const &tnToPad)
 
std::string presented_string (std::string const &fullName)
 
template<typename T >
std::ostream & operator<< (std::ostream &os, expected_types< T > &&et)
 

Function Documentation

template<typename T >
std::ostream& fhicl::detail::no_defaults::operator<< ( std::ostream &  os,
expected_types< T > &&  et 
)

Definition at line 92 of file ostream_helpers.h.

93  {
94  return os << et.value;
95  }
std::string fhicl::detail::no_defaults::padded_string ( std::string const &  tnToPad)
inline

Definition at line 56 of file ostream_helpers.h.

57  {
58  return std::string("<") + tnToPad + std::string(">");
59  }
std::string string
Definition: nybbler.cc:12
std::string fhicl::detail::no_defaults::presented_string ( std::string const &  fullName)
inline

Definition at line 62 of file ostream_helpers.h.

63  {
64  return padded_string(stripped_typename(fullName));
65  }
std::string stripped_typename(std::string const &fullName)
std::string padded_string(std::string const &tnToPad)
std::string fhicl::detail::no_defaults::stripped_typename ( std::string const &  fullName)

Definition at line 12 of file ostream_helpers.cc.

13  {
14  // Remove 'std::' from fullName
15  return std::regex_replace(fullName, re_std_prefix, "");
16  }