NGen
|
Struct wrapping a vector of JSONProperty representing a JSON list. More...
#include <JSONProperty.hpp>
Public Member Functions | |
List (std::vector< JSONProperty > *values) | |
Construct a new List and set its values pointer to values. | |
std::vector< JSONProperty > * | get_values () const |
Get the pointer to the values vector. | |
void | push_back (const JSONProperty &property) |
Add a JSONProperty to List backing storage via the values pointer. | |
bool | operator== (const List &other) const |
Equality operator. | |
Private Attributes | |
std::vector< JSONProperty > * | values |
Friends | |
std::ostream & | operator<< (std::ostream &os, const List &obj) |
A stream overload to represent this type as a LIST. | |
Struct wrapping a vector of JSONProperty representing a JSON list.
Note: that due to the forward declaration of JSONProperty and the recursive nature of the property and the variant types a pointer is required to allow this incomplete type to encapsulate the vectory of JSONProperties.
|
inline |
Construct a new List and set its values pointer to values.
values |
|
inline |
Get the pointer to the values vector.
References values.
Referenced by geojson::JSONProperty::AsVectorVisitor< T >::operator()().
|
inline |
Equality operator.
other | List to check equality against |
References values.
|
inline |
Add a JSONProperty to List backing storage via the values pointer.
property | JSONProperty to add to the back of the List |
References values.
|
friend |
|
private |
Referenced by get_values(), operator==(), and push_back().