C++ wrappers to the native Eina_Iterator
.
More...
Public Types | |
typedef base_type::value_type | value_type |
Type for elements returned by the iterator. More... | |
typedef base_type::pointer | pointer |
Type for a pointer to an element. More... | |
typedef base_type::reference | reference |
Type for a reference to an element. More... | |
typedef base_type::difference_type | difference_type |
Type to represent the distance between two iterators. More... | |
typedef base_type::iterator_category | iterator_category |
Defines the iterator category as the same of the base class. More... | |
![]() | |
typedef std::remove_reference< std::enable_if<! ::efl::eo::is_eolian_object< T >::value, T const >::type >::type const | value_type |
Type for elements returned by the iterator. More... | |
typedef value_type * | pointer |
Type for a pointer to an element. More... | |
typedef value_type & | reference |
Type for a reference to an element. More... | |
typedef std::ptrdiff_t | difference_type |
Type to represent the distance between two iterators. More... | |
typedef std::input_iterator_tag | iterator_category |
Defines the iterator as being an input iterator. More... | |
Public Member Functions | |
iterator (Eina_Iterator *iterator_=0) | |
Creates a iterator wrapping the given native Eina_Iterator handle. More... | |
self_type & | operator++ () |
Move the iterator to the next position. More... | |
self_type & | operator++ (int) |
Move the iterator to the next position. More... | |
value_type & | operator* () const |
Get a reference to the element currently pointed by the iterator. More... | |
pointer | operator-> () const |
Return a pointer to the current element, which member will be accessed. More... | |
![]() | |
_common_iterator_base () | |
Default constructor. More... | |
_common_iterator_base (Eina_Iterator *iterator) | |
Creates a iterator wrapping the given native Eina_Iterator handle. More... | |
_common_iterator_base (self_type const &other) | |
Creates an iterator from another iterator of the same type. More... | |
~_common_iterator_base () | |
Release the internal native Eina iterator handle. | |
_common_iterator_base & | operator= (self_type const &other) |
Acquire the internal handle of the given iterator. More... | |
Eina_Iterator * | native_handle () const |
Get the handle for the wrapped Eina_Iterator . More... | |
Additional Inherited Members | |
![]() | |
Eina_Iterator * | _iterator |
C++ wrappers to the native Eina_Iterator
.
It provides a generic interface to the Eina_Iterator
functions, and automatically take care of allocating a deallocating resources using the RAII programming idiom.
typedef base_type::value_type efl::eina::iterator< T, Enable >::value_type |
Type for elements returned by the iterator.
typedef base_type::pointer efl::eina::iterator< T, Enable >::pointer |
Type for a pointer to an element.
typedef base_type::reference efl::eina::iterator< T, Enable >::reference |
Type for a reference to an element.
typedef base_type::difference_type efl::eina::iterator< T, Enable >::difference_type |
Type to represent the distance between two iterators.
typedef base_type::iterator_category efl::eina::iterator< T, Enable >::iterator_category |
Defines the iterator category as the same of the base class.
|
inlineexplicit |
Creates a iterator wrapping the given native Eina_Iterator
handle.
This constructor creates an iterator that wraps the given native Eina_Iterator
handle, providing a generic interface to it.
|
inline |
Move the iterator to the next position.
This operator increments the iterator, making it point to the position right after the current one. At the end, it returns a reference to itself.
References eina_iterator_next().
|
inline |
Move the iterator to the next position.
Works exactly like operator++().
|
inline |
Get a reference to the element currently pointed by the iterator.
|
inline |
Return a pointer to the current element, which member will be accessed.