Seastar
High performance C++ framework for concurrent servers
|
json_list_template is an array type based on a container type passed as a template parameter, as we want to have flavors based on both vector and chunked_fifo.
When values are added with push it is set the "set" flag to true hence will be included in the parsed object
#include <seastar/json/json_elements.hh>
Public Member Functions | |
void | push (const T &element) |
void | push (T &&element) |
virtual std::string | to_string () override |
template<class C > | |
json_list_template & | operator= (const C &list) |
virtual future | write (output_stream< char > &s) const override |
virtual bool | is_verify () noexcept |
Public Attributes | |
Container | _elements |
std::string | _name |
bool | _mandatory |
bool | _set |
|
inlinevirtualnoexceptinherited |
Check if it's a mandatory parameter and if it's set.
|
inline |
Assignment can be done from any object that support const range iteration and that it's elements can be assigned to the list elements
|
inline |
Add an element to the list.
element | a new element that will be added to the end of the list |
|
inline |
Move an element into the list.
element | a new element that will be added to the list using move-construction |
|
inlineoverridevirtual |
returns the internal value in a json format Each inherit class must implement this method
Implements seastar::json::json_base_element.
|
inlineoverridevirtual |
Implements seastar::json::json_base_element.