LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
shims Namespace Reference

Classes

struct  catchall_parser
 
class  map
 

Functions

bool isSnippetMode (bool m)
 
auto lit (char arg)
 
auto lit (std::string arg)
 
bool maximally_munched_ass (char ch)
 
template<typename IIL , typename IIR >
std::enable_if< !std::is_same< IIL, IIR >::value &&std::is_same< typename std::remove_const< typename IIL::type >::type, typename std::remove_const< typename IIR::type >::type >::value, bool >::type operator== (IIL left, IIR right)
 
template<typename IIL , typename IIR >
std::enable_if< !std::is_same< IIL, IIR >::value &&std::is_same< typename std::remove_const< typename IIL::type >::type, typename std::remove_const< typename IIR::type >::type >::value, bool >::type operator!= (IIL left, IIR right)
 

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  }
bool isSnippetMode(bool m)
Definition: parse_shims.cc:9
auto lit(std::string arg)
Definition: parse_shims.h:17
bool shims::maximally_munched_ass ( char  ch)
inline

Definition at line 40 of file parse_shims.h.

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

41  {
42  return !std::isgraph(ch) || ch == '#' || ch == '/' || ch == ',' ||
43  ch == ']' || ch == '}' || ch == '.' || ch == '[' || ch == ':';
44  }
template<typename IIL , typename IIR >
std::enable_if< !std::is_same<IIL, IIR>::value && std::is_same<typename std::remove_const<typename IIL::type>::type, typename std::remove_const<typename IIR::type>::type>::value, bool>::type shims::operator!= ( IIL  left,
IIR  right 
)

Definition at line 347 of file stdmap_shims.h.

References operator==().

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

348  {
349  return !operator==(left, right);
350  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:112
constexpr auto const & left(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:104
std::enable_if< !std::is_same< IIL, IIR >::value &&std::is_same< typename std::remove_const< typename IIL::type >::type, typename std::remove_const< typename IIR::type >::type >::value, bool >::type operator==(IIL left, IIR right)
Definition: stdmap_shims.h:334
template<typename IIL , typename IIR >
std::enable_if< !std::is_same<IIL, IIR>::value && std::is_same<typename std::remove_const<typename IIL::type>::type, typename std::remove_const<typename IIR::type>::type>::value, bool>::type shims::operator== ( IIL  left,
IIR  right 
)

Definition at line 334 of file stdmap_shims.h.

References isSnippetMode(), and fhicl::detail::atom::value().

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!=().

335  {
336  return isSnippetMode() ?
337  left._iters.listmap_iter == right._iters.listmap_iter :
338  left._iters.mapmap_iter == right._iters.mapmap_iter;
339  }
bool isSnippetMode(bool m)
Definition: parse_shims.cc:9
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:112
constexpr auto const & left(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:104