Public Types | Public Member Functions | Friends
efl::eina::list< T, CloneAllocator, typename std::enable_if< ::efl::eo::is_eolian_object< T >::value >::type > Class Template Reference

Public Types

typedef T value_type
 
typedef value_type & reference
 
typedef value_type const & const_reference
 
typedef _ptr_eo_list_iterator< value_type const > const_iterator
 
typedef _ptr_eo_list_iterator< value_type > iterator
 
typedef value_type * pointer
 
typedef value_type const * const_pointer
 
typedef std::size_t size_type
 
typedef std::ptrdiff_t difference_type
 
typedef _base_type::clone_allocator_type clone_allocator_type
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef _base_type::native_handle_type native_handle_type
 

Public Member Functions

 list (typename _self_type::native_handle_type handle)
 
 list (clone_allocator_type alloc)
 
 list (size_type n, const_reference t)
 
template<typename InputIterator >
 list (InputIterator i, InputIterator const &j, clone_allocator_type const &alloc=clone_allocator_type(), typename eina::enable_if<!eina::is_integral< InputIterator >::value >::type *=0)
 
 list (list< T, CloneAllocator > const &other)
 
list< T, CloneAllocator > & operator= (list< T, CloneAllocator >const &other)
 
listoperator= (list &&other)=default
 
 list (list &&other)=default
 
void push_back (const_reference w)
 
void push_front (const_reference w)
 
iterator insert (iterator i, const_reference v)
 
iterator insert (iterator i, size_t n, const_reference v)
 
template<typename InputIterator >
iterator insert (iterator p, InputIterator i, InputIterator j, typename eina::enable_if<!eina::is_integral< InputIterator >::value >::type *=0)
 
iterator erase (iterator p)
 
iterator erase (iterator i, iterator j)
 
template<typename InputIterator >
void assign (InputIterator i, InputIterator j, typename eina::enable_if<!eina::is_integral< InputIterator >::value >::type *=0)
 
void assign (size_type n, value_type const &t)
 
reference front ()
 
reference back ()
 
const_reference front () const
 
const_reference back () const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator crend () const
 
eina::iterator< value_type > ibegin ()
 
eina::iterator< value_type > iend ()
 
eina::iterator< value_type const > ibegin () const
 
eina::iterator< value_type const > iend () const
 
eina::iterator< value_type const > cibegin () const
 
eina::iterator< value_type const > ciend () const
 
eina::accessor< T const > accessor () const
 Get a constant eina::accessor for the list. More...
 
eina::accessor< T > accessor ()
 Get a eina::accessor for the list. More...
 
void clear ()
 Remove all the elements of the list.
 
std::size_t size () const
 Get the current size of the list. More...
 
bool empty () const
 Check if the list is empty. More...
 
clone_allocator_type get_clone_allocator () const
 Get the clone allocator of the list. More...
 
void pop_back ()
 Remove the last element of the list.
 
void pop_front ()
 Remove the first element of the list.
 
Eina_Listrelease_native_handle ()
 
void swap (ptr_list< T, CloneAllocator > &other)
 Swap content between two lists. More...
 
size_type max_size () const
 Get the maximum number of elements ptr_list can hold. More...
 
Eina_Listnative_handle ()
 Get a handle for the wrapped Eina_List. More...
 
Eina_List const * native_handle () const
 Get a constant handle for the wrapped Eina_List. More...
 

Friends

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

Member Function Documentation

◆ accessor() [1/2]

template<typename T , typename CloneAllocator >
eina::accessor<T const> efl::eina::list< T, CloneAllocator, typename std::enable_if< ::efl::eo::is_eolian_object< T >::value >::type >::accessor ( ) const
inline

Get a constant eina::accessor for the list.

Returns
Constant eina::accessor to the list.

Version of accessor() to const-qualified inline lists. Returns a const-qualified eina::accessor instead.

References eina_list_accessor_new().

◆ accessor() [2/2]

template<typename T , typename CloneAllocator >
eina::accessor<T> efl::eina::list< T, CloneAllocator, typename std::enable_if< ::efl::eo::is_eolian_object< T >::value >::type >::accessor ( )
inline

Get a eina::accessor for the list.

Returns
eina::accessor to the list.

References eina_list_accessor_new().

◆ size()

template<typename T , typename CloneAllocator >
std::size_t efl::eina::ptr_list< T, CloneAllocator >::size
inline

Get the current size of the list.

Returns
Number of elements in the list.

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

◆ empty()

template<typename T , typename CloneAllocator >
bool efl::eina::ptr_list< T, CloneAllocator >::empty
inline

Check if the list is empty.

Returns
true if the list is empty, false otherwise.

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

◆ get_clone_allocator()

template<typename T , typename CloneAllocator >
clone_allocator_type efl::eina::ptr_list< T, CloneAllocator >::get_clone_allocator
inline

Get the clone allocator of the list.

Returns
Reference to the clone allocator.

◆ swap()

template<typename T , typename CloneAllocator >
void efl::eina::ptr_list< T, CloneAllocator >::swap
inline

Swap content between two lists.

Parameters
otherOther ptr_list of the same type.

◆ max_size()

template<typename T , typename CloneAllocator >
size_type efl::eina::ptr_list< T, CloneAllocator >::max_size
inline

Get the maximum number of elements ptr_list can hold.

Returns
Maximum number of elements a ptr_list can hold.

◆ native_handle() [1/2]

template<typename T , typename CloneAllocator >
Eina_List* efl::eina::ptr_list< T, CloneAllocator >::native_handle
inline

Get a handle for the wrapped Eina_List.

Returns
Handle for the native Eina list.

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

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

◆ native_handle() [2/2]

template<typename T , typename CloneAllocator >
Eina_List const* efl::eina::ptr_list< T, CloneAllocator >::native_handle
inline

Get a constant handle for the wrapped Eina_List.

Returns
Constant handle for the native Eina list.

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

See also
native_handle()