\hypertarget{group__Eina__Inline__Array__Group}{}\section{Inline Array}
\label{group__Eina__Inline__Array__Group}\index{Inline Array@{Inline Array}}


Inline array is a container that stores the data itself, not the pointers to the data.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{struct__Eina__Inarray}{\+\_\+\+Eina\+\_\+\+Inarray}
\begin{DoxyCompactList}\small\item\em Inline array structure. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__Eina__Inline__Array__Group_gab6ffcad27b5099aa34af9ecd5e2b22f9}{E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+F\+O\+R\+E\+A\+CH}(array,  itr)
\begin{DoxyCompactList}\small\item\em Walks through an array linearly from head to tail. \end{DoxyCompactList}\item 
\#define \hyperlink{group__Eina__Inline__Array__Group_ga0bfd07aebdb03651a901f3ba6b8e50cb}{E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+R\+E\+V\+E\+R\+S\+E\+\_\+\+F\+O\+R\+E\+A\+CH}(array,  itr)
\begin{DoxyCompactList}\small\item\em Walks through an array linearly from tail to head. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \hyperlink{struct__Eina__Inarray}{\+\_\+\+Eina\+\_\+\+Inarray} \hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray}
\begin{DoxyCompactList}\small\item\em Type for the inlined array. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$ \hyperlink{group__Eina__Inline__Array__Group_ga38a116a1355055b470c31bb4f633e53b}{eina\+\_\+inarray\+\_\+new} (unsigned int member\+\_\+size, unsigned int step)
\begin{DoxyCompactList}\small\item\em Creates a new inline array. \end{DoxyCompactList}\item 
void \hyperlink{group__Eina__Inline__Array__Group_ga369b3090b7c04377eaceb6bebfe36e06}{eina\+\_\+inarray\+\_\+free} (\hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array)
\begin{DoxyCompactList}\small\item\em Frees an array and its members. \end{DoxyCompactList}\item 
void \hyperlink{group__Eina__Inline__Array__Group_ga97ceb13e335d8b8aae8dfcce735ec274}{eina\+\_\+inarray\+\_\+step\+\_\+set} (\hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array, unsigned int sizeof\+\_\+eina\+\_\+inarray, unsigned int member\+\_\+size, unsigned int step)
\begin{DoxyCompactList}\small\item\em Initializes an inline array. \end{DoxyCompactList}\item 
void \hyperlink{group__Eina__Inline__Array__Group_ga4e2b2a5b7d01613db5b578d8dbec36b7}{eina\+\_\+inarray\+\_\+flush} (\hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array)
\begin{DoxyCompactList}\small\item\em Removes every member from the array. \end{DoxyCompactList}\item 
int \hyperlink{group__Eina__Inline__Array__Group_ga6b9a97816b98ccf9be6b65ca06b90013}{eina\+\_\+inarray\+\_\+push} (\hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Copies the data as the last member of the array. \end{DoxyCompactList}\item 
void $\ast$ \hyperlink{group__Eina__Inline__Array__Group_gaec3ab09f7e7aa05c413eccf927d47ebb}{eina\+\_\+inarray\+\_\+grow} (\hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array, unsigned int size)
\begin{DoxyCompactList}\small\item\em Allocate new item at the end of the array. \end{DoxyCompactList}\item 
int \hyperlink{group__Eina__Inline__Array__Group_ga55e20eb249332bac73809fe171f0a5a5}{eina\+\_\+inarray\+\_\+insert} (\hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array, const void $\ast$data, \hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb} compare)
\begin{DoxyCompactList}\small\item\em Copies the data to the array at a position found by the comparison function. \end{DoxyCompactList}\item 
int \hyperlink{group__Eina__Inline__Array__Group_ga3dfa2e214c3cf3363f6ed390da4221c3}{eina\+\_\+inarray\+\_\+insert\+\_\+sorted} (\hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array, const void $\ast$data, \hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb} compare)
\begin{DoxyCompactList}\small\item\em Copies the data to the array at a position found by the comparison function. \end{DoxyCompactList}\item 
int \hyperlink{group__Eina__Inline__Array__Group_ga4075a8845cdc9ea50df235e331f079fc}{eina\+\_\+inarray\+\_\+remove} (\hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Finds data and removes the matching member. \end{DoxyCompactList}\item 
void $\ast$ \hyperlink{group__Eina__Inline__Array__Group_ga629fc0146641254b62562f6bef2f01ad}{eina\+\_\+inarray\+\_\+pop} (\hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array)
\begin{DoxyCompactList}\small\item\em Removes the last member of the array. \end{DoxyCompactList}\item 
void $\ast$ \hyperlink{group__Eina__Inline__Array__Group_ga7f94b91bfbd5a5c01f9ffa41c1f91740}{eina\+\_\+inarray\+\_\+nth} (const \hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array, unsigned int position)
\begin{DoxyCompactList}\small\item\em Gets the member at the given position. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Eina__Inline__Array__Group_ga8928a9428988a511720ad6b4370f86e6}{eina\+\_\+inarray\+\_\+insert\+\_\+at} (\hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array, unsigned int position, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Copies the data at the given position in the array. \end{DoxyCompactList}\item 
void $\ast$ \hyperlink{group__Eina__Inline__Array__Group_ga0d80da2a705e35306d8b7bd57f0b234e}{eina\+\_\+inarray\+\_\+alloc\+\_\+at} (\hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array, unsigned int position, unsigned int member\+\_\+count)
\begin{DoxyCompactList}\small\item\em Opens a space at the given position, returning its pointer. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Eina__Inline__Array__Group_gab8fc65cb1a9f7736343f3f6b7e1639ca}{eina\+\_\+inarray\+\_\+replace\+\_\+at} (\hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array, unsigned int position, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Copies the data to the given position. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Eina__Inline__Array__Group_gad7fe9f774d769433c6285af1f8f94767}{eina\+\_\+inarray\+\_\+remove\+\_\+at} (\hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array, unsigned int position)
\begin{DoxyCompactList}\small\item\em Removes a member from the given position. \end{DoxyCompactList}\item 
void \hyperlink{group__Eina__Inline__Array__Group_gafcd0b1b94629685b082e5ffa0c9a0b00}{eina\+\_\+inarray\+\_\+reverse} (\hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array)
\begin{DoxyCompactList}\small\item\em Reverses members in the array. \end{DoxyCompactList}\item 
void \hyperlink{group__Eina__Inline__Array__Group_ga485250d8aef53c5648238e94987f58cc}{eina\+\_\+inarray\+\_\+sort} (\hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array, \hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb} compare)
\begin{DoxyCompactList}\small\item\em Applies a quick sort to the array. \end{DoxyCompactList}\item 
int \hyperlink{group__Eina__Inline__Array__Group_gadbd0ce893a32d7d24ff7662a15d88c5b}{eina\+\_\+inarray\+\_\+search} (const \hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array, const void $\ast$data, \hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb} compare)
\begin{DoxyCompactList}\small\item\em Searches for a member (linear walk). \end{DoxyCompactList}\item 
int \hyperlink{group__Eina__Inline__Array__Group_gadd55e832494d0c261fd6e6604abb6cf6}{eina\+\_\+inarray\+\_\+search\+\_\+sorted} (const \hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array, const void $\ast$data, \hyperlink{group__Eina__Types__Group_ga1b31ffcc0d46eed63a2381c5a011b486}{Eina\+\_\+\+Compare\+\_\+\+Cb} compare)
\begin{DoxyCompactList}\small\item\em Searches for member (binary search walk). \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Eina__Inline__Array__Group_gade02e41769a458138559110b33a7041b}{eina\+\_\+inarray\+\_\+foreach} (const \hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array, \hyperlink{group__Eina__Types__Group_gab115f6c19b6641ab5ba22ed45d9b7aa4}{Eina\+\_\+\+Each\+\_\+\+Cb} function, const void $\ast$user\+\_\+data)
\begin{DoxyCompactList}\small\item\em Calls {\ttfamily function} for each array member. \end{DoxyCompactList}\item 
int \hyperlink{group__Eina__Inline__Array__Group_gaec7f8b31af8c68f0e48e5aab20e4f9e8}{eina\+\_\+inarray\+\_\+foreach\+\_\+remove} (\hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array, \hyperlink{group__Eina__Types__Group_gab115f6c19b6641ab5ba22ed45d9b7aa4}{Eina\+\_\+\+Each\+\_\+\+Cb} match, const void $\ast$user\+\_\+data)
\begin{DoxyCompactList}\small\item\em Removes all the members that match. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Eina__Inline__Array__Group_gaa80ef4069004e8a2d766e07417497ffb}{eina\+\_\+inarray\+\_\+resize} (\hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array, unsigned int new\+\_\+size)
\begin{DoxyCompactList}\small\item\em Resizes array to new size. \end{DoxyCompactList}\item 
unsigned int \hyperlink{group__Eina__Inline__Array__Group_gaf6d3ce4a7b0b8e521e2c91024065d97d}{eina\+\_\+inarray\+\_\+count} (const \hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array)
\begin{DoxyCompactList}\small\item\em Counts the number of members in an array. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator} $\ast$ \hyperlink{group__Eina__Inline__Array__Group_gaf7e53fb490de491d5779e611eeef5b75}{eina\+\_\+inarray\+\_\+iterator\+\_\+new} (const \hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array)
\begin{DoxyCompactList}\small\item\em Returns a new iterator associated to an array. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator} $\ast$ \hyperlink{group__Eina__Inline__Array__Group_gaa02b6292b00d705ed7c0a5f442362869}{eina\+\_\+inarray\+\_\+iterator\+\_\+reversed\+\_\+new} (const \hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array)
\begin{DoxyCompactList}\small\item\em Returns a new reversed iterator associated to an array. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Accessor__Group_ga65199ea5201a1867471028477dc26744}{Eina\+\_\+\+Accessor} $\ast$ \hyperlink{group__Eina__Inline__Array__Group_ga29874e297950b36e3be8fa0fbc0e24d1}{eina\+\_\+inarray\+\_\+accessor\+\_\+new} (const \hyperlink{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{Eina\+\_\+\+Inarray} $\ast$array)
\begin{DoxyCompactList}\small\item\em Returns a new accessor associated to an array. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Inline array is a container that stores the data itself, not the pointers to the data. 

\begin{DoxySince}{Since}
1.\+2
\end{DoxySince}
This means there is no memory fragmentation, also for small data types(such as char, short, int, and so on) it\textquotesingle{}s more memory efficient.

Usage of the inline array is very similar to that of other \hyperlink{group__Eina__Containers__Group}{Containers}, like all arrays adding elements to the beginning of the array is a lot more costly than appending, so those operations should be minimized.

Examples\+: \begin{DoxyItemize}
\item \hyperlink{eina_inarray_example_01}{Eina inline array usage} \item \hyperlink{eina_inarray_example_02}{Eina inline array of strings} \end{DoxyItemize}


\subsection{Macro Definition Documentation}
\index{Inline Array@{Inline Array}!E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+F\+O\+R\+E\+A\+CH@{E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+F\+O\+R\+E\+A\+CH}}
\index{E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+F\+O\+R\+E\+A\+CH@{E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+F\+O\+R\+E\+A\+CH}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+F\+O\+R\+E\+A\+CH}{EINA_INARRAY_FOREACH}}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+F\+O\+R\+E\+A\+CH(
\begin{DoxyParamCaption}
\item[{}]{array, }
\item[{}]{itr}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_gab6ffcad27b5099aa34af9ecd5e2b22f9}{}\label{group__Eina__Inline__Array__Group_gab6ffcad27b5099aa34af9ecd5e2b22f9}
{\bfseries Value\+:}
\begin{DoxyCode}
\textcolor{keywordflow}{for} ((itr) = (array)->members;                                  \(\backslash\)
       (itr) < (((\_\_typeof\_\_(*itr)*)(array)->members) + (array)->len);  \(\backslash\)
       (itr)++)
