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

osgEarth::Json::ValueConstIterator Class Reference

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

Inheritance diagram for osgEarth::Json::ValueConstIterator:
Collaboration diagram for osgEarth::Json::ValueConstIterator:

List of all members.

Public Types

typedef unsigned int size_t
typedef int difference_type
typedef const Valuereference
typedef const Valuepointer
typedef ValueConstIterator SelfType

Public Member Functions

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

Private Member Functions

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

Friends

class Value

Detailed Description

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

Definition at line 990 of file JsonUtils.


Member Typedef Documentation

Reimplemented from osgEarth::Json::ValueIteratorBase.

Definition at line 995 of file JsonUtils.

Definition at line 997 of file JsonUtils.

Definition at line 996 of file JsonUtils.

Reimplemented from osgEarth::Json::ValueIteratorBase.

Definition at line 998 of file JsonUtils.

Reimplemented from osgEarth::Json::ValueIteratorBase.

Definition at line 994 of file JsonUtils.


Constructor & Destructor Documentation

ValueConstIterator::ValueConstIterator ( )

Definition at line 311 of file JsonUtils.cpp.

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

Use by Value to create an iterator.

Definition at line 317 of file JsonUtils.cpp.

   : ValueIteratorBase( current )
{
}

Member Function Documentation

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

Definition at line 1039 of file JsonUtils.

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

Definition at line 1033 of file JsonUtils.

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

Definition at line 1013 of file JsonUtils.

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

Definition at line 1020 of file JsonUtils.

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

Definition at line 1027 of file JsonUtils.

      {
         decrement();
         return *this;
      }
ValueConstIterator & ValueConstIterator::operator= ( const ValueIteratorBase other)

Definition at line 334 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 992 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