Data Structures | Functions
Accessor Iterator

Data Structures

struct  efl::eina::accessor_iterator< T, Enable >
 
struct  efl::eina::accessor_iterator< T, typename std::enable_if< ! ::efl::eo::is_eolian_object< T >::value, T >::type >
 Random access iterator for eina::accessor. More...
 
struct  efl::eina::accessor_iterator< T, typename std::enable_if< ::efl::eo::is_eolian_object< T >::value, T >::type >
 Specialization for all data types that are not derivated from efl::eo::concrete. More...
 

Functions

template<typename U >
bool efl::eina::operator== (accessor_iterator< U > const &lhs, accessor_iterator< U > const &rhs)
 Check if lhs and rhs point to the same position. More...
 
template<typename U >
bool efl::eina::operator!= (accessor_iterator< U > const &lhs, accessor_iterator< U > const &rhs)
 Check if lhs and rhs point to different positions. More...
 
template<typename U >
accessor_iterator< U >::difference_type efl::eina::operator- (accessor_iterator< U > const &lhs, accessor_iterator< U > const &rhs)
 Get the distance between two accessor_iterators. More...
 
template<typename U >
accessor_iterator< U > efl::eina::operator+ (accessor_iterator< U > lhs, typename accessor_iterator< U >::difference_type rhs)
 Get an accessor_iterator moved rhs positions forward. More...
 
template<typename U >
accessor_iterator< U > efl::eina::operator+ (typename accessor_iterator< U >::difference_type lhs, accessor_iterator< U > const &rhs)
 Get an accessor_iterator moved lhs positions forward. More...
 
template<typename U >
bool efl::eina::operator< (accessor_iterator< U > const &lhs, accessor_iterator< U > const &rhs)
 Check if lhs points to a position before the position pointed by rhs. More...
 
template<typename U >
bool efl::eina::operator> (accessor_iterator< U > const &lhs, accessor_iterator< U > const &rhs)
 Check if lhs points to a position after the position pointed by rhs. More...
 
template<typename U >
bool efl::eina::operator<= (accessor_iterator< U > const &lhs, accessor_iterator< U > const &rhs)
 Check if the position pointed by lhs is the same or is before the one pointed by rhs. More...
 
template<typename U >
bool efl::eina::operator>= (accessor_iterator< U > const &lhs, accessor_iterator< U > const &rhs)
 Check if the position pointed by lhs is the same or is after the one pointed by rhs. More...
 
template<typename U >
void efl::eina::swap (accessor_iterator< U > &lhs, accessor_iterator< U > &rhs)
 Swap content between two accessor_iterators. More...
 

Detailed Description

Function Documentation

◆ operator==()

template<typename U >
bool efl::eina::operator== ( accessor_iterator< U > const &  lhs,
accessor_iterator< U > const &  rhs 
)

Check if lhs and rhs point to the same position.

Parameters
lhsaccessor_iterator at the left side of the expression.
rhsaccessor_iterator at the right side of the expression.
Returns
true if both lhs and rhs point to the same position.

◆ operator!=()

template<typename U >
bool efl::eina::operator!= ( accessor_iterator< U > const &  lhs,
accessor_iterator< U > const &  rhs 
)

Check if lhs and rhs point to different positions.

Parameters
lhsaccessor_iterator at the left side of the expression.
rhsaccessor_iterator at the right side of the expression.
Returns
true if lhs and rhs point to different positions.

◆ operator-()

template<typename U >
accessor_iterator<U>::difference_type efl::eina::operator- ( accessor_iterator< U > const &  lhs,
accessor_iterator< U > const &  rhs 
)

Get the distance between two accessor_iterators.

Parameters
lhsaccessor_iterator at the left side of the expression.
rhsaccessor_iterator at the right side of the expression.
Returns
The number of elements between lhs and rhs.

◆ operator+() [1/2]

template<typename U >
accessor_iterator<U> efl::eina::operator+ ( accessor_iterator< U >  lhs,
typename accessor_iterator< U >::difference_type  rhs 
)

Get an accessor_iterator moved rhs positions forward.

Parameters
lhsaccessor_iterator object.
rhsNumber of positions relative to the current element.
Returns
Copy of lhs moved rhs positions forward.

◆ operator+() [2/2]

template<typename U >
accessor_iterator<U> efl::eina::operator+ ( typename accessor_iterator< U >::difference_type  lhs,
accessor_iterator< U > const &  rhs 
)

Get an accessor_iterator moved lhs positions forward.

Parameters
lhsNumber of positions relative to the current element.
rhsaccessor_iterator object.
Returns
Copy of rhs moved lhs positions forward.

◆ operator<()

template<typename U >
bool efl::eina::operator< ( accessor_iterator< U > const &  lhs,
accessor_iterator< U > const &  rhs 
)

Check if lhs points to a position before the position pointed by rhs.

Parameters
lhsaccessor_iterator at the left side of the expression.
rhsaccessor_iterator at the right side of the expression.
Returns
true if lhs points to a position before the position pointed by rhs, false otherwise.

◆ operator>()

template<typename U >
bool efl::eina::operator> ( accessor_iterator< U > const &  lhs,
accessor_iterator< U > const &  rhs 
)

Check if lhs points to a position after the position pointed by rhs.

Parameters
lhsaccessor_iterator at the left side of the expression.
rhsaccessor_iterator at the right side of the expression.
Returns
true if lhs points to a position after the position pointed by rhs, false otherwise.

◆ operator<=()

template<typename U >
bool efl::eina::operator<= ( accessor_iterator< U > const &  lhs,
accessor_iterator< U > const &  rhs 
)

Check if the position pointed by lhs is the same or is before the one pointed by rhs.

Parameters
lhsaccessor_iterator at the left side of the expression.
rhsaccessor_iterator at the right side of the expression.
Returns
true if the position pointed by lhs is the same or is before the position pointed by rhs, false otherwise.

◆ operator>=()

template<typename U >
bool efl::eina::operator>= ( accessor_iterator< U > const &  lhs,
accessor_iterator< U > const &  rhs 
)

Check if the position pointed by lhs is the same or is after the one pointed by rhs.

Parameters
lhsaccessor_iterator at the left side of the expression.
rhsaccessor_iterator at the right side of the expression.
Returns
true if the position pointed by lhs is the same or is after the position pointed by rhs, false otherwise.

◆ swap()

template<typename U >
void efl::eina::swap ( accessor_iterator< U > &  lhs,
accessor_iterator< U > &  rhs 
)