Nuria Framework - Core
Core module of the NuriaProject Framework
 All Classes Functions Typedefs Enumerations Enumerator Groups
Public Member Functions | Friends | List of all members
Nuria::Variant::Iterator Class Reference

#include <variant.hpp>

Public Member Functions

 Iterator ()
 
 Iterator (const Iterator &other)
 
bool isValid () const
 
const Iteratoroperator= (const Iterator &other)
 
bool operator== (const Iterator &other) const
 
bool operator!= (const Iterator &other) const
 
Iteratoroperator++ ()
 
Iteratoroperator++ (int)
 
Iteratoroperator-- ()
 
Iteratoroperator-- (int)
 
const Iteratoroperator+= (int n)
 
const Iteratoroperator-= (int n)
 
Iterator operator+ (int n) const
 
Iterator operator- (int n) const
 
int operator- (const Iterator &other) const
 
QVariant key () const
 
QVariant value () const
 
QVariant operator* () const
 

Friends

class Nuria::Variant
 

Detailed Description

Iterator class for iterating over QVariants. This class works like all STL-style iterators.

See also
begin end
Warning
This iterator does not support modifiying items.

Constructor & Destructor Documentation

Nuria::Variant::Iterator::Iterator ( )

Constructs an invalid iterator. See Variant::begin and Variant::end.

Member Function Documentation

QVariant Nuria::Variant::Iterator::key ( ) const

Returns the key of the current item. If the iterated variant doesn't contain a map-type an invalid QVariant is returned.

See also
isMap

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