millijson
Lightweight JSON parser for C++
Loading...
Searching...
No Matches
millijson::Array Class Referencefinal

JSON array. More...

#include <millijson.hpp>

Inheritance diagram for millijson::Array:
Collaboration diagram for millijson::Array:

Public Member Functions

 Array (std::vector< std::shared_ptr< Base > > x)
 
Type type () const
 
const std::vector< std::shared_ptr< Base > > & value () const
 
std::vector< std::shared_ptr< Base > > & value ()
 
- Public Member Functions inherited from millijson::Base

Detailed Description

JSON array.

Constructor & Destructor Documentation

◆ Array()

millijson::Array::Array ( std::vector< std::shared_ptr< Base > > x)
inline
Parameters
xContents of the array.

Member Function Documentation

◆ type()

Type millijson::Array::type ( ) const
inlinevirtual
Returns
Type of the JSON value.

Implements millijson::Base.

◆ value() [1/2]

std::vector< std::shared_ptr< Base > > & millijson::Array::value ( )
inline
Returns
Contents of the array.

◆ value() [2/2]

const std::vector< std::shared_ptr< Base > > & millijson::Array::value ( ) const
inline
Returns
Contents of the array.

The documentation for this class was generated from the following file: