Public Types | Public Member Functions | Private Types | Static Private Member Functions | Private Attributes | List of all members
re2::RE2::Arg Class Reference

#include <re2.h>

Public Types

typedef bool(* Parser) (const char *str, size_t n, void *dest)
 
typedef bool(* Parser) (const char *str, size_t n, void *dest)
 

Public Member Functions

 Arg ()
 
 Arg ()
 
 Arg (std::nullptr_t ptr)
 
 Arg (std::nullptr_t)
 
template<class T >
 Arg (T *p)
 
template<class T >
 Arg (T *p, Parser parser)
 
template<typename T , CanParse3ary< T > = 0>
 Arg (T *ptr)
 
template<typename T , CanParse4ary< T > = 0>
 Arg (T *ptr)
 
template<typename T , CanParseFrom< T > = 0>
 Arg (T *ptr)
 
template<typename T >
 Arg (T *ptr, Parser parser)
 
 Arg (void *)
 
bool Parse (const char *str, size_t n) const
 
bool Parse (const char *str, size_t n) const
 

Private Types

template<typename T >
using CanParse3ary = typename std::enable_if< re2_internal::Parse3ary< T >::value, int >::type
 
template<typename T >
using CanParse4ary = typename std::enable_if< re2_internal::Parse4ary< T >::value, int >::type
 
template<typename T >
using CanParseFrom = typename std::enable_if< std::is_member_function_pointer< decltype(static_cast< bool(T::*)(const char *, size_t)>(&T::ParseFrom))>::value, int >::type
 

Static Private Member Functions

static bool DoNothing (const char *, size_t, void *)
 
template<typename T >
static bool DoParse3ary (const char *str, size_t n, void *dest)
 
template<typename T >
static bool DoParse4ary (const char *str, size_t n, void *dest)
 
template<typename T >
static bool DoParseFrom (const char *str, size_t n, void *dest)
 
static bool parse_char (const char *str, size_t n, void *dest)
 
static bool parse_double (const char *str, size_t n, void *dest)
 
static bool parse_float (const char *str, size_t n, void *dest)
 
static bool parse_null (const char *str, size_t n, void *dest)
 
static bool parse_schar (const char *str, size_t n, void *dest)
 
static bool parse_string (const char *str, size_t n, void *dest)
 
static bool parse_stringpiece (const char *str, size_t n, void *dest)
 
static bool parse_uchar (const char *str, size_t n, void *dest)
 

Private Attributes

void * arg_
 
Parser parser_
 

Detailed Description

Definition at line 786 of file bloaty/third_party/re2/re2/re2.h.

Member Typedef Documentation

◆ CanParse3ary

template<typename T >
using re2::RE2::Arg::CanParse3ary = typename std::enable_if< re2_internal::Parse3ary<T>::value, int>::type
private

Definition at line 823 of file re2/re2/re2.h.

◆ CanParse4ary

template<typename T >
using re2::RE2::Arg::CanParse4ary = typename std::enable_if< re2_internal::Parse4ary<T>::value, int>::type
private

Definition at line 828 of file re2/re2/re2.h.

◆ CanParseFrom

template<typename T >
using re2::RE2::Arg::CanParseFrom = typename std::enable_if< std::is_member_function_pointer< decltype(static_cast<bool (T::*)(const char*, size_t)>( &T::ParseFrom))>::value, int>::type
private

Definition at line 836 of file re2/re2/re2.h.

◆ Parser [1/2]

typedef bool(* re2::RE2::Arg::Parser) (const char *str, size_t n, void *dest)

Definition at line 795 of file bloaty/third_party/re2/re2/re2.h.

◆ Parser [2/2]

typedef bool(* re2::RE2::Arg::Parser) (const char *str, size_t n, void *dest)

Definition at line 854 of file re2/re2/re2.h.

Constructor & Destructor Documentation

◆ Arg() [1/11]

re2::RE2::Arg::Arg ( )
inline

Definition at line 867 of file bloaty/third_party/re2/re2/re2.h.

◆ Arg() [2/11]

re2::RE2::Arg::Arg ( void *  p)
inline

Definition at line 868 of file bloaty/third_party/re2/re2/re2.h.

◆ Arg() [3/11]

re2::RE2::Arg::Arg ( std::nullptr_t  p)
inline

Definition at line 869 of file bloaty/third_party/re2/re2/re2.h.

◆ Arg() [4/11]

template<class T >
re2::RE2::Arg::Arg ( T p)
inline

Definition at line 822 of file bloaty/third_party/re2/re2/re2.h.

◆ Arg() [5/11]

template<class T >
re2::RE2::Arg::Arg ( T p,
Parser  parser 
)
inline

