LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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.

Referenced by fhicl::detail::no_defaults::expected_types< T >::expected_types(), fhicl::detail::no_defaults::expected_types< std::string >::expected_types(), and presented_string().

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

Definition at line 62 of file ostream_helpers.h.

References padded_string(), and stripped_typename().

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.

Referenced by fhicl::detail::no_defaults::expected_types< T >::expected_types(), fhicl::detail::no_defaults::expected_types< std::string >::expected_types(), fhicl::detail::yes_defaults::operator<<(), and presented_string().

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