\end{DoxyCode}


Walks through an array linearly from head to tail. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\mbox{\tt in}  & {\em itr} & An iterator pointer\\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
{\ttfamily itr} must be a pointer with sizeof(itr$\ast$) == array-\/$>$member\+\_\+size.

This is fast as it does direct pointer access, but it does not check for {\ttfamily N\+U\+LL} pointers or invalid array objects. Use \hyperlink{group__Eina__Inline__Array__Group_gade02e41769a458138559110b33a7041b}{eina\+\_\+inarray\+\_\+foreach()} to do that.

Do not modify an array as you walk through it. If that is desired, then use \hyperlink{group__Eina__Inline__Array__Group_gaec7f8b31af8c68f0e48e5aab20e4f9e8}{eina\+\_\+inarray\+\_\+foreach\+\_\+remove()}.
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}
\begin{Desc}
\item[Examples\+: ]\par
\hyperlink{eina_inarray_01_8c-example}{eina\+\_\+inarray\+\_\+01.\+c}, \hyperlink{eina_inarray_02_8c-example}{eina\+\_\+inarray\+\_\+02.\+c}, and \hyperlink{eina_inarray_03_8c-example}{eina\+\_\+inarray\+\_\+03.\+c}.\end{Desc}


Referenced by edje\+\_\+object\+\_\+signal\+\_\+callback\+\_\+extra\+\_\+data\+\_\+get(), and edje\+\_\+transition\+\_\+duration\+\_\+factor\+\_\+set().

\index{Inline Array@{Inline Array}!E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+R\+E\+V\+E\+R\+S\+E\+\_\+\+F\+O\+R\+E\+A\+CH@{E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+R\+E\+V\+E\+R\+S\+E\+\_\+\+F\+O\+R\+E\+A\+CH}}
\index{E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+R\+E\+V\+E\+R\+S\+E\+\_\+\+F\+O\+R\+E\+A\+CH@{E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+R\+E\+V\+E\+R\+S\+E\+\_\+\+F\+O\+R\+E\+A\+CH}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+R\+E\+V\+E\+R\+S\+E\+\_\+\+F\+O\+R\+E\+A\+CH}{EINA_INARRAY_REVERSE_FOREACH}}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+R\+E\+V\+E\+R\+S\+E\+\_\+\+F\+O\+R\+E\+A\+CH(
\begin{DoxyParamCaption}
\item[{}]{array, }
\item[{}]{itr}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_ga0bfd07aebdb03651a901f3ba6b8e50cb}{}\label{group__Eina__Inline__Array__Group_ga0bfd07aebdb03651a901f3ba6b8e50cb}
{\bfseries Value\+:}
\begin{DoxyCode}
\textcolor{keywordflow}{for} ((itr) = ((((\_\_typeof\_\_(*(itr))*)(array)->members) + (array)->len) - 1); \(\backslash\)
       (((itr) >= (\_\_typeof\_\_(*(itr))*)(array)->members)                \(\backslash\)
        && ((array)->members != NULL));                                 \(\backslash\)
       (itr)--)
