RStudio Launcher Plugin SDK  1.1.3
A software development kit for creating plugins that work the the RStudio Launcher.
Public Member Functions | Friends | List of all members
rstudio::launcher_plugins::json::Object::Iterator Class Reference

Class which allows iterating over the members of a JSON object. More...

#include <Json.hpp>

Inheritance diagram for rstudio::launcher_plugins::json::Object::Iterator:

Public Member Functions

 Iterator (const Object *in_parent, std::ptrdiff_t in_startPos=0)
 Constructor. More...
 
 Iterator (const Iterator &in_other)=default
 Copy constructor. More...
 
Iteratoroperator= (const Iterator &in_other)
 Assignment operator. More...
 
Iteratoroperator++ ()
 Pre-increment operator. More...
 
Iteratoroperator-- ()
 Pre-decrement operator. More...
 
Iterator operator++ (int)
 Post-increment operator. More...
 
Iterator operator-- (int)
 Post-decrement operator. More...
 
bool operator== (const Iterator &in_other) const
 Equality operator. More...
 
bool operator!= (const Iterator &in_other) const
 Inequality operator. More...
 
reference operator* () const
 Dereference operator. More...
 

Friends

class Object
 

Detailed Description

Class which allows iterating over the members of a JSON object.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

rstudio::launcher_plugins::json::Object::Iterator::Iterator ( const Object in_parent,
std::ptrdiff_t  in_startPos = 0 
)
explicit

Constructor.

Parameters
in_parentThe parent object which will be iterated.
in_startPosThe starting position of the iterator. Default: the first member.

◆ Iterator() [2/2]

rstudio::launcher_plugins::json::Object::Iterator::Iterator ( const Iterator in_other)
default

Copy constructor.

Parameters
in_otherThe iterator to copy.

Member Function Documentation

◆ operator!=()

bool rstudio::launcher_plugins::json::Object::Iterator::operator!= ( const Iterator in_other) const

Inequality operator.

Returns
True if this iterator is not the same as in_other; false otherwise.

◆ operator*()

reference rstudio::launcher_plugins::json::Object::Iterator::operator* ( ) const

Dereference operator.

Returns
A reference to the value this iterator is currently pointing at.

◆ operator++() [1/2]

Iterator& rstudio::launcher_plugins::json::Object::Iterator::operator++ ( )

Pre-increment operator.

Returns
A reference to this operator, incremented by one position.

◆ operator++() [2/2]

Iterator rstudio::launcher_plugins::json::Object::Iterator::operator++ ( int  )

Post-increment operator.

Returns
A copy of this operator prior to this increment.

◆ operator--() [1/2]

Iterator& rstudio::launcher_plugins::json::Object::Iterator::operator-- ( )

Pre-decrement operator.

Returns
A reference to this operator, decremented by one position.

◆ operator--() [2/2]

Iterator rstudio::launcher_plugins::json::Object::Iterator::operator-- ( int  )

Post-decrement operator.

Returns
A copy of this operator prior to this decrement.

◆ operator=()

Iterator& rstudio::launcher_plugins::json::Object::Iterator::operator= ( const Iterator in_other)

Assignment operator.

Parameters
in_otherThe iterator to copy.
Returns
A reference to this iterator.

◆ operator==()

bool rstudio::launcher_plugins::json::Object::Iterator::operator== ( const Iterator in_other) const

Equality operator.

Returns
True if this iterator is the same as in_other; false otherwise.

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