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
 Creates the "path" to access the specified node and returns a reference on the node. More...
 
 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
 
Value resolve (const Value &root, const Value &defaultValue) const
 

Private Types

typedef std::vector< PathArgumentArgs
 
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 invalidPath (const std::string &path, int location)
 
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:

Definition at line 852 of file json.h.

Member Typedef Documentation

◆ Args

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

Definition at line 870 of file json.h.

◆ InArgs

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

Definition at line 869 of file json.h.

Constructor & Destructor Documentation

◆ Path()

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() 
)

Definition at line 3192 of file jsoncpp.cpp.

Member Function Documentation

◆ addPathInArg()

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

Definition at line 3254 of file jsoncpp.cpp.

◆ invalidPath()

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

Definition at line 3275 of file jsoncpp.cpp.

◆ make()

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 3342 of file jsoncpp.cpp.

◆ makePath()

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

Definition at line 3210 of file jsoncpp.cpp.

◆ resolve() [1/2]

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

Definition at line 3283 of file jsoncpp.cpp.

◆ resolve() [2/2]

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

Definition at line 3315 of file jsoncpp.cpp.

Member Data Documentation

◆ args_

Args Json::Path::args_
private

Definition at line 881 of file json.h.


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


find_object_2d
Author(s): Mathieu Labbe
autogenerated on Mon Dec 12 2022 03:20:10