\end{DoxyCode}


Walks through an array linearly from tail to head. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\mbox{\tt in}  & {\em itr} & An iterator pointer\\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
{\ttfamily itr} must be a pointer with sizeof(itr$\ast$) == array-\/$>$member\+\_\+size.

This is fast as it does direct pointer access, but it does not check for {\ttfamily N\+U\+LL} pointers or invalid array objects.

Do not modify an array as you walk through it. If that is desired, then use \hyperlink{group__Eina__Inline__Array__Group_gaec7f8b31af8c68f0e48e5aab20e4f9e8}{eina\+\_\+inarray\+\_\+foreach\+\_\+remove()}.
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


\subsection{Typedef Documentation}
\index{Inline Array@{Inline Array}!Eina\+\_\+\+Inarray@{Eina\+\_\+\+Inarray}}
\index{Eina\+\_\+\+Inarray@{Eina\+\_\+\+Inarray}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{Eina\+\_\+\+Inarray}{Eina_Inarray}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Inarray}}\hypertarget{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{}\label{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}


Type for the inlined array. 

\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


\subsection{Function Documentation}
\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+new@{eina\+\_\+inarray\+\_\+new}}
\index{eina\+\_\+inarray\+\_\+new@{eina\+\_\+inarray\+\_\+new}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+new(unsigned int member\+\_\+size, unsigned int step)}{eina_inarray_new(unsigned int member_size, unsigned int step)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Inarray}$\ast$ eina\+\_\+inarray\+\_\+new (
\begin{DoxyParamCaption}
\item[{unsigned int}]{member\+\_\+size, }
\item[{unsigned int}]{step}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_ga38a116a1355055b470c31bb4f633e53b}{}\label{group__Eina__Inline__Array__Group_ga38a116a1355055b470c31bb4f633e53b}


Creates a new inline array. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em member\+\_\+size} & The size of each member in the array \\
\hline
\mbox{\tt in}  & {\em step} & The step size by which to resize the array, do this using the following extra amount \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The new inline array table, otherwise {\ttfamily N\+U\+LL} on failure
\end{DoxyReturn}
This creates a new array where members are inlined in a sequence. Each member has {\itshape member\+\_\+size} bytes.

\begin{DoxyNote}{Note}
If the {\itshape step} is {\ttfamily 0}, then a safe default is chosen.

On failure, {\ttfamily N\+U\+LL} is returned. If {\ttfamily member\+\_\+size} is zero, then {\ttfamily N\+U\+LL} is returned.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Eina__Inline__Array__Group_ga369b3090b7c04377eaceb6bebfe36e06}{eina\+\_\+inarray\+\_\+free()}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


Referenced by ecore\+\_\+x\+\_\+selection\+\_\+owner\+\_\+get(), and efl\+::eina\+::\+\_\+nonpod\+\_\+inarray$<$ T $>$\+::insert().

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+free@{eina\+\_\+inarray\+\_\+free}}
\index{eina\+\_\+inarray\+\_\+free@{eina\+\_\+inarray\+\_\+free}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+free(\+Eina\+\_\+\+Inarray $\ast$array)}{eina_inarray_free(Eina_Inarray *array)}}]{\setlength{\rightskip}{0pt plus 5cm}void eina\+\_\+inarray\+\_\+free (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_ga369b3090b7c04377eaceb6bebfe36e06}{}\label{group__Eina__Inline__Array__Group_ga369b3090b7c04377eaceb6bebfe36e06}


Frees an array and its members. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Eina__Inline__Array__Group_ga4e2b2a5b7d01613db5b578d8dbec36b7}{eina\+\_\+inarray\+\_\+flush()}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References \+\_\+\+Eina\+\_\+\+Inarray\+::members.



Referenced by ecore\+\_\+x\+\_\+selection\+\_\+owner\+\_\+get(), and efl\+::eina\+::\+\_\+inarray\+\_\+common\+\_\+base\+::$\sim$\+\_\+inarray\+\_\+common\+\_\+base().

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+step\+\_\+set@{eina\+\_\+inarray\+\_\+step\+\_\+set}}
\index{eina\+\_\+inarray\+\_\+step\+\_\+set@{eina\+\_\+inarray\+\_\+step\+\_\+set}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+step\+\_\+set(\+Eina\+\_\+\+Inarray $\ast$array, unsigned int sizeof\+\_\+eina\+\_\+inarray, unsigned int member\+\_\+size, unsigned int step)}{eina_inarray_step_set(Eina_Inarray *array, unsigned int sizeof_eina_inarray, unsigned int member_size, unsigned int step)}}]{\setlength{\rightskip}{0pt plus 5cm}void eina\+\_\+inarray\+\_\+step\+\_\+set (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{unsigned int}]{sizeof\+\_\+eina\+\_\+inarray, }
\item[{unsigned int}]{member\+\_\+size, }
\item[{unsigned int}]{step}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_ga97ceb13e335d8b8aae8dfcce735ec274}{}\label{group__Eina__Inline__Array__Group_ga97ceb13e335d8b8aae8dfcce735ec274}


Initializes an inline array. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object to initialize \\
\hline
\mbox{\tt in}  & {\em sizeof\+\_\+eina\+\_\+inarray} & The size of array object \\
\hline
\mbox{\tt in}  & {\em member\+\_\+size} & The size of each member in the array \\
\hline
\mbox{\tt in}  & {\em step} & The step size by which to resize the array, do this using the following extra amount\\
\hline
\end{DoxyParams}
This initializes an array. If the {\ttfamily step} is {\ttfamily 0}, then a safe default is chosen.

\begin{DoxyNote}{Note}
This is useful for arrays inlined into other structures or allocated to a stack.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Eina__Inline__Array__Group_ga4e2b2a5b7d01613db5b578d8dbec36b7}{eina\+\_\+inarray\+\_\+flush()}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References E\+RR.

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+flush@{eina\+\_\+inarray\+\_\+flush}}
\index{eina\+\_\+inarray\+\_\+flush@{eina\+\_\+inarray\+\_\+flush}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+flush(\+Eina\+\_\+\+Inarray $\ast$array)}{eina_inarray_flush(Eina_Inarray *array)}}]{\setlength{\rightskip}{0pt plus 5cm}void eina\+\_\+inarray\+\_\+flush (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_ga4e2b2a5b7d01613db5b578d8dbec36b7}{}\label{group__Eina__Inline__Array__Group_ga4e2b2a5b7d01613db5b578d8dbec36b7}


Removes every member from the array. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References \+\_\+\+Eina\+\_\+\+Inarray\+::len, \+\_\+\+Eina\+\_\+\+Inarray\+::max, and \+\_\+\+Eina\+\_\+\+Inarray\+::members.



Referenced by efl\+::eina\+::\+\_\+pod\+\_\+inarray$<$ T $>$\+::clear(), and efl\+::eina\+::\+\_\+nonpod\+\_\+inarray$<$ T $>$\+::clear().

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+push@{eina\+\_\+inarray\+\_\+push}}
\index{eina\+\_\+inarray\+\_\+push@{eina\+\_\+inarray\+\_\+push}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+push(\+Eina\+\_\+\+Inarray $\ast$array, const void $\ast$data)}{eina_inarray_push(Eina_Inarray *array, const void *data)}}]{\setlength{\rightskip}{0pt plus 5cm}int eina\+\_\+inarray\+\_\+push (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{const void $\ast$}]{data}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_ga6b9a97816b98ccf9be6b65ca06b90013}{}\label{group__Eina__Inline__Array__Group_ga6b9a97816b98ccf9be6b65ca06b90013}


