Specialization for all data types that are not derivated from efl::eo::concrete. More...
Public Types | |
typedef T | value_type |
Type of the elements. More... | |
typedef value_type * | pointer |
Pointer to element type. More... | |
typedef value_type & | reference |
Reference to element type. More... | |
typedef std::ptrdiff_t | difference_type |
Type to represent the distance between two accessor_iterators. | |
typedef std::input_iterator_tag | iterator_category |
Defines the iterator as being a random access iterator. More... | |
Public Member Functions | |
accessor_iterator (accessor< T > const &a, unsigned int pos=0u) | |
Creates an accessor_iterator to the given eina::accessor . More... | |
accessor_iterator< T > & | operator+= (difference_type i) |
Move the iterator forward by i positions. More... | |
accessor_iterator< T > & | operator-= (difference_type i) |
Move the iterator back by i positions. More... | |
value_type | operator[] (difference_type i) |
Get the element i positions away from the current element. More... | |
accessor_iterator< T > & | operator++ () |
Move the iterator to the next position. More... | |
accessor_iterator< T > & | operator-- () |
Move the iterator to the previous position. More... | |
accessor_iterator< T > & | operator++ (int) |
Move the iterator to the next position. More... | |
accessor_iterator< T > & | operator-- (int) |
Move the iterator to the previous position. More... | |
value_type | operator* () const |
Get a reference to the element currently pointed by the accessor_iterator . More... | |
pointer | operator-> () const |
Return a pointer to a copy of the current element, which member will be accessed. More... | |
void | swap (accessor_iterator< T > &other) |
Swap content with the given accessor_iterator . More... | |
Data Fields | |
accessor< T > | _accessor |
unsigned int | _index |
pointer | _tmp_value |
Specialization for all data types that are not derivated from efl::eo::concrete.
typedef T efl::eina::accessor_iterator< T, typename std::enable_if< ::efl::eo::is_eolian_object< T >::value, T >::type >::value_type |
Type of the elements.
typedef value_type* efl::eina::accessor_iterator< T, typename std::enable_if< ::efl::eo::is_eolian_object< T >::value, T >::type >::pointer |
Pointer to element type.
typedef value_type& efl::eina::accessor_iterator< T, typename std::enable_if< ::efl::eo::is_eolian_object< T >::value, T >::type >::reference |
Reference to element type.
typedef std::input_iterator_tag efl::eina::accessor_iterator< T, typename std::enable_if< ::efl::eo::is_eolian_object< T >::value, T >::type >::iterator_category |
Defines the iterator as being a random access iterator.
|
inline |
Creates an accessor_iterator
to the given eina::accessor
.
a | eina::accessor object. |
pos | Initial position of the iterator (Default = 0 ). |
This constructor creates an accessor_iterator
for the given eina::accessor
object. The position initially pointed by the iterator can be supplied via the pos
argument, by default it is the first position (index 0
).
|
inline |
Move the iterator forward by i
positions.
i | Number of positions to move. |
accessor_iterator
itself.
|
inline |
Move the iterator back by i
positions.
i | Number of positions to move. |
accessor_iterator
itself.
|
inline |
Get the element i
positions away from the current element.
i | Position relative to the current element. |
i
positions away from the element currently pointed by the accessor_iterator
.
|
inline |
Move the iterator to the next position.
accessor_iterator
itself.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.
|
inline |
Move the iterator to the previous position.
accessor_iterator
itself.This operator decrements the iterator, making it point to the position right before the current one. At the end, it returns a reference to itself.
|
inline |
Move the iterator to the next position.
accessor_iterator
before the change.This operator increments the iterator, making it point to the position right after the current one. At the end, it returns a copy of the accessor_iterator
before the change.
|
inline |
Move the iterator to the previous position.
accessor_iterator
before the change.This operator decrements the iterator, making it point to the position right before the current one. At the end, it returns a copy of the accessor_iterator
before the change.
|
inline |
Get a reference to the element currently pointed by the accessor_iterator
.
|
inline |
Return a pointer to a copy of the current element, which member will be accessed.
accessor_iterator
.
|
inline |
Swap content with the given accessor_iterator
.
other | Another accessor_iterator of the same type. |
References efl::eina::swap().