mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
#ifndef SIMDJSON_GENERIC_ONDEMAND_BASE_H
|
|
|
|
#ifndef SIMDJSON_CONDITIONAL_INCLUDE
|
|
#define SIMDJSON_GENERIC_ONDEMAND_BASE_H
|
|
#include "simdjson/generic/base.h"
|
|
#endif // SIMDJSON_CONDITIONAL_INCLUDE
|
|
|
|
namespace simdjson {
|
|
namespace SIMDJSON_IMPLEMENTATION {
|
|
/**
|
|
* A fast, simple, DOM-like interface that parses JSON as you use it.
|
|
*
|
|
* Designed for maximum speed and a lower memory profile.
|
|
*/
|
|
namespace ondemand {
|
|
|
|
/** Represents the depth of a JSON value (number of nested arrays/objects). */
|
|
using depth_t = int32_t;
|
|
|
|
/** @copydoc simdjson::SIMDJSON_IMPLEMENTATION::number_type */
|
|
using number_type = simdjson::SIMDJSON_IMPLEMENTATION::number_type;
|
|
|
|
/** @private Position in the JSON buffer indexes */
|
|
using token_position = const uint32_t *;
|
|
|
|
class array;
|
|
class array_iterator;
|
|
class document;
|
|
class document_reference;
|
|
class document_stream;
|
|
class field;
|
|
class json_iterator;
|
|
enum class json_type;
|
|
struct number;
|
|
class object;
|
|
class object_iterator;
|
|
class parser;
|
|
class raw_json_string;
|
|
class token_iterator;
|
|
class value;
|
|
class value_iterator;
|
|
|
|
} // namespace ondemand
|
|
} // namespace SIMDJSON_IMPLEMENTATION
|
|
} // namespace simdjson
|
|
|
|
#endif // SIMDJSON_GENERIC_ONDEMAND_BASE_H
|