Public Types | Public Member Functions | Friends
efl::eina::array< T, CloneAllocator, Enable > Class Template Reference

Public Types

typedef _base_type::value_type value_type
 The type of each element. More...
 
typedef _base_type::reference reference
 Type for a reference to an element. More...
 
typedef _base_type::const_reference const_reference
 Type for a constant reference to an element. More...
 
typedef _base_type::const_iterator const_iterator
 Type for a iterator for this container. More...
 
typedef _base_type::iterator iterator
 Type for a constant iterator for this container. More...
 
typedef _base_type::pointer pointer
 Type for a pointer to an element. More...
 
typedef _base_type::const_pointer const_pointer
 Type for a constant pointer for an element. More...
 
typedef _base_type::size_type size_type
 Type for size information used in the array. More...
 
typedef _base_type::difference_type difference_type
 Type to represent the distance between two iterators. More...
 
typedef _base_type::clone_allocator_type clone_allocator_type
 
typedef _base_type::reverse_iterator reverse_iterator
 Type for the clone allocator. More...
 
typedef _base_type::const_reverse_iterator const_reverse_iterator
 Type for reverse iterator for this container. More...
 
typedef _base_type::native_handle_type native_handle_type
 

Public Member Functions

void clear ()
 Remove all the elements of the array.
 
std::size_t size () const
 Get the current size of the array. More...
 
bool empty () const
 Check if the array is empty. More...
 
clone_allocator_type get_clone_allocator () const
 Get the clone allocator of the array. More...
 
void push_back (const_reference a)
 Add a copy of the given element at the end of the array. More...
 
void push_back (pointer p)
 Add the object pointed by p as a element at the end of the array. More...
 
template<typename Deleter >
void push_back (std::unique_ptr< T, Deleter > &p)
 Add the object pointed by p as a element at the end of the array. More...
 
void pop_back ()
 Remove the last element of the array.
 
iterator insert (iterator i, value_type const &t)
 Insert a copy of the given element at the given position. More...
 
iterator insert (iterator i, pointer pv)
 Insert the object pointed by pv as a element at the given position. More...
 
template<typename Deleter >
iterator insert (iterator i, std::unique_ptr< value_type, Deleter > &p)
 Insert the object pointed by p as a element at the given position. More...
 
iterator insert (iterator i, size_t n, value_type const &t)
 Insert n copies of t at the given position. More...
 
iterator insert (iterator i, size_t n, pointer p)
 Insert the object pointed by p and n-1 copies of it as elements at the given position. More...
 
template<typename InputIterator >
iterator insert (iterator p, InputIterator i, InputIterator j, typename eina::enable_if<!eina::is_integral< InputIterator >::value >::type *=0)
 Insert the elements between the given range at the given position. More...
 
iterator erase (iterator q)
 Remove the element at the given position. More...
 
iterator erase (iterator i, iterator j)
 Remove the elements between the given range. More...
 
template<typename InputIterator >
void assign (InputIterator i, InputIterator j, typename eina::enable_if<!eina::is_integral< InputIterator >::value >::type *=0)
 Replace the content of the array by the elements in the given range. More...
 
void assign (size_type n, value_type const &t)
 Replace the content of the array by n copies t. More...
 
value_typeback ()
 Get a reference to the last element. More...
 
value_type const & back () const
 Get a constant reference to the last element. More...
 
value_typefront ()
 Get a reference to the first element. More...
 
value_type const & front () const
 Get a constant reference to the first element. More...
 
const_iterator begin () const
 Get a constant iterator pointing to the first element of the array. More...
 
iterator begin ()
 Get an iterator pointing to the first element of the array. More...
 
const_iterator end () const
 Get a constant iterator to the position following the last element of the array. More...
 
iterator end ()
 Get an iterator to the position following the last element of the array. More...
 
const_reverse_iterator rbegin () const
 Get a constant reverse iterator pointing to the reverse begin of the array. More...
 
reverse_iterator rbegin ()
 Get a reverse iterator pointing to the reverse begin of the array. More...
 
const_reverse_iterator rend () const
 Get a constant reverse iterator pointing to the reverse end of the array. More...
 
reverse_iterator rend ()
 Get a reverse iterator pointing to the reverse end of the array. More...
 
const_iterator cbegin () const
 Get a constant iterator pointing to the first element of the array. More...
 
const_iterator cend () const
 Get a constant iterator to the position following the last element of the array. More...
 
const_reverse_iterator crbegin () const
 Get a constant reverse iterator pointing to the reverse begin of the array. More...
 
const_reverse_iterator crend () const
 Get a constant reverse iterator pointing to the reverse end of the array. More...
 
