Classes | Functions
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)
 
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

bool shims::isSnippetMode ( bool  m = false)
auto shims::lit ( char  arg)
inline
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)
bool shims::maximally_munched_ass ( char  ch)
inline

Definition at line 39 of file parse_shims.h.

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

40  {
41  return !std::isgraph(ch) || ch == '#' || ch == '/' || ch == ',' ||
42  ch == ']' || ch == '}' || ch == '.' || ch == '[' || ch == ':';
43  }
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 348 of file stdmap_shims.h.

References operator==().

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

349  {
350  return !operator==(left, right);
351  }
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
bool operator==(const BasicVector3D< float > &a, const BasicVector3D< float > &b)
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 335 of file stdmap_shims.h.

References isSnippetMode().

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

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