Copies the data as the last member of the array. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\mbox{\tt in}  & {\em data} & The data to be copied at the end \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The index of the new member, otherwise {\ttfamily -\/1} on errors
\end{DoxyReturn}
This copies the given pointer contents at the end of the array. The pointer is not referenced, instead its contents are copied to the members array using the previously defined {\ttfamily member\+\_\+size}.

\begin{DoxySeeAlso}{See also}
\hyperlink{group__Eina__Inline__Array__Group_ga8928a9428988a511720ad6b4370f86e6}{eina\+\_\+inarray\+\_\+insert\+\_\+at()}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References \+\_\+\+Eina\+\_\+\+Inarray\+::len, and \+\_\+\+Eina\+\_\+\+Inarray\+::member\+\_\+size.



Referenced by ecore\+\_\+x\+\_\+selection\+\_\+owner\+\_\+get(), eina\+\_\+inarray\+\_\+insert(), and efl\+::eina\+::\+\_\+pod\+\_\+inarray$<$ T $>$\+::push\+\_\+back().

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+grow@{eina\+\_\+inarray\+\_\+grow}}
\index{eina\+\_\+inarray\+\_\+grow@{eina\+\_\+inarray\+\_\+grow}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+grow(\+Eina\+\_\+\+Inarray $\ast$array, unsigned int size)}{eina_inarray_grow(Eina_Inarray *array, unsigned int size)}}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ eina\+\_\+inarray\+\_\+grow (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{unsigned int}]{size}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_gaec3ab09f7e7aa05c413eccf927d47ebb}{}\label{group__Eina__Inline__Array__Group_gaec3ab09f7e7aa05c413eccf927d47ebb}


Allocate new item at the end of the array. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\mbox{\tt in}  & {\em size} & The number of new item to allocate\\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
The returned pointer is only valid until you use any other eina\+\_\+inarray function.
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}


References \+\_\+\+Eina\+\_\+\+Inarray\+::len.



Referenced by evas\+\_\+async\+\_\+events\+\_\+put(), and efl\+::eina\+::\+\_\+pod\+\_\+inarray$<$ T $>$\+::insert().

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+insert@{eina\+\_\+inarray\+\_\+insert}}
\index{eina\+\_\+inarray\+\_\+insert@{eina\+\_\+inarray\+\_\+insert}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+insert(\+Eina\+\_\+\+Inarray $\ast$array, const void $\ast$data, Eina\+\_\+\+Compare\+\_\+\+Cb compare)}{eina_inarray_insert(Eina_Inarray *array, const void *data, Eina_Compare_Cb compare)}}]{\setlength{\rightskip}{0pt plus 5cm}int eina\+\_\+inarray\+\_\+insert (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{const void $\ast$}]{data, }
\item[{{\bf Eina\+\_\+\+Compare\+\_\+\+Cb}}]{compare}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_ga55e20eb249332bac73809fe171f0a5a5}{}\label{group__Eina__Inline__Array__Group_ga55e20eb249332bac73809fe171f0a5a5}


Copies the data to the array at a position found by the comparison function. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\mbox{\tt in}  & {\em data} & The data to be copied \\
\hline
\mbox{\tt in}  & {\em compare} & The compare function \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The index of the new member, otherwise {\ttfamily -\/1} on errors
\end{DoxyReturn}
This copies the given pointer contents at the array position defined by the given {\itshape compare} function. The pointer is not referenced, instead its contents are copied to the members array using the previously defined {\ttfamily member\+\_\+size}.

\begin{DoxyNote}{Note}
The data given to the {\ttfamily compare} function is a pointer to the member memory itself, do no change it.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Eina__Inline__Array__Group_ga3dfa2e214c3cf3363f6ed390da4221c3}{eina\+\_\+inarray\+\_\+insert\+\_\+sorted()} 

\hyperlink{group__Eina__Inline__Array__Group_ga8928a9428988a511720ad6b4370f86e6}{eina\+\_\+inarray\+\_\+insert\+\_\+at()} 

\hyperlink{group__Eina__Inline__Array__Group_ga6b9a97816b98ccf9be6b65ca06b90013}{eina\+\_\+inarray\+\_\+push()}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References eina\+\_\+inarray\+\_\+insert\+\_\+at(), eina\+\_\+inarray\+\_\+push(), \+\_\+\+Eina\+\_\+\+Inarray\+::len, \+\_\+\+Eina\+\_\+\+Inarray\+::member\+\_\+size, and \+\_\+\+Eina\+\_\+\+Inarray\+::members.

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+insert\+\_\+sorted@{eina\+\_\+inarray\+\_\+insert\+\_\+sorted}}
\index{eina\+\_\+inarray\+\_\+insert\+\_\+sorted@{eina\+\_\+inarray\+\_\+insert\+\_\+sorted}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+insert\+\_\+sorted(\+Eina\+\_\+\+Inarray $\ast$array, const void $\ast$data, Eina\+\_\+\+Compare\+\_\+\+Cb compare)}{eina_inarray_insert_sorted(Eina_Inarray *array, const void *data, Eina_Compare_Cb compare)}}]{\setlength{\rightskip}{0pt plus 5cm}int eina\+\_\+inarray\+\_\+insert\+\_\+sorted (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{const void $\ast$}]{data, }
\item[{{\bf Eina\+\_\+\+Compare\+\_\+\+Cb}}]{compare}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_ga3dfa2e214c3cf3363f6ed390da4221c3}{}\label{group__Eina__Inline__Array__Group_ga3dfa2e214c3cf3363f6ed390da4221c3}


Copies the data to the array at a position found by the comparison function. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\mbox{\tt in}  & {\em data} & The data to be copied \\
\hline
\mbox{\tt in}  & {\em compare} & The compare function \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The index of the new member, otherwise {\ttfamily -\/1} on errors
\end{DoxyReturn}
This copies the given pointer contents at the array position defined by the given {\ttfamily compare} function. The pointer is not referenced, instead its contents are copied to the members array using the previously defined {\ttfamily member\+\_\+size}.

\begin{DoxyNote}{Note}
The data given to the {\ttfamily compare} function is a pointer to the member memory itself, do no change it.

This variation optimizes the insertion position assuming that the array is already sorted by doing a binary search.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Eina__Inline__Array__Group_ga485250d8aef53c5648238e94987f58cc}{eina\+\_\+inarray\+\_\+sort()}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References eina\+\_\+inarray\+\_\+insert\+\_\+at().

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+remove@{eina\+\_\+inarray\+\_\+remove}}
\index{eina\+\_\+inarray\+\_\+remove@{eina\+\_\+inarray\+\_\+remove}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+remove(\+Eina\+\_\+\+Inarray $\ast$array, const void $\ast$data)}{eina_inarray_remove(Eina_Inarray *array, const void *data)}}]{\setlength{\rightskip}{0pt plus 5cm}int eina\+\_\+inarray\+\_\+remove (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{const void $\ast$}]{data}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_ga4075a8845cdc9ea50df235e331f079fc}{}\label{group__Eina__Inline__Array__Group_ga4075a8845cdc9ea50df235e331f079fc}


Finds data and removes the matching member. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\mbox{\tt in}  & {\em data} & The data to be found and removed \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The index of the removed member, otherwise {\ttfamily -\/1} on errors
\end{DoxyReturn}
This finds data in the array and removes it. Data may be an existing member of the array (then optimized) or the contents are matched using memcmp().

