commore  1.0.6-SNAPSHOT
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
commore::Array< T, A >::const_iterator Class Reference

#include <Array.h>

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

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from commore::BaseArray::const_iterator
 const_iterator ()
 
- Protected Attributes inherited from commore::BaseArray::const_iterator
Bytecurrent_data_
 
size_t size_
 
size_t current_index_
 

Detailed Description

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

Const Array iterator

Examples:
/examples/coding/Array.cpp.

Member Function Documentation

template<class T, class A>
const T& commore::Array< T, A >::const_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. element is not modifiable
template<class T, class A>
bool commore::Array< T, A >::const_iterator::next ( )
inline

Get next element

Returns
true if not end of array
template<class T, class A>
const T& commore::Array< T, A >::const_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>
const_iterator& commore::Array< T, A >::const_iterator::operator++ ( )
inline

Get next element

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

Get next element

Returns
iterator on pevious element

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