Inline array class. More...
Public Member Functions | |
inarray (Eina_Inarray *array) | |
Create a new object from a handle to a native Eina_Inarray. More... | |
inarray () | |
Default constructor. More... | |
inarray (typename _base_type::size_type n, typename _base_type::value_type const &t) | |
Construct an array object with n copies of t . More... | |
template<typename InputIterator > | |
inarray (InputIterator i, InputIterator const &j, typename eina::enable_if<!eina::is_integral< InputIterator >::value >::type *=0) | |
Create a inline array with elements from the given range. More... | |
Inline array class.
It provides an OOP interface to the Eina_Inarray
functions, and automatically take care of allocating and deallocating resources using the RAII programming idiom.
It also provides additional member functions to facilitate the access to the array content, much like a STL vector.
|
inline |
Create a new object from a handle to a native Eina_Inarray.
array | Handle to a native Eina_Inarray. |
This constructor wraps a pre-allocated Eina_Inarray providing an OOP interface to it.
|
inline |
Default constructor.
Creates an empty array.
|
inline |
Construct an array object with n
copies of t
.
n | Number of elements. |
t | Value to be copied to each element. |
This constructor creates an inline array with n
elements, each one as a copy of t
.
|
inline |
Create a inline array with elements from the given range.
i | Iterator to the initial position. The element pointed by this iterator will be copied. |
j | Iterator to the final position. The element pointed by this iterator will NOT be copied. |
This constructor creates a inline array with copies of the elements between i
and j
in the same order.
j
) is not copied.