eina::iterator< T > ibegin ()
 Get an eina::iterator pointing to the first element of the array. More...
 
eina::iterator< T const > ibegin () const
 Get a constant eina::iterator pointing to the first element of the array. More...
 
eina::iterator< T > iend ()
 Get an eina::iterator to the position following the last element of the array. More...
 
eina::iterator< T const > iend () const
 Get an constant eina::iterator to the position following the last element of the array. More...
 
eina::iterator< T const > cibegin () const
 Get an eina::iterator pointing to the first element of the array. More...
 
eina::iterator< T const > ciend () const
 Get an constant eina::iterator to the position following the last element of the array. More...
 
void swap (ptr_array< T, CloneAllocator > &other)
 Swap content between two arrays. More...
 
size_type max_size () const
 Get the maximum number of elements ptr_array can hold. More...
 
Eina_Arrayrelease_native_handle ()
 
Eina_Arraynative_handle ()
 Get a handle for the wrapped Eina_Array. More...
 
Eina_Array const * native_handle () const
 Get a constant handle for the wrapped Eina_Array. More...
 

Friends

bool operator== (array< T, CloneAllocator > const &lhs, array< T, CloneAllocator > const &rhs)
 

Member Typedef Documentation

◆ value_type

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
typedef _base_type::value_type efl::eina::array< T, CloneAllocator, Enable >::value_type

The type of each element.

◆ reference

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
typedef _base_type::reference efl::eina::array< T, CloneAllocator, Enable >::reference

Type for a reference to an element.

◆ const_reference

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
typedef _base_type::const_reference efl::eina::array< T, CloneAllocator, Enable >::const_reference

Type for a constant reference to an element.

◆ const_iterator

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
typedef _base_type::const_iterator efl::eina::array< T, CloneAllocator, Enable >::const_iterator

Type for a iterator for this container.

◆ iterator

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
typedef _base_type::iterator efl::eina::array< T, CloneAllocator, Enable >::iterator

Type for a constant iterator for this container.

◆ pointer

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
typedef _base_type::pointer efl::eina::array< T, CloneAllocator, Enable >::pointer

Type for a pointer to an element.

◆ const_pointer

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
typedef _base_type::const_pointer efl::eina::array< T, CloneAllocator, Enable >::const_pointer

Type for a constant pointer for an element.

◆ size_type

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
typedef _base_type::size_type efl::eina::array< T, CloneAllocator, Enable >::size_type

Type for size information used in the array.

◆ difference_type

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
typedef _base_type::difference_type efl::eina::array< T, CloneAllocator, Enable >::difference_type

Type to represent the distance between two iterators.

◆ reverse_iterator

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
typedef _base_type::reverse_iterator efl::eina::array< T, CloneAllocator, Enable >::reverse_iterator

Type for the clone allocator.

Type for reverse iterator for this container.

◆ const_reverse_iterator

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
typedef _base_type::const_reverse_iterator efl::eina::array< T, CloneAllocator, Enable >::const_reverse_iterator

Type for reverse iterator for this container.

Member Function Documentation

◆ size()

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
std::size_t efl::eina::ptr_array< T, CloneAllocator >::size
inline

Get the current size of the array.

Returns
Number of elements in the array.

This member function returns the current number of elements inside the array.

◆ empty()

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
bool efl::eina::ptr_array< T, CloneAllocator >::empty
inline

Check if the array is empty.

Returns
true if the array is empty, false otherwise.

This member function returns true if the array does not contain any elements, otherwise it returns false.

◆ get_clone_allocator()

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
clone_allocator_type efl::eina::ptr_array< T, CloneAllocator >::get_clone_allocator
inline

Get the clone allocator of the array.

Returns
Reference to the clone allocator.

◆ push_back() [1/3]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
void efl::eina::ptr_array< T, CloneAllocator >::push_back
inline

Add a copy of the given element at the end of the array.

Parameters
aElement to be added at the end of the array.

This member function allocates a new element, as a copy of a, and inserts it at the end of the array.

◆ push_back() [2/3]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
void efl::eina::ptr_array< T, CloneAllocator >::push_back
inline

Add the object pointed by p as a element at the end of the array.

Parameters
pPointer to a pre-allocated element to be inserted at the end of the array.

This member function adds the object pointed by p as a element at the end of the array. The array gains ownership of the pointer and nothing is copied.

Warning
The array gains ownership of the given pointer and will release the pointed object upon element destruction.

◆ push_back() [3/3]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
template<typename Deleter >
void efl::eina::ptr_array< T, CloneAllocator >::push_back ( typename Deleter  )
inline

