Assimp  v3.1.1 (June 2014)
Value::Iterator Class Reference

This class implements an iterator through a Value list. More...

Public Member Functions

ValuegetNext ()
 Returns the next item and moves the iterator to it. More...
 
bool hasNext () const
 Will return true, if another value is in the list. More...
 
 Iterator ()
 The default class constructor. More...
 
 Iterator (const Iterator &rhs)
 
 Iterator (Value *start)
 The class constructor with the start value. More...
 
Iteratoroperator++ ()
 The pre-increment operator. More...
 
const Iterator operator++ (int)
 The post-increment operator. More...
 
Valueoperator-> () const
 The * operator. More...
 
bool operator== (const Iterator &rhs) const
 The compare operator. More...
 
 ~Iterator ()
 The class destructor. More...
 

Detailed Description

This class implements an iterator through a Value list.

When getting a new value you need to know how to iterate through it. The Value::Iterator will help you here:

Value *val = node->getValue();
Value::Iterator it( val );
while( it.hasNext() ) {
Value v( it.getNext );
}
This class implements an iterator through a Value list.
Definition: Value.h:55
This class implements a value.
Definition: Value.h:40

Constructor & Destructor Documentation

◆ Iterator() [1/3]

Value::Iterator::Iterator ( )

The default class constructor.

◆ Iterator() [2/3]

Value::Iterator::Iterator ( Value start)

The class constructor with the start value.

Parameters
start[in] The first value for iteration,

◆ Iterator() [3/3]

Value::Iterator::Iterator ( const Iterator rhs)

◆ ~Iterator()

Value::Iterator::~Iterator ( )

The class destructor.

Member Function Documentation

◆ getNext()

Value * Value::Iterator::getNext ( )

Returns the next item and moves the iterator to it.

Returns
The next value, is ddl_nullptr in case of being the last item.

◆ hasNext()

bool Value::Iterator::hasNext ( ) const

Will return true, if another value is in the list.

Returns
true if another value is there.

◆ operator++() [1/2]

Value::Iterator & Value::Iterator::operator++ ( )

The pre-increment operator.

◆ operator++() [2/2]

const Value::Iterator Value::Iterator::operator++ ( int  )

The post-increment operator.

◆ operator->()

Value * Value::Iterator::operator-> ( ) const

The * operator.

Returns
The instance or ddl_nullptr if end of list is reached.

◆ operator==()

bool Value::Iterator::operator== ( const Iterator rhs) const

The compare operator.

Parameters
rhs[in] The instance to compare.
Returns
true if equal.

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