\begin{DoxySeeAlso}{See also}
\hyperlink{group__Eina__Inline__Array__Group_ga629fc0146641254b62562f6bef2f01ad}{eina\+\_\+inarray\+\_\+pop()} 

\hyperlink{group__Eina__Inline__Array__Group_gad7fe9f774d769433c6285af1f8f94767}{eina\+\_\+inarray\+\_\+remove\+\_\+at()}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References eina\+\_\+inarray\+\_\+remove\+\_\+at(), \+\_\+\+Eina\+\_\+\+Inarray\+::len, \+\_\+\+Eina\+\_\+\+Inarray\+::member\+\_\+size, and \+\_\+\+Eina\+\_\+\+Inarray\+::members.

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+pop@{eina\+\_\+inarray\+\_\+pop}}
\index{eina\+\_\+inarray\+\_\+pop@{eina\+\_\+inarray\+\_\+pop}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+pop(\+Eina\+\_\+\+Inarray $\ast$array)}{eina_inarray_pop(Eina_Inarray *array)}}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ eina\+\_\+inarray\+\_\+pop (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_ga629fc0146641254b62562f6bef2f01ad}{}\label{group__Eina__Inline__Array__Group_ga629fc0146641254b62562f6bef2f01ad}


Removes the last member of the array. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The data poped out of the array
\end{DoxyReturn}
\begin{DoxyNote}{Note}
The data could be considered valid only until any other operation touched the Inarray.
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References \+\_\+\+Eina\+\_\+\+Inarray\+::len.



Referenced by efl\+::eina\+::\+\_\+pod\+\_\+inarray$<$ T $>$\+::pop\+\_\+back(), and efl\+::eina\+::\+\_\+nonpod\+\_\+inarray$<$ T $>$\+::pop\+\_\+back().

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+nth@{eina\+\_\+inarray\+\_\+nth}}
\index{eina\+\_\+inarray\+\_\+nth@{eina\+\_\+inarray\+\_\+nth}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+nth(const Eina\+\_\+\+Inarray $\ast$array, unsigned int position)}{eina_inarray_nth(const Eina_Inarray *array, unsigned int position)}}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ eina\+\_\+inarray\+\_\+nth (
\begin{DoxyParamCaption}
\item[{const {\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{unsigned int}]{position}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_ga7f94b91bfbd5a5c01f9ffa41c1f91740}{}\label{group__Eina__Inline__Array__Group_ga7f94b91bfbd5a5c01f9ffa41c1f91740}


Gets the member at the given position. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\mbox{\tt in}  & {\em position} & The member position \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A pointer to current the member memory
\end{DoxyReturn}
This gets the member given that its position in the array is provided. It is a pointer to its current memory, then it can be invalidated with functions that change the array such as \hyperlink{group__Eina__Inline__Array__Group_ga6b9a97816b98ccf9be6b65ca06b90013}{eina\+\_\+inarray\+\_\+push()}, \hyperlink{group__Eina__Inline__Array__Group_ga8928a9428988a511720ad6b4370f86e6}{eina\+\_\+inarray\+\_\+insert\+\_\+at()}, or \hyperlink{group__Eina__Inline__Array__Group_gad7fe9f774d769433c6285af1f8f94767}{eina\+\_\+inarray\+\_\+remove\+\_\+at()}, or variants.

\begin{DoxySeeAlso}{See also}
eina\+\_\+inarray\+\_\+lookup() 

eina\+\_\+inarray\+\_\+lookup\+\_\+sorted()
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References \+\_\+\+Eina\+\_\+\+Inarray\+::len.



Referenced by efl\+::eina\+::\+\_\+inarray\+\_\+access\+\_\+traits\+::back(), efl\+::eina\+::\+\_\+inarray\+\_\+access\+\_\+traits\+::begin(), ecore\+\_\+x\+\_\+selection\+\_\+owner\+\_\+get(), efl\+::eina\+::\+\_\+inarray\+\_\+access\+\_\+traits\+::end(), and efl\+::eina\+::\+\_\+inarray\+\_\+access\+\_\+traits\+::front().

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+insert\+\_\+at@{eina\+\_\+inarray\+\_\+insert\+\_\+at}}
\index{eina\+\_\+inarray\+\_\+insert\+\_\+at@{eina\+\_\+inarray\+\_\+insert\+\_\+at}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+insert\+\_\+at(\+Eina\+\_\+\+Inarray $\ast$array, unsigned int position, const void $\ast$data)}{eina_inarray_insert_at(Eina_Inarray *array, unsigned int position, const void *data)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Bool} eina\+\_\+inarray\+\_\+insert\+\_\+at (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{unsigned int}]{position, }
\item[{const void $\ast$}]{data}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_ga8928a9428988a511720ad6b4370f86e6}{}\label{group__Eina__Inline__Array__Group_ga8928a9428988a511720ad6b4370f86e6}


Copies the data at the given position in the array. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\mbox{\tt in}  & {\em position} & The position to insert the member at \\
\hline
\mbox{\tt in}  & {\em data} & The data to be copied at the position \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\+I\+N\+A\+\_\+\+T\+R\+UE} on success, otherwise \hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\+I\+N\+A\+\_\+\+F\+A\+L\+SE} on failure
\end{DoxyReturn}
This copies the given pointer contents at the given {\ttfamily position} in the array. The pointer is not referenced, instead its contents are copied to the members array using the previously defined {\ttfamily member\+\_\+size}.

\begin{DoxyNote}{Note}
All the members from {\itshape position} to the end of the array are shifted to the end.

If {\itshape position} is equal to the end of the array (equal to \hyperlink{group__Eina__Inline__Array__Group_gaf6d3ce4a7b0b8e521e2c91024065d97d}{eina\+\_\+inarray\+\_\+count()}), then the member is appended.

If {\itshape position} is bigger than the array length, it fails.
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, E\+I\+N\+A\+\_\+\+T\+R\+UE, \+\_\+\+Eina\+\_\+\+Inarray\+::len, and \+\_\+\+Eina\+\_\+\+Inarray\+::member\+\_\+size.



Referenced by eina\+\_\+inarray\+\_\+insert(), and eina\+\_\+inarray\+\_\+insert\+\_\+sorted().

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+alloc\+\_\+at@{eina\+\_\+inarray\+\_\+alloc\+\_\+at}}
\index{eina\+\_\+inarray\+\_\+alloc\+\_\+at@{eina\+\_\+inarray\+\_\+alloc\+\_\+at}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+alloc\+\_\+at(\+Eina\+\_\+\+Inarray $\ast$array, unsigned int position, unsigned int member\+\_\+count)}{eina_inarray_alloc_at(Eina_Inarray *array, unsigned int position, unsigned int member_count)}}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ eina\+\_\+inarray\+\_\+alloc\+\_\+at (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{unsigned int}]{position, }
\item[{unsigned int}]{member\+\_\+count}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_ga0d80da2a705e35306d8b7bd57f0b234e}{}\label{group__Eina__Inline__Array__Group_ga0d80da2a705e35306d8b7bd57f0b234e}


Opens a space at the given position, returning its pointer. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\mbox{\tt in}  & {\em position} & The position to insert first member at (open/allocate space) \\
\hline
\mbox{\tt in}  & {\em member\+\_\+count} & The number of times {\ttfamily member\+\_\+size} bytes are allocated \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A pointer to the first member memory allocated, otherwise {\ttfamily N\+U\+LL} on errors
\end{DoxyReturn}
\begin{DoxyNote}{Note}
This is similar to \hyperlink{group__Eina__Inline__Array__Group_ga8928a9428988a511720ad6b4370f86e6}{eina\+\_\+inarray\+\_\+insert\+\_\+at()}, but useful if the members contents are still unknown or unallocated. It makes room for the required number of items and returns the pointer to the first item, similar to malloc(member\+\_\+count $\ast$ member\+\_\+size), with the guarantee that all the memory is within the members array.

