osgEarth 2.1.1
Public Types | Public Member Functions | Private Member Functions | Friends

osgEarth::Json::ValueIterator Class Reference

Experimental and untested: iterator for object and array value. More...

Inheritance diagram for osgEarth::Json::ValueIterator:
Collaboration diagram for osgEarth::Json::ValueIterator:

List of all members.

Public Types

typedef unsigned int size_t
typedef int difference_type
typedef Valuereference
typedef Valuepointer
typedef ValueIterator SelfType

Public Member Functions

 ValueIterator ()
 ValueIterator (const ValueConstIterator &other)
 ValueIterator (const ValueIterator &other)
SelfTypeoperator= (const SelfType &other)
SelfType operator++ (int)
SelfType operator-- (int)
SelfTypeoperator-- ()
SelfTypeoperator++ ()
reference operator* () const

Private Member Functions

 ValueIterator (const Value::ObjectValues::iterator &current)

Friends

class Value

Detailed Description

Experimental and untested: iterator for object and array value.

Definition at line 1048 of file JsonUtils.


Member Typedef Documentation

Reimplemented from osgEarth::Json::ValueIteratorBase.

Definition at line 1053 of file JsonUtils.

Definition at line 1055 of file JsonUtils.

Definition at line 1054 of file JsonUtils.

Reimplemented from osgEarth::Json::ValueIteratorBase.

Definition at line 1056 of file JsonUtils.

Reimplemented from osgEarth::Json::ValueIteratorBase.

Definition at line 1052 of file JsonUtils.


Constructor & Destructor Documentation

ValueIterator::ValueIterator ( )

Definition at line 349 of file JsonUtils.cpp.

{
}
ValueIterator::ValueIterator ( const ValueConstIterator other)

Definition at line 371 of file JsonUtils.cpp.

   : ValueIteratorBase( other )
{
}
ValueIterator::ValueIterator ( const ValueIterator other)

Definition at line 376 of file JsonUtils.cpp.

   : ValueIteratorBase( other )
{
}
ValueIterator::ValueIterator ( const Value::ObjectValues::iterator &  current) [explicit, private]

Use by Value to create an iterator.

Definition at line 355 of file JsonUtils.cpp.

   : ValueIteratorBase( current )
{
}

Member Function Documentation

reference osgEarth::Json::ValueIterator::operator* ( ) const [inline]

Definition at line 1100 of file JsonUtils.

      {
         return deref();
      }
SelfType& osgEarth::Json::ValueIterator::operator++ ( ) [inline]

Definition at line 1094 of file JsonUtils.

      {
         increment();
         return *this;
      }
SelfType osgEarth::Json::ValueIterator::operator++ ( int  ) [inline]

Definition at line 1074 of file JsonUtils.

      {
         SelfType temp( *this );
         ++*this;
         return temp;
      }
SelfType osgEarth::Json::ValueIterator::operator-- ( int  ) [inline]

Definition at line 1081 of file JsonUtils.

      {
         SelfType temp( *this );
         --*this;
         return temp;
      }
SelfType& osgEarth::Json::ValueIterator::operator-- ( ) [inline]

Definition at line 1088 of file JsonUtils.

      {
         decrement();
         return *this;
      }
ValueIterator & ValueIterator::operator= ( const SelfType other)

Definition at line 382 of file JsonUtils.cpp.

{
   copy( other );
   return *this;
}

Here is the call graph for this function:


Friends And Related Function Documentation

friend class Value [friend]

Definition at line 1050 of file JsonUtils.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines