Data Structures | Public Types | Public Member Functions | Data Fields
efl::eina::_ptr_list_common_base< T, CloneAllocator > Struct Template Reference

Common implementations for ptr_list. More...

Data Structures

struct  _ptr_list_impl
 

Public Types

typedef CloneAllocator clone_allocator_type
 Type for the clone allocator. More...
 

Public Member Functions

 _ptr_list_common_base (CloneAllocator clone_allocator)
 Creates an list with the given clone allocator.
 
 _ptr_list_common_base (Eina_List *_list)
 Create a new object from a handle to a native Eina_List. More...
 
_ptr_list_common_base< T, CloneAllocator > & operator= (_ptr_list_common_base< T, CloneAllocator > &&other)=default
 
 _ptr_list_common_base (_ptr_list_common_base< T, CloneAllocator > &&other)=default
 
 _ptr_list_common_base ()
 Default constructor. More...
 
CloneAllocator & _get_clone_allocator ()
 
CloneAllocator const & _get_clone_allocator () const
 
void _delete_clone (T const *p)
 
T * _new_clone (typename container_value_type< T >::type const &a)
 

Data Fields

_ptr_list_impl _impl
 

Detailed Description

template<typename T, typename CloneAllocator>
struct efl::eina::_ptr_list_common_base< T, CloneAllocator >

Common implementations for ptr_list.

Member Typedef Documentation

§ clone_allocator_type

template<typename T, typename CloneAllocator>
typedef CloneAllocator efl::eina::_ptr_list_common_base< T, CloneAllocator >::clone_allocator_type

Type for the clone allocator.

Constructor & Destructor Documentation

§ _ptr_list_common_base() [1/2]

template<typename T, typename CloneAllocator>
efl::eina::_ptr_list_common_base< T, CloneAllocator >::_ptr_list_common_base ( Eina_List _list)
inline

Create a new object from a handle to a native Eina_List.

Parameters
_listHandle to a native Eina_List.

This constructor wraps a pre-allocated Eina_List providing an OOP interface to it.

Warning
It is important to note that the created object gains ownership of the handle, deallocating it at destruction time.

§ _ptr_list_common_base() [2/2]

template<typename T, typename CloneAllocator>
efl::eina::_ptr_list_common_base< T, CloneAllocator >::_ptr_list_common_base ( )
inline

Default constructor.

Create an empty list.

This constructor creates a list with no elements.