Add the object pointed by p as a element at the end of the array.

Parameters
pReference to a unique_ptr pointing to a element to be inserted at the end of the array.

This member function adds the object pointed by the given unique_ptr as a element at the end of the array. The object ownership is transferred to the array and nothing is copied.

Warning
The array gains ownership of the object managed by the given unique_ptr and will release it upon element destruction.

◆ insert() [1/6]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
iterator efl::eina::ptr_array< T, CloneAllocator >::insert
inline

Insert a copy of the given element at the given position.

Parameters
iIterator pointing to the position where the new element will be inserted.
tValue to be copied to the new element.
Returns
Iterator pointing to the new element inserted.

This member function inserts a copy of the element t at the position i. The new element comes right before the element originally pointed by i.

At the end, a valid iterator pointing to the element just inserted is returned.

◆ insert() [2/6]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
iterator efl::eina::ptr_array< T, CloneAllocator >::insert
inline

Insert the object pointed by pv as a element at the given position.

Parameters
iIterator pointing to the position where the new element will be inserted.
pvPointer to a pre-allocated object to be inserted to the array.
Returns
Iterator pointing to the new element inserted.

This member function adds the object pointed by pv as a element at the given position. The new element comes right before the element originally pointed by i. The array gains ownership of the pointer and nothing is copied.

At the end, a valid iterator pointing to the element just inserted is returned.

Warning
The array gains ownership of the given pointer and will release the pointed object upon element destruction.

◆ insert() [3/6]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
template<typename Deleter >
iterator efl::eina::ptr_array< T, CloneAllocator >::insert ( typename Deleter  )
inline

Insert the object pointed by p as a element at the given position.

Parameters
iIterator pointing to the position where the new element will be inserted.
pReference to a unique_ptr pointing to the element to be inserted in the array.
Returns
Iterator pointing to the new element inserted.

This member function adds the object pointed by p as a element at the given position. The new element comes right before the element originally pointed by i. The object ownership is transferred to the array and nothing is copied.

At the end, a valid iterator pointing to the element just inserted is returned.

Warning
The array gains ownership of the object managed by the given unique_ptr and will release it upon element destruction.

◆ insert() [4/6]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
iterator efl::eina::ptr_array< T, CloneAllocator >::insert
inline

Insert n copies of t at the given position.

Parameters
iIterator pointing to the position where the new elements will be inserted.
nNumber of elements to be inserted.
tValue to be copied to each new inserted element.
Returns
Iterator pointing to the first inserted element.

This member function inserts n new elements at position i in the array, each one as a copy of t. The new elements come right before the element originally pointed by i.

At the end, a valid iterator pointing to the first element inserted is returned.

◆ insert() [5/6]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
iterator efl::eina::ptr_array< T, CloneAllocator >::insert
inline

Insert the object pointed by p and n-1 copies of it as elements at the given position.

Parameters
iIterator pointing to the position where the new elements will be inserted.
nNumber of elements to be inserted.
pPointer to a pre-allocated object to be inserted in the array.
Returns
Iterator pointing to the first inserted element.

This member function inserts the object pointed by p and n-1 copies of it as elements at the given position. The new elements come right before the element originally pointed by i.

At the end, a valid iterator pointing to the first element inserted is returned.

Warning
The array gains ownership of the given pointer and will release the pointed object upon element destruction.

◆ insert() [6/6]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
template<typename InputIterator >
iterator efl::eina::ptr_array< T, CloneAllocator >::insert ( typename InputIterator  )
inline

Insert the elements between the given range at the given position.

Parameters
pIterator pointing to the position where the new elements will be inserted.
iIterator to the initial position. The element pointed by this iterator will be copied.
jIterator to the final position. The element pointed by this iterator will NOT be copied.
Returns
Iterator pointing to the first inserted element.

This member function inserts a copy of the elements between i and j at the position p. The new elements come right before the element originally pointed by p. Note that the element pointed by j is not copied.

At the end, a valid iterator pointing to the first element inserted is returned.