The new member memory is undefined, it\textquotesingle{}s not automatically zeroed.

All the members from {\itshape position} to the end of the array are shifted to the end.

If {\itshape position} is equal to the end of the array (equal to \hyperlink{group__Eina__Inline__Array__Group_gaf6d3ce4a7b0b8e521e2c91024065d97d}{eina\+\_\+inarray\+\_\+count()}), then the member is appended.

If {\itshape position} is bigger than the array length, it fails.
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References \+\_\+\+Eina\+\_\+\+Inarray\+::len, and \+\_\+\+Eina\+\_\+\+Inarray\+::member\+\_\+size.



Referenced by efl\+::eina\+::\+\_\+pod\+\_\+inarray$<$ T $>$\+::insert().

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+replace\+\_\+at@{eina\+\_\+inarray\+\_\+replace\+\_\+at}}
\index{eina\+\_\+inarray\+\_\+replace\+\_\+at@{eina\+\_\+inarray\+\_\+replace\+\_\+at}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+replace\+\_\+at(\+Eina\+\_\+\+Inarray $\ast$array, unsigned int position, const void $\ast$data)}{eina_inarray_replace_at(Eina_Inarray *array, unsigned int position, const void *data)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Bool} eina\+\_\+inarray\+\_\+replace\+\_\+at (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{unsigned int}]{position, }
\item[{const void $\ast$}]{data}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_gab8fc65cb1a9f7736343f3f6b7e1639ca}{}\label{group__Eina__Inline__Array__Group_gab8fc65cb1a9f7736343f3f6b7e1639ca}


Copies the data to the given position. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\mbox{\tt in}  & {\em position} & The position to copy the member at \\
\hline
\mbox{\tt in}  & {\em data} & The data to be copied at the position \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\+I\+N\+A\+\_\+\+T\+R\+UE} on success, otherwise \hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\+I\+N\+A\+\_\+\+F\+A\+L\+SE} on failure
\end{DoxyReturn}
This copies the given pointer contents at the given {\ttfamily position} in the array. The pointer is not referenced, instead its contents are copied to the members array using the previously defined {\ttfamily member\+\_\+size}.

\begin{DoxyNote}{Note}
If {\ttfamily position} does not exist, it fails.
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, E\+I\+N\+A\+\_\+\+T\+R\+UE, \+\_\+\+Eina\+\_\+\+Inarray\+::len, and \+\_\+\+Eina\+\_\+\+Inarray\+::member\+\_\+size.

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+remove\+\_\+at@{eina\+\_\+inarray\+\_\+remove\+\_\+at}}
\index{eina\+\_\+inarray\+\_\+remove\+\_\+at@{eina\+\_\+inarray\+\_\+remove\+\_\+at}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+remove\+\_\+at(\+Eina\+\_\+\+Inarray $\ast$array, unsigned int position)}{eina_inarray_remove_at(Eina_Inarray *array, unsigned int position)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Bool} eina\+\_\+inarray\+\_\+remove\+\_\+at (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{unsigned int}]{position}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_gad7fe9f774d769433c6285af1f8f94767}{}\label{group__Eina__Inline__Array__Group_gad7fe9f774d769433c6285af1f8f94767}


Removes a member from the given position. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\mbox{\tt in}  & {\em position} & The position from which to remove a member \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\+I\+N\+A\+\_\+\+T\+R\+UE} on success, otherwise \hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\+I\+N\+A\+\_\+\+F\+A\+L\+SE} on failure
\end{DoxyReturn}
\begin{DoxyNote}{Note}
The member is removed from an array and members after it are moved towards the array head.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Eina__Inline__Array__Group_ga629fc0146641254b62562f6bef2f01ad}{eina\+\_\+inarray\+\_\+pop()} 

\hyperlink{group__Eina__Inline__Array__Group_ga4075a8845cdc9ea50df235e331f079fc}{eina\+\_\+inarray\+\_\+remove()}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, E\+I\+N\+A\+\_\+\+T\+R\+UE, \+\_\+\+Eina\+\_\+\+Inarray\+::len, and \+\_\+\+Eina\+\_\+\+Inarray\+::member\+\_\+size.



Referenced by eina\+\_\+inarray\+\_\+foreach\+\_\+remove(), eina\+\_\+inarray\+\_\+remove(), and efl\+::eina\+::\+\_\+pod\+\_\+inarray$<$ T $>$\+::erase().

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+reverse@{eina\+\_\+inarray\+\_\+reverse}}
\index{eina\+\_\+inarray\+\_\+reverse@{eina\+\_\+inarray\+\_\+reverse}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+reverse(\+Eina\+\_\+\+Inarray $\ast$array)}{eina_inarray_reverse(Eina_Inarray *array)}}]{\setlength{\rightskip}{0pt plus 5cm}void eina\+\_\+inarray\+\_\+reverse (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_gafcd0b1b94629685b082e5ffa0c9a0b00}{}\label{group__Eina__Inline__Array__Group_gafcd0b1b94629685b082e5ffa0c9a0b00}


Reverses members in the array. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object\\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
If you do not want to change the array, just walk through its elements backwards, then use the \hyperlink{group__Eina__Inline__Array__Group_ga0bfd07aebdb03651a901f3ba6b8e50cb}{E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+R\+E\+V\+E\+R\+S\+E\+\_\+\+F\+O\+R\+E\+A\+C\+H()} macro.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Eina__Inline__Array__Group_ga0bfd07aebdb03651a901f3ba6b8e50cb}{E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+R\+E\+V\+E\+R\+S\+E\+\_\+\+F\+O\+R\+E\+A\+C\+H()}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References alloca(), \+\_\+\+Eina\+\_\+\+Inarray\+::len, \+\_\+\+Eina\+\_\+\+Inarray\+::member\+\_\+size, and \+\_\+\+Eina\+\_\+\+Inarray\+::members.

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+sort@{eina\+\_\+inarray\+\_\+sort}}
\index{eina\+\_\+inarray\+\_\+sort@{eina\+\_\+inarray\+\_\+sort}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+sort(\+Eina\+\_\+\+Inarray $\ast$array, Eina\+\_\+\+Compare\+\_\+\+Cb compare)}{eina_inarray_sort(Eina_Inarray *array, Eina_Compare_Cb compare)}}]{\setlength{\rightskip}{0pt plus 5cm}void eina\+\_\+inarray\+\_\+sort (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{{\bf Eina\+\_\+\+Compare\+\_\+\+Cb}}]{compare}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_ga485250d8aef53c5648238e94987f58cc}{}\label{group__Eina__Inline__Array__Group_ga485250d8aef53c5648238e94987f58cc}


Applies a quick sort to the array. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\mbox{\tt in}  & {\em compare} & The compare function\\
\hline
\end{DoxyParams}
This applies a quick sort to the {\itshape array}.

