Common inarray interface for every value type. More...
Public Types | |
typedef std::size_t | size_type |
Type for size information used in the array. More... | |
typedef Eina_Inarray * | native_handle_type |
typedef Eina_Inarray const * | const_native_handle_type |
Type for the native Eina_Inarray handle. More... | |
Public Member Functions | |
_inarray_common_base (native_handle_type array) | |
Type for constant native Eina_Inarray handle. More... | |
_inarray_common_base (size_type member_size) | |
Allocates a array with the given size for each element. More... | |
~_inarray_common_base () | |
Release the inline array memory. More... | |
size_type | size () const |
Get the current size of the array. More... | |
bool | empty () const |
Check if the array is empty. More... | |
native_handle_type | native_handle () |
Get the handle for the wrapped Eina_Inarray. More... | |
const_native_handle_type | native_handle () const |
Get a constant handle for the wrapped Eina_Inarray. More... | |
Data Fields | |
native_handle_type | _array |
Common inarray interface for every value type.
typedef std::size_t efl::eina::_inarray_common_base::size_type |
Type for size information used in the array.
Type for the native Eina_Inarray
handle.
|
inlineexplicit |
Type for constant native Eina_Inarray
handle.
Creates a new array object from a handle to a native Eina_Inarray
.
array | Handler to a native Eina_Inarray |
This constructor wraps a pre-allocated Eina_Inarray
providing an OO interface to it.
|
inlineexplicit |
Allocates a array with the given size for each element.
member_size | Size of each element in the array. |
This constructor creates an inline array object with the given size (in bytes) for each element. All allocated memory will be released at destruction.
|
inline |
Release the inline array memory.
This destructor release the internal native Eina_Inarray
handle, freeing allocated memory.
References eina_inarray_free().
|
inline |
Get the current size of the array.
This member function returns the current number of elements inside the inline array.
|
inline |
Check if the array is empty.
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
.
|
inline |
Get the handle for the wrapped Eina_Inarray.
This member function returns the native Eina_Inarray
handle that is wrapped inside this object.
|
inline |
Get a constant handle for the wrapped Eina_Inarray.
Version of native_handle() for const-qualified objects. Return a constant handle instead.