parser_thread¶
Defined in header: <orcus/json_parser_thread.hpp>
-
class parser_thread¶
Public Functions
-
parser_thread(const char *p, size_t n, size_t min_token_size)¶
-
parser_thread(const char *p, size_t n, size_t min_token_size, size_t max_token_size)¶
-
~parser_thread()¶
-
void start()¶
-
bool next_tokens(parse_tokens_t &tokens)¶
Wait until new set of tokens becomes available.
- Parameters:
tokens – new set of tokens.
- Returns:
true if the parsing is still in progress (therefore more tokens to come), false if it’s done i.e. this is the last token set.
-
parser_stats get_stats() const¶
-
void swap_string_pool(string_pool &pool)¶
-
parser_thread(const char *p, size_t n, size_t min_token_size)¶