Definition at line 824 of file bloaty/third_party/re2/re2/re2.h.

◆ Arg() [6/11]

re2::RE2::Arg::Arg ( )
inline

Definition at line 840 of file re2/re2/re2.h.

◆ Arg() [7/11]

re2::RE2::Arg::Arg ( std::nullptr_t  ptr)
inline

Definition at line 841 of file re2/re2/re2.h.

◆ Arg() [8/11]

template<typename T , CanParse3ary< T > = 0>
re2::RE2::Arg::Arg ( T ptr)
inline

Definition at line 844 of file re2/re2/re2.h.

◆ Arg() [9/11]

template<typename T , CanParse4ary< T > = 0>
re2::RE2::Arg::Arg ( T ptr)
inline

Definition at line 847 of file re2/re2/re2.h.

◆ Arg() [10/11]

template<typename T , CanParseFrom< T > = 0>
re2::RE2::Arg::Arg ( T ptr)
inline

Definition at line 851 of file re2/re2/re2.h.

◆ Arg() [11/11]

template<typename T >
re2::RE2::Arg::Arg ( T ptr,
Parser  parser 
)
inline

Definition at line 857 of file re2/re2/re2.h.

Member Function Documentation

◆ DoNothing()

static bool re2::RE2::Arg::DoNothing ( const char *  ,
size_t  ,
void *   
)
inlinestaticprivate

Definition at line 864 of file re2/re2/re2.h.

◆ DoParse3ary()

template<typename T >
static bool re2::RE2::Arg::DoParse3ary ( const char *  str,
size_t  n,
void *  dest 
)
inlinestaticprivate

Definition at line 869 of file re2/re2/re2.h.

◆ DoParse4ary()

template<typename T >
static bool re2::RE2::Arg::DoParse4ary ( const char *  str,
size_t  n,
void *  dest 
)
inlinestaticprivate

Definition at line 874 of file re2/re2/re2.h.

◆ DoParseFrom()

template<typename T >
static bool re2::RE2::Arg::DoParseFrom ( const char *  str,
size_t  n,
void *  dest 
)
inlinestaticprivate

Definition at line 880 of file re2/re2/re2.h.

◆ Parse() [1/2]

bool re2::RE2::Arg::Parse ( const char *  str,
size_t  n 
) const
inline

Definition at line 871 of file bloaty/third_party/re2/re2/re2.h.

◆ Parse() [2/2]

bool re2::RE2::Arg::Parse ( const char *  str,
size_t  n 
) const
inline

Definition at line 859 of file re2/re2/re2.h.

◆ parse_char()

bool re2::RE2::Arg::parse_char ( const char *  str,
size_t  n,
void *  dest 
)
staticprivate

Definition at line 969 of file bloaty/third_party/re2/re2/re2.cc.

◆ parse_double()

bool re2::RE2::Arg::parse_double ( const char *  str,
size_t  n,
void *  dest 
)
staticprivate

Definition at line 1202 of file bloaty/third_party/re2/re2/re2.cc.

◆ parse_float()

bool re2::RE2::Arg::parse_float ( const char *  str,
size_t  n,
void *  dest 
)
staticprivate

Definition at line 1206 of file bloaty/third_party/re2/re2/re2.cc.

◆ parse_null()

bool re2::RE2::Arg::parse_null ( const char *  str,
size_t  n,
void *  dest 
)
staticprivate

Definition at line 952 of file bloaty/third_party/re2/re2/re2.cc.

◆ parse_schar()

bool re2::RE2::Arg::parse_schar ( const char *  str,
size_t  n,
void *  dest 
)
staticprivate

Definition at line 976 of file bloaty/third_party/re2/re2/re2.cc.

◆ parse_string()

bool re2::RE2::Arg::parse_string ( const char *  str,
size_t  n,
void *  dest 
)
staticprivate

Definition at line 957 of file bloaty/third_party/re2/re2/re2.cc.

◆ parse_stringpiece()

bool re2::RE2::Arg::parse_stringpiece ( const char *  str,
size_t  n,
void *  dest 
)
staticprivate

Definition at line 963 of file bloaty/third_party/re2/re2/re2.cc.

◆ parse_uchar()

bool re2::RE2::Arg::parse_uchar ( const char *  str,
size_t  n,
void *  dest 
)
staticprivate

Definition at line 983 of file bloaty/third_party/re2/re2/re2.cc.

Member Data Documentation

◆ arg_

void * re2::RE2::Arg::arg_
private

Definition at line 831 of file bloaty/third_party/re2/re2/re2.h.

◆ parser_

Parser re2::RE2::Arg::parser_
private

Definition at line 832 of file bloaty/third_party/re2/re2/re2.h.


The documentation for this class was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:42