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

Range for ptr_array. More...

Public Types

typedef _range_template< T, _ptr_array_access_traits_base_type
 Type for the base class. More...
 
typedef _base_type::value_type value_type
 The type of each element. More...
 
typedef _base_type::native_handle_type native_handle_type
 
- Public Types inherited from efl::eina::_range_template< T, _ptr_array_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, _ptr_array_access_traits >, _const_range_template< value_type, _ptr_array_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 _ptr_array_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 _ptr_array_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_ptr_array (native_handle_type array)
 Creates a range from a native Eina array handle.
 
template<typename Allocator >
 range_ptr_array (ptr_array< value_type, Allocator > &array)
 Creates a range from a ptr_array 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, _ptr_array_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_ptr_array< T >

Range for ptr_array.

Member Typedef Documentation

◆ _base_type

Type for the base class.

◆ value_type

template<typename T>
typedef _base_type::value_type efl::eina::range_ptr_array< T >::value_type

The type of each element.

Member Function Documentation

◆ operator[]()

template<typename T>
value_type& efl::eina::range_ptr_array< 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.