Turi Create  4.0
turi::flexible_type_parser Class Reference

#include <core/data/flexible_type/flexible_type_spirit_parser.hpp>

Public Member Functions

std::pair< flexible_type, bool > general_flexible_type_parse (const char **str, size_t len)
 
std::pair< flexible_type, bool > non_string_flexible_type_parse (const char **str, size_t len)
 
std::pair< flexible_type, bool > dict_parse (const char **str, size_t len)
 
std::pair< flexible_type, bool > recursive_parse (const char **str, size_t len)
 
std::pair< flexible_type, bool > vector_parse (const char **str, size_t len)
 
std::pair< flexible_type, bool > double_parse (const char **str, size_t len)
 
std::pair< flexible_type, bool > int_parse (const char **str, size_t len)
 
std::pair< flexible_type, bool > string_parse (const char **str, size_t len)
 

Detailed Description

A flexible_type_parser which takes in strings and returns flexible_types

Definition at line 35 of file flexible_type_spirit_parser.hpp.

Member Function Documentation

◆ dict_parse()

std::pair<flexible_type, bool> turi::flexible_type_parser::dict_parse ( const char **  str,
size_t  len 
)

Parses a flex_dict from a string. The *str pointer will be updated to point to the character after the last character parsed. Returns a pair of (parsed value, success)

◆ double_parse()

std::pair<flexible_type, bool> turi::flexible_type_parser::double_parse ( const char **  str,
size_t  len 
)

Parses a double from a string. The *str pointer will be updated to point to the character after the last character parsed. Returns a pair of (parsed value, success)

◆ general_flexible_type_parse()

std::pair<flexible_type, bool> turi::flexible_type_parser::general_flexible_type_parse ( const char **  str,
size_t  len 
)

Parses a generalized flexible type from a string. The *str pointer will be updated to point to the character after the last character parsed. Returns a pair of (parsed value, success)

◆ int_parse()

std::pair<flexible_type, bool> turi::flexible_type_parser::int_parse ( const char **  str,
size_t  len 
)

Parses an integer from a string. The *str pointer will be updated to point to the character after the last character parsed. Returns a pair of (parsed value, success)

◆ non_string_flexible_type_parse()

std::pair<flexible_type, bool> turi::flexible_type_parser::non_string_flexible_type_parse ( const char **  str,
size_t  len 
)

Parses a non-string flexible type from a string. The *str pointer will be updated to point to the character after the last character parsed. Returns a pair of (parsed value, success)

◆ recursive_parse()

std::pair<flexible_type, bool> turi::flexible_type_parser::recursive_parse ( const char **  str,
size_t  len 
)

Parses a flex_list from a string. The *str pointer will be updated to point to the character after the last character parsed. Returns a pair of (parsed value, success)

◆ string_parse()

std::pair<flexible_type, bool> turi::flexible_type_parser::string_parse ( const char **  str,
size_t  len 
)

Parses an string from a string. The *str pointer will be updated to point to the character after the last character parsed. Returns a pair of (parsed value, success)

◆ vector_parse()

std::pair<flexible_type, bool> turi::flexible_type_parser::vector_parse ( const char **  str,
size_t  len 
)

Parses a flex_vec from a string. The *str pointer will be updated to point to the character after the last character parsed. Returns a pair of (parsed value, success)


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