Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Json::Path Class Reference

Experimental and untested: represents a "path" to access a node. More...

#include <json.h>

Public Member Functions

Valuemake (Value &root) const
 
Valuemake (Value &root) const
 
 Path (const std::string &path, const PathArgument &a1=PathArgument(), const PathArgument &a2=PathArgument(), const PathArgument &a3=PathArgument(), const PathArgument &a4=PathArgument(), const PathArgument &a5=PathArgument())
 
 Path (const std::string &path, const PathArgument &a1=PathArgument(), const PathArgument &a2=PathArgument(), const PathArgument &a3=PathArgument(), const PathArgument &a4=PathArgument(), const PathArgument &a5=PathArgument())
 
const Valueresolve (const Value &root) const
 
const Valueresolve (const Value &root) const
 
Value resolve (const Value &root, const Value &defaultValue) const
 
Value resolve (const Value &root, const Value &defaultValue) const
 

Private Types

typedef std::vector< PathArgumentArgs
 
typedef std::vector< PathArgumentArgs
 
typedef std::vector< const PathArgument * > InArgs
 
typedef std::vector< const PathArgument * > InArgs
 

Private Member Functions

void addPathInArg (const std::string &path, const InArgs &in, InArgs::const_iterator &itInArg, PathArgument::Kind kind)
 
void addPathInArg (const std::string &path, const InArgs &in, InArgs::const_iterator &itInArg, PathArgument::Kind kind)
 
void invalidPath (const std::string &path, int location)
 
void invalidPath (const std::string &path, int location)
 
void makePath (const std::string &path, const InArgs &in)
 
void makePath (const std::string &path, const InArgs &in)
 

Private Attributes

Args args_
 

Detailed Description

Experimental and untested: represents a "path" to access a node.

Syntax:

Syntax:

Definition at line 1024 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.

Member Typedef Documentation

◆ Args [1/2]

typedef std::vector<PathArgument> Json::Path::Args
private

◆ Args [2/2]

typedef std::vector<PathArgument> Json::Path::Args
private

◆ InArgs [1/2]

typedef std::vector<const PathArgument*> Json::Path::InArgs
private

◆ InArgs [2/2]

typedef std::vector<const PathArgument*> Json::Path::InArgs
private

Constructor & Destructor Documentation

◆ Path() [1/2]

Json::Path::Path ( const std::string &  path,
const PathArgument a1 = PathArgument(),
const PathArgument a2 = PathArgument(),
const PathArgument a3 = PathArgument(),
const PathArgument a4 = PathArgument(),
const PathArgument a5 = PathArgument() 
)

◆ Path() [2/2]

Json::Path::Path ( const std::string &  path,
const PathArgument a1 = PathArgument(),
const PathArgument a2 = PathArgument(),
const PathArgument a3 = PathArgument(),
const PathArgument a4 = PathArgument(),
const PathArgument a5 = PathArgument() 
)

Member Function Documentation

◆ addPathInArg() [1/2]

void Json::Path::addPathInArg ( const std::string &  path,
const InArgs in,
InArgs::const_iterator &  itInArg,
PathArgument::Kind  kind 
)
private

◆ addPathInArg() [2/2]

void Json::Path::addPathInArg ( const std::string &  path,
const InArgs in,
InArgs::const_iterator &  itInArg,
PathArgument::Kind  kind 
)
private

◆ invalidPath() [1/2]

void Json::Path::invalidPath ( const std::string &  path,
int  location 
)
private

◆ invalidPath() [2/2]

void Json::Path::invalidPath ( const std::string &  path,
int  location 
)
private

◆ make() [1/2]

Value& Json::Path::make ( Value root) const

Creates the "path" to access the specified node and returns a reference on the node.

◆ make() [2/2]

Value & Json::Path::make ( Value root) const

Creates the "path" to access the specified node and returns a reference on the node.

Definition at line 3936 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.

◆ makePath() [1/2]

void Json::Path::makePath ( const std::string &  path,
const InArgs in 
)
private

◆ makePath() [2/2]

void Json::Path::makePath ( const std::string &  path,
const InArgs in 
)
private

◆ resolve() [1/4]

const Value & Json::Path::resolve ( const Value root) const

◆ resolve() [2/4]

const Value& Json::Path::resolve ( const Value root) const

◆ resolve() [3/4]

Value Json::Path::resolve ( const Value root,
const Value defaultValue 
) const

◆ resolve() [4/4]

Value Json::Path::resolve ( const Value root,
const Value defaultValue 
) const

Member Data Documentation

◆ args_

Args Json::Path::args_
private

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:40