Base Module  VST 3.6.5
SDK for developing VST Plug-in
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions
TArrayIterator< T > Class Template Reference

Iterator for array template container. More...

#include <tarray.h>

+ Inheritance diagram for TArrayIterator< T >:

Public Member Functions

 TArrayIterator (const TArrayBase< T > &arr)
 Iterator constructor. More...
 
virtual bool done () const
 Check if end of container is reached. More...
 
virtual T & next ()
 Returns the current data and advances the iterator. postfix as in t = c++;. More...
 
virtual T & previous ()
 Returns the current data and backup. postfix as in t = c–;. More...
 
virtual T & current () const
 Returns the current data. More...
 
virtual void first ()
 Move to first data. More...
 
virtual void last ()
 Move to last data. More...
 
const TArrayBase< T > & array () const
 Return array reference. More...
 
- Public Member Functions inherited from TIterator< T >
 TIterator (const TContainer< T > &cont)
 
virtual ~TIterator ()
 
T & next (const T &)
 Advance to next equal. More...
 
T & previous (const T &)
 Backup to previous equal. More...
 
const TContainer< T > & container () const
 Return container reference. More...
 
 operator int32 () const
 Check if not end. More...
 
T & operator++ ()
 Advance the iterator to the next item and return it. More...
 
T & operator++ (int)
 Return the current item and advance the iterator to the next. More...
 
T & operator+= (int32 n)
 Advance the iterator n places and returns the item. More...
 
T & operator-- ()
 Decrement the iterator by one and return the item. More...
 
T & operator-- (int)
 Return the current item and decrement the iterator by one. More...
 
T & operator-= (int32)
 Decrement the iterator n places and returns the item. More...
 
T & operator() () const
 Return current item. More...
 

Additional Inherited Members

- Protected Attributes inherited from TIterator< T >
const TContainer< T > & _container
 Iterated container. More...
 

Detailed Description

template<class T>
class Steinberg::TArrayIterator< T >

Iterator for array template container.

See also
TArrayBase, TArray, TOrderedArray, TSortableArray

Constructor & Destructor Documentation

TArrayIterator ( const TArrayBase< T > &  arr)
inline

Iterator constructor.

Member Function Documentation

bool done ( ) const
virtual

Check if end of container is reached.

"done" returns whether or not this iterator can advance any further.

Implements TIterator< T >.

T & next ( )
virtual

Returns the current data and advances the iterator. postfix as in t = c++;.

"next" returns the current item in the array and advances the iterator to the next item.

Implements TIterator< T >.

T & previous ( )
virtual

Returns the current data and backup. postfix as in t = c–;.

"previous" returns the current item in the array and decrements the iterator to the previous item.

Implements TIterator< T >.

T & current ( ) const
virtual

Returns the current data.

"current" returns the current array item.

Implements TIterator< T >.

void first ( )
virtual

Move to first data.

"first" moves the iterator to the first item.

Implements TIterator< T >.

void last ( )
virtual

Move to last data.

"last" moves the iterator to the last item.

Implements TIterator< T >.

const TArrayBase< T > & array ( ) const

Return array reference.

"array" returns a reference to the array being iterated.

Empty

Copyright ©2015 Steinberg Media Technologies GmbH. All Rights Reserved.