JsonArray Class Reference

#include <ArmarXGui/libraries/StructuralJson/JsonArray.h>

+ Inheritance diagram for JsonArray:

Public Member Functions

void add (const JsonArray &value)
 
void add (const JsonDataPtr &value)
 
void add (const JsonValue &value)
 
void clear ()
 
JsonDataPtr clone () override
 
 JsonArray ()
 
 JsonArray (const std::vector< JsonValue > &values)
 
void remove (uint index)
 
void set (uint index, const JsonDataPtr &value)
 
void set (uint index, const JsonValue &value)
 
uint size ()
 
JsonArrayPtr toSharedPtr () const
 
void writeJson (const JsonWriterPtr &writer) override
 
- Public Member Functions inherited from JsonData
LexerInfo getLexerEndOffset ()
 
LexerInfo getLexerStartOffset ()
 
 JsonData ()
 
void setLexerEndOffset (LexerInfo lexerEndOffset)
 
void setLexerStartOffset (LexerInfo lexerStartOffset)
 
std::string toJsonString (int indenting=0, const std::string indentChars=" ", bool jsStyleKeys=false)
 
virtual ~JsonData ()=default
 

Friends

class JPathNavigator
 

Detailed Description

Definition at line 34 of file JsonArray.h.

Constructor & Destructor Documentation

◆ JsonArray() [1/2]

JsonArray ( )

Definition at line 27 of file JsonArray.cpp.

+ Here is the caller graph for this function:

◆ JsonArray() [2/2]

JsonArray ( const std::vector< JsonValue > &  values)

Definition at line 31 of file JsonArray.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ add() [1/3]

void add ( const JsonArray value)

Definition at line 62 of file JsonArray.cpp.

+ Here is the call graph for this function:

◆ add() [2/3]

void add ( const JsonDataPtr value)

Definition at line 52 of file JsonArray.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add() [3/3]

void add ( const JsonValue value)

Definition at line 57 of file JsonArray.cpp.

+ Here is the call graph for this function:

◆ clear()

void clear ( )

Definition at line 93 of file JsonArray.cpp.

◆ clone()

JsonDataPtr clone ( )
overridevirtual

Implements JsonData.

Definition at line 104 of file JsonArray.cpp.

+ Here is the call graph for this function:

◆ remove()

void remove ( uint  index)

Definition at line 78 of file JsonArray.cpp.

◆ set() [1/2]

void set ( uint  index,
const JsonDataPtr value 
)

Definition at line 67 of file JsonArray.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ set() [2/2]

void set ( uint  index,
const JsonValue value 
)

Definition at line 72 of file JsonArray.cpp.

+ Here is the call graph for this function:

◆ size()

uint size ( )

Definition at line 88 of file JsonArray.cpp.

◆ toSharedPtr()

JsonArrayPtr toSharedPtr ( ) const

Definition at line 98 of file JsonArray.cpp.

+ Here is the call graph for this function:

◆ writeJson()

void writeJson ( const JsonWriterPtr writer)
overridevirtual

Implements JsonData.

Definition at line 39 of file JsonArray.cpp.

Friends And Related Function Documentation

◆ JPathNavigator

friend class JPathNavigator
friend

Definition at line 36 of file JsonArray.h.


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