◆ erase() [1/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
iterator efl::eina::ptr_array< T, CloneAllocator >::erase
inline

Remove the element at the given position.

Parameters
qIterator pointing to the element to be removed.
Returns
Iterator pointing to the element after the removed one.

This member function removes the element pointed by the iterator q, reducing the array size by one. At the end, a valid iterator pointing to the element right after the removed one is returned.

◆ erase() [2/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
iterator efl::eina::ptr_array< T, CloneAllocator >::erase
inline

Remove the elements between the given range.

Parameters
iIterator pointing to the starting position to be removed.
jIterator pointing to the ending position to be removed. The element pointed by this iterator is not removed.
Returns
Iterator pointing to the new position of the first non-removed element after the removed ones (i.e. the one originally pointed by j).

This member function removes the elements between the iterators i and j, including the element pointed by i but not the element pointed by .

◆ assign() [1/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
template<typename InputIterator >
void efl::eina::ptr_array< T, CloneAllocator >::assign ( typename InputIterator  )
inline

Replace the content of the array by the elements in the given range.

Parameters
iIterator pointing to the beginning of the elements to be copied.
jIterator pointing to the end of the elements to be copied. Note that the element pointed by j will NOT be copied.

This member function replaces the current elements by copies of the elements between the iterators i and j, including the element pointed by i but not the one pointed by j. The size of the array is adjusted accordingly and the newly copied elements remain in their original order.

◆ assign() [2/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
void efl::eina::ptr_array< T, CloneAllocator >::assign
inline

Replace the content of the array by n copies t.

Parameters
nNumber of elements.
tValue to be copied to each element.

◆ back() [1/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
value_type& efl::eina::ptr_array< T, CloneAllocator >::back
inline

Get a reference to the last element.

Returns
Reference to the last element in the array.

◆ back() [2/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
value_type const& efl::eina::ptr_array< T, CloneAllocator >::back
inline

Get a constant reference to the last element.

Returns
Constant reference to the last element in the array.

Version of back() for const-qualified objects. Returns a constant reference instead.

◆ front() [1/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
value_type& efl::eina::ptr_array< T, CloneAllocator >::front
inline

Get a reference to the first element.

Returns
Reference to the first element of the array.

◆ front() [2/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
value_type const& efl::eina::ptr_array< T, CloneAllocator >::front
inline

Get a constant reference to the first element.

Returns
Constant reference to the first element of the array.

Version of front() for const-qualified objects. Returns a constant reference instead.

◆ begin() [1/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
const_iterator efl::eina::ptr_array< T, CloneAllocator >::begin
inline

Get a constant iterator pointing to the first element of the array.

Returns
Constant iterator to the initial position of the array.

Version of begin() for const-qualified objects. Returns a constant iterator instead.

◆ begin() [2/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
iterator efl::eina::ptr_array< T, CloneAllocator >::begin
inline

Get an iterator pointing to the first element of the array.

Returns
Iterator to the initial position of the array.

This member function returns an iterator pointing to the first element of the array. If the array is empty the returned iterator is the same as the one returned by end().

◆ end() [1/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
const_iterator efl::eina::ptr_array< T, CloneAllocator >::end
inline

Get a constant iterator to the position following the last element of the array.

Returns
Constant iterator to the final position of the array.

Version of end() for const-qualified objects. Returns a constant iterator instead.

◆ end() [2/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
iterator efl::eina::ptr_array< T, CloneAllocator >::end
inline

Get an iterator to the position following the last element of the array.

Returns
Iterator to the final position of the array.

This member function returns an iterator to the position following the last element in the array. If the array is empty the returned iterator is the same as the one returned by begin().

Note
Note that attempting to access this position causes undefined behavior.

◆ rbegin() [1/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
const_reverse_iterator efl::eina::ptr_array< T, CloneAllocator >::rbegin
inline

Get a constant reverse iterator pointing to the reverse begin of the array.

Returns
Constant reverse iterator pointing to the reverse begin of the array.

Version of rbegin() for const-qualified objects. Returns a constant reverse iterator instead.

◆ rbegin() [2/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
reverse_iterator efl::eina::ptr_array< T, CloneAllocator >::rbegin
inline

Get a reverse iterator pointing to the reverse begin of the array.

Returns
Reverse iterator pointing to the reverse begin of the array.

This member function returns a reverse iterator pointing to the last element of the array. If the array is empty the returned reverse iterator is the same as the one returned by rend().

◆ rend() [1/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
const_reverse_iterator efl::eina::ptr_array< T, CloneAllocator >::rend
inline

Get a constant reverse iterator pointing to the reverse end of the array.

Returns
Constant reverse iterator pointing to the reverse end of the array.

Version of rend() for const-qualified objects. Returns a constant reverse iterator instead.

◆ rend() [2/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
reverse_iterator efl::eina::ptr_array< T, CloneAllocator >::rend
inline

Get a reverse iterator pointing to the reverse end of the array.

Returns
Reverse iterator pointing to the reverse end of the array.

This member function returns a reverse iterator pointing to the position before the first element of the array. If the array is empty the returned iterator is the same as the one returned by rbegin().

Note
Note that attempting to access this position causes undefined behavior.

◆ cbegin()

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
const_iterator efl::eina::ptr_array< T, CloneAllocator >::cbegin
inline

Get a constant iterator pointing to the first element of the array.

Returns
Constant iterator to the initial position of the array.

This member function works like begin() const but is granted to return a constant iterator even for arrays that are not const-qualified.

◆ cend()

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
const_iterator efl::eina::ptr_array< T, CloneAllocator >::cend
inline

Get a constant iterator to the position following the last element of the array.

Returns
Constant iterator to the final position of the array.

This member function works like end() const but is granted to return a constant iterator even for arrays that are not const-qualified.

◆ crbegin()

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
const_reverse_iterator efl::eina::ptr_array< T, CloneAllocator >::crbegin
inline

Get a constant reverse iterator pointing to the reverse begin of the array.

Returns
Constant reverse iterator pointing to the reverse begin of the array.

This member function works like rbegin() const but is granted to return a constant reverse iterator even for arrays that are not const-qualified.

◆ crend()

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
const_reverse_iterator efl::eina::ptr_array< T, CloneAllocator >::crend
inline

Get a constant reverse iterator pointing to the reverse end of the array.

Returns
Constant reverse iterator pointing to the reverse end of the array.

This member function works like rend() const but is granted to return a constant reverse iterator even for arrays that are not const-qualified.

◆ ibegin() [1/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
eina::iterator<T> efl::eina::ptr_array< T, CloneAllocator >::ibegin
inline

Get an eina::iterator pointing to the first element of the array.

Returns
eina::iterator to the initial position of the array.

This member function returns an eina::iterator pointing to the first element of the array. If the array is empty the returned iterator is the same as the one returned by iend().

◆ ibegin() [2/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
eina::iterator<T const> efl::eina::ptr_array< T, CloneAllocator >::ibegin
inline

Get a constant eina::iterator pointing to the first element of the array.

Returns
Constant eina::iterator to the initial position of the array.

Version of ibegin() for const-qualified objects. Returns a constant eina::iterator instead.

◆ iend() [1/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
eina::iterator<T> efl::eina::ptr_array< T, CloneAllocator >::iend
inline

Get an eina::iterator to the position following the last element of the array.

Returns
eina::iterator to the final position of the array.

This member function returns an eina::iterator to the position following the last element in the array. If the array is empty the returned iterator is the same as the one returned by ibegin().

Note
Note that attempting to access this position causes undefined behavior.

◆ iend() [2/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
eina::iterator<T const> efl::eina::ptr_array< T, CloneAllocator >::iend
inline

Get an constant eina::iterator to the position following the last element of the array.

Returns
Constant eina::iterator to the final position of the array.

Version of iend() for const-qualified objects. Returns a constant eina::iterator instead.

◆ cibegin()

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
eina::iterator<T const> efl::eina::ptr_array< T, CloneAllocator >::cibegin
inline

Get an eina::iterator pointing to the first element of the array.

Returns
eina::iterator to the initial position of the array.

This member function works like ibegin() const but is granted to return a constant iterator even for arrays that are not const-qualified.

◆ ciend()

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
eina::iterator<T const> efl::eina::ptr_array< T, CloneAllocator >::ciend
inline

Get an constant eina::iterator to the position following the last element of the array.

Returns
Constant eina::iterator to the final position of the array.

This member function works like iend() const but is granted to return a constant iterator even for arrays that are not const-qualified.

◆ swap()

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
void efl::eina::ptr_array< T, CloneAllocator >::swap
inline

Swap content between two arrays.

Parameters
otherOther ptr_array of the same type.

◆ max_size()

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
size_type efl::eina::ptr_array< T, CloneAllocator >::max_size
inline

Get the maximum number of elements ptr_array can hold.

Returns
Maximum number of elements a ptr_array can hold.

◆ native_handle() [1/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
Eina_Array* efl::eina::ptr_array< T, CloneAllocator >::native_handle
inline

Get a handle for the wrapped Eina_Array.

Returns
Handle for the native Eina array.

This member function returns the native Eina_Array handle that is wrapped inside this object.

Warning
It is important to take care when using it, since the handle will be automatically release upon object destruction.

◆ native_handle() [2/2]

template<typename T, typename CloneAllocator = default_clone_allocator_placeholder, typename Enable = void>
Eina_Array const* efl::eina::ptr_array< T, CloneAllocator >::native_handle
inline

Get a constant handle for the wrapped Eina_Array.

Returns
Constant handle for the native Eina array.

Version of native_handle() for const-qualified objects. Returns a constant handle instead.

See also
native_handle()