commore  1.0.6-SNAPSHOT
All Classes Namespaces Functions Variables Typedefs Enumerations Pages
commore::Array< T, A >::iterator Class Reference

#include <Array.h>

+ Inheritance diagram for commore::Array< T, A >::iterator:

Public Member Functions

bool next ()
 
T & current ()
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
T & operator* ()
 
- Public Member Functions inherited from commore::BaseArray::iterator
Dummy & get_dummy () const
 
Byteget_data ()
 
bool more () const
 
size_t index () const
 
 operator bool () const
 

Additional Inherited Members

- Protected Attributes inherited from commore::BaseArray::iterator
Bytecurrent_data_
 
size_t size_
 
size_t current_index_
 

Detailed Description

template<class T, class A>
class commore::Array< T, A >::iterator

Array iterator

Examples:
/examples/coding/Array.cpp.

Member Function Documentation

template<class T, class A>
T& commore::Array< T, A >::iterator::current ( )
inline

Get current element

Returns
a reference on current element
Remarks
if iterator is on the end of array result is not predictable.
template<class T, class A>
bool commore::Array< T, A >::iterator::next ( )
inline

Get next element

Returns
true if not end of array
template<class T, class A>
T& commore::Array< T, A >::iterator::operator* ( )
inline

Get current element

Returns
a reference on current element
Remarks
if iterator is on the end of array result is not predictable.
template<class T, class A>
iterator& commore::Array< T, A >::iterator::operator++ ( )
inline

Get next element

Returns
iterator reference
template<class T, class A>
iterator commore::Array< T, A >::iterator::operator++ ( int  )
inline

Get next element

Returns
iterator on pevious element

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