Public Types | Public Member Functions
efl::eina::range_inarray< T > Struct Template Reference

Range class for inarray. More...

Public Types

typedef _range_template< T, _inarray_access_traits_base_type
 Type for the base class. More...
 
typedef std::remove_const< T >::type value_type
 The type of each element. More...
 
- Public Types inherited from efl::eina::_range_template< T, _inarray_access_traits >
typedef std::integral_constant< bool, !std::is_const< T >::valueis_mutable
 Type that specifies if the elements can be modified. More...
 
typedef nonconst_container_value_type< T >::type value_type
 The type of each element. More...
 
typedef std::conditional< is_mutable::value, _mutable_range_template< value_type, _inarray_access_traits >, _const_range_template< value_type, _inarray_access_traits > >::type _base_type
 Type for the base class. More...
 
typedef _base_type::native_handle_type native_handle_type
 Type for the native handle of the container. More...
 
typedef value_typereference
 Type for a reference to an element. More...
 
typedef value_type const & const_reference
 Type for a constant reference to an element. More...
 
typedef value_typepointer
 Type for a pointer to an element. More...
 
typedef value_type const * const_pointer
 Type for a constant pointer to an element. More...
 
typedef _inarray_access_traits ::template const_iterator< value_type >::type const_iterator
 Type for constant iterator to the range. More...
 
typedef _base_type::const_reverse_iterator const_reverse_iterator
 Type for constant reverse iterator to the range. More...
 
typedef _inarray_access_traits ::template iterator< value_type >::type iterator
 Type for iterator to the range. More...
 
typedef _base_type::reverse_iterator reverse_iterator
 Type for reverse iterator to the range. More...
 
typedef _base_type::size_type size_type
 Type for size information. More...
 
typedef _base_type::difference_type difference_type
 Type to represent the distance between two iterators. More...
 

Public Member Functions

 range_inarray (Eina_Inarray *array)
 Creates a range from a native Eina inline array handle.
 
 range_inarray (inarray< T > &array)
 Creates a range from a inarray object.
 
value_typeoperator[] (std::size_t index) const
 Get the element at the given position in the array. More...
 
- Public Member Functions inherited from efl::eina::_range_template< T, _inarray_access_traits >
 _range_template ()
 Creates a singular range object.
 
 _range_template (native_handle_type handle)
 Creates a range object wrapping the given native container handle.
 

Detailed Description

template<typename T>
struct efl::eina::range_inarray< T >

Range class for inarray.

Member Typedef Documentation

◆ _base_type

Type for the base class.

◆ value_type

template<typename T >
typedef std::remove_const<T>::type efl::eina::range_inarray< T >::value_type

The type of each element.

Member Function Documentation

◆ operator[]()

template<typename T >
value_type& efl::eina::range_inarray< T >::operator[] ( std::size_t  index) const
inline

Get the element at the given position in the array.

Parameters
indexPosition of the element.
Returns
Reference to the element at the given position.

References efl::eina::_inarray_access_traits::index().