...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A node in the response tree. More...
#include <boost/redis/resp3/node.hpp>
Public Attributes | |
std::size_t | aggregate_size {} |
The number of elements of an aggregate. | |
type | data_type = type::invalid |
The RESP3 type of the data in this node. | |
std::size_t | depth {} |
The depth of this node in the response tree. | |
String | value {} |
The actual data. For aggregate types this is usually empty. | |
Related Functions | |
(Note that these are not member functions.) | |
template<class String > | |
auto | operator== (basic_node< String > const &a, basic_node< String > const &b) |
Compares a node for equality. More... | |
A node in the response tree.
RESP3 can contain recursive data structures: A map of sets of vector of etc. As it is parsed each element is passed to user callbacks (push parser). The signature of this callback is f(resp3::node<std::string_view)
. This class is called a node because it can be seen as the element of the response tree. It is a template so that users can use it with owing strings e.g. std::string
or boost::static_string
etc.
String | A std::string -like type. |
|
related |