LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
shims Namespace Reference

Classes

struct  catchall_parser
 
class  map
 

Functions

auto lit (char arg)
 
auto lit (std::string arg)
 
bool maximally_munched_ass (char ch)
 
bool isSnippetMode (bool m=false) noexcept
 
template<typename IIL , typename IIR >
std::enable_if_t<!std::is_same_v< IIL, IIR > &&std::is_same_v< std::remove_const_t< typename IIL::type >, std::remove_const_t< typename IIR::type > >, bool > operator== (IIL left, IIR right) noexcept
 
template<typename IIL , typename IIR >
std::enable_if_t<!std::is_same_v< IIL, IIR > &&std::is_same_v< std::remove_const_t< typename IIL::type >, std::remove_const_t< typename IIR::type > >, bool > operator!= (IIL left, IIR right) noexcept
 

Function Documentation

auto shims::lit ( char  arg)
inline

Definition at line 11 of file parse_shims.h.

References lit().

Referenced by fhicl::parse_value_string().

12  {
14  }
auto lit(std::string arg)
Definition: parse_shims.h:17
auto shims::lit ( std::string  arg)
inline

Definition at line 17 of file parse_shims.h.

References isSnippetMode().

Referenced by lit().

18  {
19  if (arg[0] == '@' && shims::isSnippetMode())
20  arg[0] = '!';
21 
23  }
auto lit(std::string arg)
Definition: parse_shims.h:17
bool isSnippetMode(bool m=false) noexcept
bool shims::maximally_munched_ass ( char  ch)
inline

Definition at line 36 of file parse_shims.h.

Referenced by shims::catchall_parser::parse().

37  {
38  return !std::isgraph(ch) || ch == '#' || ch == '/' || ch == ',' ||
39  ch == ']' || ch == '}' || ch == '.' || ch == '[' || ch == ':';
40  }
template<typename IIL , typename IIR >
std::enable_if_t<!std::is_same_v<IIL, IIR> && std::is_same_v<std::remove_const_t<typename IIL::type>, std::remove_const_t<typename IIR::type> >, bool> shims::operator!= ( IIL  left,
IIR  right 
)
noexcept

Definition at line 349 of file stdmap_shims.h.

References art::left(), operator==(), and art::right().

Referenced by shims::map< Key, T, Compare, Allocator >::iter< Category, TT, Distance, Pointer, Reference >::get().

350  {
351  return !operator==(left, right);
352  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:102
std::enable_if_t<!std::is_same_v< IIL, IIR > &&std::is_same_v< std::remove_const_t< typename IIL::type >, std::remove_const_t< typename IIR::type > >, bool > operator==(IIL left, IIR right) noexcept
Definition: stdmap_shims.h:337
constexpr auto const & left(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:94
template<typename IIL , typename IIR >
std::enable_if_t<!std::is_same_v<IIL, IIR> && std::is_same_v<std::remove_const_t<typename IIL::type>, std::remove_const_t<typename IIR::type> >, bool> shims::operator== ( IIL  left,
IIR  right 
)
noexcept

Definition at line 337 of file stdmap_shims.h.

References isSnippetMode(), art::left(), and art::right().

Referenced by shims::map< Key, T, Compare, Allocator >::iter< Category, TT, Distance, Pointer, Reference >::get(), shims::map< Key, T, Compare, Allocator >::iter< Category, TT, Distance, Pointer, Reference >::operator!=(), and operator!=().

338  {
339  return isSnippetMode() ?
340  left._iters.listmap_iter == right._iters.listmap_iter :
341  left._iters.mapmap_iter == right._iters.mapmap_iter;
342  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:102
constexpr auto const & left(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:94
bool isSnippetMode(bool m=false) noexcept