\begin{DoxyNote}{Note}
The data given to the {\itshape compare} function is a pointer to the member memory itself, do no change it.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Eina__Inline__Array__Group_ga3dfa2e214c3cf3363f6ed390da4221c3}{eina\+\_\+inarray\+\_\+insert\+\_\+sorted()}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References \+\_\+\+Eina\+\_\+\+Inarray\+::len, \+\_\+\+Eina\+\_\+\+Inarray\+::member\+\_\+size, and \+\_\+\+Eina\+\_\+\+Inarray\+::members.

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+search@{eina\+\_\+inarray\+\_\+search}}
\index{eina\+\_\+inarray\+\_\+search@{eina\+\_\+inarray\+\_\+search}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+search(const Eina\+\_\+\+Inarray $\ast$array, const void $\ast$data, Eina\+\_\+\+Compare\+\_\+\+Cb compare)}{eina_inarray_search(const Eina_Inarray *array, const void *data, Eina_Compare_Cb compare)}}]{\setlength{\rightskip}{0pt plus 5cm}int eina\+\_\+inarray\+\_\+search (
\begin{DoxyParamCaption}
\item[{const {\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{const void $\ast$}]{data, }
\item[{{\bf Eina\+\_\+\+Compare\+\_\+\+Cb}}]{compare}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_gadbd0ce893a32d7d24ff7662a15d88c5b}{}\label{group__Eina__Inline__Array__Group_gadbd0ce893a32d7d24ff7662a15d88c5b}


Searches for a member (linear walk). 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\mbox{\tt in}  & {\em data} & The member to search using the {\ttfamily compare} function \\
\hline
\mbox{\tt in}  & {\em compare} & The compare function \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The member index, otherwise {\ttfamily -\/1} if not found
\end{DoxyReturn}
This walks through an array by linearly looking for the given data compared by the {\ttfamily compare} function.

\begin{DoxyNote}{Note}
The data given to the {\ttfamily compare} function is a pointer to the member memory itself, do no change it.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
eina\+\_\+inarray\+\_\+lookup\+\_\+sorted()
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}
\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+search\+\_\+sorted@{eina\+\_\+inarray\+\_\+search\+\_\+sorted}}
\index{eina\+\_\+inarray\+\_\+search\+\_\+sorted@{eina\+\_\+inarray\+\_\+search\+\_\+sorted}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+search\+\_\+sorted(const Eina\+\_\+\+Inarray $\ast$array, const void $\ast$data, Eina\+\_\+\+Compare\+\_\+\+Cb compare)}{eina_inarray_search_sorted(const Eina_Inarray *array, const void *data, Eina_Compare_Cb compare)}}]{\setlength{\rightskip}{0pt plus 5cm}int eina\+\_\+inarray\+\_\+search\+\_\+sorted (
\begin{DoxyParamCaption}
\item[{const {\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{const void $\ast$}]{data, }
\item[{{\bf Eina\+\_\+\+Compare\+\_\+\+Cb}}]{compare}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_gadd55e832494d0c261fd6e6604abb6cf6}{}\label{group__Eina__Inline__Array__Group_gadd55e832494d0c261fd6e6604abb6cf6}


Searches for member (binary search walk). 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\mbox{\tt in}  & {\em data} & The member to search using the {\ttfamily compare} function \\
\hline
\mbox{\tt in}  & {\em compare} & The compare function \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The member index, otherwise {\ttfamily -\/1} if not found
\end{DoxyReturn}
\begin{DoxyNote}{Note}
Uses a binary search for the given data as compared by the {\ttfamily compare} function.

The data given to the {\ttfamily compare} function is a pointer to the member memory itself, do no change it.
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}
\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+foreach@{eina\+\_\+inarray\+\_\+foreach}}
\index{eina\+\_\+inarray\+\_\+foreach@{eina\+\_\+inarray\+\_\+foreach}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+foreach(const Eina\+\_\+\+Inarray $\ast$array, Eina\+\_\+\+Each\+\_\+\+Cb function, const void $\ast$user\+\_\+data)}{eina_inarray_foreach(const Eina_Inarray *array, Eina_Each_Cb function, const void *user_data)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Bool} eina\+\_\+inarray\+\_\+foreach (
\begin{DoxyParamCaption}
\item[{const {\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{{\bf Eina\+\_\+\+Each\+\_\+\+Cb}}]{function, }
\item[{const void $\ast$}]{user\+\_\+data}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_gade02e41769a458138559110b33a7041b}{}\label{group__Eina__Inline__Array__Group_gade02e41769a458138559110b33a7041b}


Calls {\ttfamily function} for each array member. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\mbox{\tt in}  & {\em function} & The callback function \\
\hline
\mbox{\tt in}  & {\em user\+\_\+data} & The user data given to a callback {\itshape function} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\+I\+N\+A\+\_\+\+T\+R\+UE} if it successfully iterates all the items of the array
\end{DoxyReturn}
This calls {\ttfamily function} for every given data in {\ttfamily array}.

\begin{DoxyNote}{Note}
This is a safe way to iterate over an array. {\ttfamily function} should return \hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\+I\+N\+A\+\_\+\+T\+R\+UE} as long as you want the function to continue iterating, by returning \hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\+I\+N\+A\+\_\+\+F\+A\+L\+SE} it stops and returns \hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\+I\+N\+A\+\_\+\+F\+A\+L\+SE} as the result.

The data given to {\ttfamily function} is a pointer to the member memory itself.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Eina__Inline__Array__Group_gab6ffcad27b5099aa34af9ecd5e2b22f9}{E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+F\+O\+R\+E\+A\+C\+H()}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, E\+I\+N\+A\+\_\+\+T\+R\+UE, \+\_\+\+Eina\+\_\+\+Inarray\+::len, \+\_\+\+Eina\+\_\+\+Inarray\+::member\+\_\+size, and \+\_\+\+Eina\+\_\+\+Inarray\+::members.

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+foreach\+\_\+remove@{eina\+\_\+inarray\+\_\+foreach\+\_\+remove}}
\index{eina\+\_\+inarray\+\_\+foreach\+\_\+remove@{eina\+\_\+inarray\+\_\+foreach\+\_\+remove}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+foreach\+\_\+remove(\+Eina\+\_\+\+Inarray $\ast$array, Eina\+\_\+\+Each\+\_\+\+Cb match, const void $\ast$user\+\_\+data)}{eina_inarray_foreach_remove(Eina_Inarray *array, Eina_Each_Cb match, const void *user_data)}}]{\setlength{\rightskip}{0pt plus 5cm}int eina\+\_\+inarray\+\_\+foreach\+\_\+remove (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{{\bf Eina\+\_\+\+Each\+\_\+\+Cb}}]{match, }
\item[{const void $\ast$}]{user\+\_\+data}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_gaec7f8b31af8c68f0e48e5aab20e4f9e8}{}\label{group__Eina__Inline__Array__Group_gaec7f8b31af8c68f0e48e5aab20e4f9e8}


Removes all the members that match. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\mbox{\tt in}  & {\em match} & The match function \\
\hline
\mbox{\tt in}  & {\em user\+\_\+data} & The user data given to callback {\ttfamily match} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The number of removed entries, otherwise {\ttfamily -\/1} on error
\end{DoxyReturn}
This removes all the entries in {\ttfamily array}, where the {\ttfamily match} function returns \hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\+I\+N\+A\+\_\+\+T\+R\+UE}.

\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, and eina\+\_\+inarray\+\_\+remove\+\_\+at().

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+resize@{eina\+\_\+inarray\+\_\+resize}}
\index{eina\+\_\+inarray\+\_\+resize@{eina\+\_\+inarray\+\_\+resize}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+resize(\+Eina\+\_\+\+Inarray $\ast$array, unsigned int new\+\_\+size)}{eina_inarray_resize(Eina_Inarray *array, unsigned int new_size)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Bool} eina\+\_\+inarray\+\_\+resize (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{unsigned int}]{new\+\_\+size}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_gaa80ef4069004e8a2d766e07417497ffb}{}\label{group__Eina__Inline__Array__Group_gaa80ef4069004e8a2d766e07417497ffb}


