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

Experimental and untested: represents an element of the "path" to access a node. More...

#include <json.h>

Public Member Functions

 PathArgument ()
 
 PathArgument (ArrayIndex index)
 
 PathArgument (const char *key)
 
 PathArgument (const std::string &key)
 

Private Types

enum  Kind { kindNone = 0, kindIndex, kindKey }
 

Private Attributes

ArrayIndex index_
 
std::string key_
 
Kind kind_
 

Friends

class Path
 

Detailed Description

Experimental and untested: represents an element of the "path" to access a node.

Definition at line 819 of file json.h.

Member Enumeration Documentation

◆ Kind

Enumerator
kindNone 
kindIndex 
kindKey 

Definition at line 830 of file json.h.

Constructor & Destructor Documentation

◆ PathArgument() [1/4]

Json::PathArgument::PathArgument ( )

Definition at line 3163 of file jsoncpp.cpp.

◆ PathArgument() [2/4]

Json::PathArgument::PathArgument ( ArrayIndex  index)

Definition at line 3169 of file jsoncpp.cpp.

◆ PathArgument() [3/4]

Json::PathArgument::PathArgument ( const char *  key)

Definition at line 3176 of file jsoncpp.cpp.

◆ PathArgument() [4/4]

Json::PathArgument::PathArgument ( const std::string &  key)

Definition at line 3183 of file jsoncpp.cpp.

Friends And Related Function Documentation

◆ Path

friend class Path
friend

Definition at line 822 of file json.h.

Member Data Documentation

◆ index_

ArrayIndex Json::PathArgument::index_
private

Definition at line 837 of file json.h.

◆ key_

std::string Json::PathArgument::key_
private

Definition at line 836 of file json.h.

◆ kind_

Kind Json::PathArgument::kind_
private

Definition at line 838 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