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

Common implementations for the ptr_array. More...

Data Structures

struct  _ptr_array_impl
 

Public Types

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

Public Member Functions

 _ptr_array_common_base (CloneAllocator clone_allocator)
 Creates an array with the given clone allocator.
 
 _ptr_array_common_base (Eina_Array *_array)
 Create a new object from a handle to a native Eina_Array. More...
 
 _ptr_array_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_array_impl _impl
 

Detailed Description

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

Common implementations for the ptr_array.

Member Typedef Documentation

◆ clone_allocator_type

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

Type for the clone allocator.

Constructor & Destructor Documentation

◆ _ptr_array_common_base() [1/2]

template<typename T, typename CloneAllocator>
efl::eina::_ptr_array_common_base< T, CloneAllocator >::_ptr_array_common_base ( Eina_Array _array)
inline

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

Parameters
arrayHandle to a native Eina_Array.

This constructor wraps a pre-allocated Eina_Array 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_array_common_base() [2/2]

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

Default constructor.

Create an empty array.

This constructor creates an array with no elements.