Resizes array to new size. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\mbox{\tt in}  & {\em new\+\_\+size} & New size for resize \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\+I\+N\+A\+\_\+\+T\+R\+UE} if it resized the array successfully.
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+10 
\end{DoxySince}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, E\+I\+N\+A\+\_\+\+T\+R\+UE, and \+\_\+\+Eina\+\_\+\+Inarray\+::len.



Referenced by efl\+::eina\+::\+\_\+nonpod\+\_\+inarray$<$ T $>$\+::insert().

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+count@{eina\+\_\+inarray\+\_\+count}}
\index{eina\+\_\+inarray\+\_\+count@{eina\+\_\+inarray\+\_\+count}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+count(const Eina\+\_\+\+Inarray $\ast$array)}{eina_inarray_count(const Eina_Inarray *array)}}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int eina\+\_\+inarray\+\_\+count (
\begin{DoxyParamCaption}
\item[{const {\bf Eina\+\_\+\+Inarray} $\ast$}]{array}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_gaf6d3ce4a7b0b8e521e2c91024065d97d}{}\label{group__Eina__Inline__Array__Group_gaf6d3ce4a7b0b8e521e2c91024065d97d}


Counts the number of members in an array. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The number of members in the array
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References \+\_\+\+Eina\+\_\+\+Inarray\+::len.



Referenced by edje\+\_\+object\+\_\+signal\+\_\+callback\+\_\+extra\+\_\+data\+\_\+get(), and efl\+::eina\+::\+\_\+inarray\+\_\+access\+\_\+traits\+::size().

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+iterator\+\_\+new@{eina\+\_\+inarray\+\_\+iterator\+\_\+new}}
\index{eina\+\_\+inarray\+\_\+iterator\+\_\+new@{eina\+\_\+inarray\+\_\+iterator\+\_\+new}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+iterator\+\_\+new(const Eina\+\_\+\+Inarray $\ast$array)}{eina_inarray_iterator_new(const Eina_Inarray *array)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Iterator}$\ast$ eina\+\_\+inarray\+\_\+iterator\+\_\+new (
\begin{DoxyParamCaption}
\item[{const {\bf Eina\+\_\+\+Inarray} $\ast$}]{array}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_gaf7e53fb490de491d5779e611eeef5b75}{}\label{group__Eina__Inline__Array__Group_gaf7e53fb490de491d5779e611eeef5b75}


Returns a new iterator associated to an array. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new iterator
\end{DoxyReturn}
This function returns a newly allocated iterator associated to {\ttfamily array}.

\begin{DoxyNote}{Note}
If the memory cannot be allocated, {\ttfamily N\+U\+LL} is returned. Otherwise, a valid iterator is returned.
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
If the array structure changes then the iterator becomes invalid. That is, if you add or remove members this iterator\textquotesingle{}s behavior is undefined and your program may crash.
\end{DoxyWarning}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References E\+I\+N\+A\+\_\+\+M\+A\+G\+I\+C\+\_\+\+S\+ET, F\+U\+N\+C\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+F\+R\+EE, F\+U\+N\+C\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+G\+E\+T\+\_\+\+C\+O\+N\+T\+A\+I\+N\+ER, F\+U\+N\+C\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+N\+E\+XT, and \+\_\+\+Eina\+\_\+\+Inarray\+::version.

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+iterator\+\_\+reversed\+\_\+new@{eina\+\_\+inarray\+\_\+iterator\+\_\+reversed\+\_\+new}}
\index{eina\+\_\+inarray\+\_\+iterator\+\_\+reversed\+\_\+new@{eina\+\_\+inarray\+\_\+iterator\+\_\+reversed\+\_\+new}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+iterator\+\_\+reversed\+\_\+new(const Eina\+\_\+\+Inarray $\ast$array)}{eina_inarray_iterator_reversed_new(const Eina_Inarray *array)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Iterator}$\ast$ eina\+\_\+inarray\+\_\+iterator\+\_\+reversed\+\_\+new (
\begin{DoxyParamCaption}
\item[{const {\bf Eina\+\_\+\+Inarray} $\ast$}]{array}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_gaa02b6292b00d705ed7c0a5f442362869}{}\label{group__Eina__Inline__Array__Group_gaa02b6292b00d705ed7c0a5f442362869}


Returns a new reversed iterator associated to an array. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new iterator
\end{DoxyReturn}
This function returns a newly allocated iterator associated to {\ttfamily array}.

\begin{DoxyNote}{Note}
Unlike \hyperlink{group__Eina__Inline__Array__Group_gaf7e53fb490de491d5779e611eeef5b75}{eina\+\_\+inarray\+\_\+iterator\+\_\+new()}, this walks through the array backwards.

If the memory cannot be allocated, {\ttfamily N\+U\+LL} is returned. Otherwise, a valid iterator is returned.
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
If the array structure changes then the iterator becomes invalid. That is, if you add or remove nodes this iterator\textquotesingle{}s behavior is undefined and your program may crash.
\end{DoxyWarning}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References E\+I\+N\+A\+\_\+\+M\+A\+G\+I\+C\+\_\+\+S\+ET, F\+U\+N\+C\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+F\+R\+EE, F\+U\+N\+C\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+G\+E\+T\+\_\+\+C\+O\+N\+T\+A\+I\+N\+ER, F\+U\+N\+C\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+N\+E\+XT, and \+\_\+\+Eina\+\_\+\+Inarray\+::len.

\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+accessor\+\_\+new@{eina\+\_\+inarray\+\_\+accessor\+\_\+new}}
\index{eina\+\_\+inarray\+\_\+accessor\+\_\+new@{eina\+\_\+inarray\+\_\+accessor\+\_\+new}!Inline Array@{Inline Array}}
\subsubsection[{\texorpdfstring{eina\+\_\+inarray\+\_\+accessor\+\_\+new(const Eina\+\_\+\+Inarray $\ast$array)}{eina_inarray_accessor_new(const Eina_Inarray *array)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Accessor}$\ast$ eina\+\_\+inarray\+\_\+accessor\+\_\+new (
\begin{DoxyParamCaption}
\item[{const {\bf Eina\+\_\+\+Inarray} $\ast$}]{array}
\end{DoxyParamCaption}
)}\hypertarget{group__Eina__Inline__Array__Group_ga29874e297950b36e3be8fa0fbc0e24d1}{}\label{group__Eina__Inline__Array__Group_ga29874e297950b36e3be8fa0fbc0e24d1}


Returns a new accessor associated to an array. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em array} & The array object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new accessor
\end{DoxyReturn}
This function returns a newly allocated accessor associated to {\ttfamily array}.

\begin{DoxyNote}{Note}
If the memory cannot be allocated, {\ttfamily N\+U\+LL} is returned Otherwise, a valid accessor is returned.
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References E\+I\+N\+A\+\_\+\+M\+A\+G\+I\+C\+\_\+\+S\+ET, F\+U\+N\+C\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+F\+R\+EE, F\+U\+N\+C\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+G\+E\+T\+\_\+\+AT, F\+U\+N\+C\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+G\+E\+T\+\_\+\+C\+O\+N\+T\+A\+I\+N\+ER, and \+\_\+\+Eina\+\_\+\+Inarray\+::version.

