\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\+C\+H}(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\+C\+H}(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'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}
\hypertarget{group__Eina__Inline__Array__Group_gab6ffcad27b5099aa34af9ecd5e2b22f9}{\index{Inline Array@{Inline Array}!E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+F\+O\+R\+E\+A\+C\+H@{E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+F\+O\+R\+E\+A\+C\+H}}
\index{E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+F\+O\+R\+E\+A\+C\+H@{E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+F\+O\+R\+E\+A\+C\+H}!Inline Array@{Inline Array}}
\subsubsection[{E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+F\+O\+R\+E\+A\+C\+H}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\+I\+N\+A\+\_\+\+I\+N\+A\+R\+R\+A\+Y\+\_\+\+F\+O\+R\+E\+A\+C\+H(
\begin{DoxyParamCaption}
\item[{}]{array, }
\item[{}]{itr}
\end{DoxyParamCaption}
)}}\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\+L\+L} 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}, and \hyperlink{eina_inarray_02_8c-example}{eina\+\_\+inarray\+\_\+02.\+c}.\end{Desc}
\hypertarget{group__Eina__Inline__Array__Group_ga0bfd07aebdb03651a901f3ba6b8e50cb}{\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\+C\+H@{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}}
\index{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@{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}!Inline Array@{Inline Array}}
\subsubsection[{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}]{\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\+C\+H(
\begin{DoxyParamCaption}
\item[{}]{array, }
\item[{}]{itr}
\end{DoxyParamCaption}
)}}\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\+L\+L} 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}
\hypertarget{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}{\index{Inline Array@{Inline Array}!Eina\+\_\+\+Inarray@{Eina\+\_\+\+Inarray}}
\index{Eina\+\_\+\+Inarray@{Eina\+\_\+\+Inarray}!Inline Array@{Inline Array}}
\subsubsection[{Eina\+\_\+\+Inarray}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Inarray}}}\label{group__Eina__Inline__Array__Group_gac464b15f0b1389d944cd93a595ba4d50}


Type for the inlined array. 

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


\subsection{Function Documentation}
\hypertarget{group__Eina__Inline__Array__Group_ga38a116a1355055b470c31bb4f633e53b}{\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+new@{eina\+\_\+inarray\+\_\+new}}
\index{eina\+\_\+inarray\+\_\+new@{eina\+\_\+inarray\+\_\+new}!Inline Array@{Inline Array}}
\subsubsection[{eina\+\_\+inarray\+\_\+new}]{\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}
)}}\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\+L\+L} 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\+L\+L} is returned. If {\ttfamily member\+\_\+size} is zero, then {\ttfamily N\+U\+L\+L} 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 efl\+::eina\+::\+\_\+nonpod\+\_\+inarray$<$ T $>$\+::insert().

\hypertarget{group__Eina__Inline__Array__Group_ga369b3090b7c04377eaceb6bebfe36e06}{\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+free@{eina\+\_\+inarray\+\_\+free}}
\index{eina\+\_\+inarray\+\_\+free@{eina\+\_\+inarray\+\_\+free}!Inline Array@{Inline Array}}
\subsubsection[{eina\+\_\+inarray\+\_\+free}]{\setlength{\rightskip}{0pt plus 5cm}void eina\+\_\+inarray\+\_\+free (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array}
\end{DoxyParamCaption}
)}}\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 efl\+::eina\+::\+\_\+inarray\+\_\+common\+\_\+base\+::$\sim$\+\_\+inarray\+\_\+common\+\_\+base().

\hypertarget{group__Eina__Inline__Array__Group_ga97ceb13e335d8b8aae8dfcce735ec274}{\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[{eina\+\_\+inarray\+\_\+step\+\_\+set}]{\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}
)}}\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\+R\+R.

\hypertarget{group__Eina__Inline__Array__Group_ga4e2b2a5b7d01613db5b578d8dbec36b7}{\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+flush@{eina\+\_\+inarray\+\_\+flush}}
\index{eina\+\_\+inarray\+\_\+flush@{eina\+\_\+inarray\+\_\+flush}!Inline Array@{Inline Array}}
\subsubsection[{eina\+\_\+inarray\+\_\+flush}]{\setlength{\rightskip}{0pt plus 5cm}void eina\+\_\+inarray\+\_\+flush (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array}
\end{DoxyParamCaption}
)}}\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().

\hypertarget{group__Eina__Inline__Array__Group_ga6b9a97816b98ccf9be6b65ca06b90013}{\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+push@{eina\+\_\+inarray\+\_\+push}}
\index{eina\+\_\+inarray\+\_\+push@{eina\+\_\+inarray\+\_\+push}!Inline Array@{Inline Array}}
\subsubsection[{eina\+\_\+inarray\+\_\+push}]{\setlength{\rightskip}{0pt plus 5cm}int eina\+\_\+inarray\+\_\+push (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{const void $\ast$}]{data}
\end{DoxyParamCaption}
)}}\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 eina\+\_\+inarray\+\_\+insert(), and efl\+::eina\+::\+\_\+pod\+\_\+inarray$<$ T $>$\+::push\+\_\+back().

\hypertarget{group__Eina__Inline__Array__Group_gaec3ab09f7e7aa05c413eccf927d47ebb}{\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+grow@{eina\+\_\+inarray\+\_\+grow}}
\index{eina\+\_\+inarray\+\_\+grow@{eina\+\_\+inarray\+\_\+grow}!Inline Array@{Inline Array}}
\subsubsection[{eina\+\_\+inarray\+\_\+grow}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ eina\+\_\+inarray\+\_\+grow (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{unsigned int}]{size}
\end{DoxyParamCaption}
)}}\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().

\hypertarget{group__Eina__Inline__Array__Group_ga55e20eb249332bac73809fe171f0a5a5}{\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+insert@{eina\+\_\+inarray\+\_\+insert}}
\index{eina\+\_\+inarray\+\_\+insert@{eina\+\_\+inarray\+\_\+insert}!Inline Array@{Inline Array}}
\subsubsection[{eina\+\_\+inarray\+\_\+insert}]{\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}
)}}\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.

\hypertarget{group__Eina__Inline__Array__Group_ga3dfa2e214c3cf3363f6ed390da4221c3}{\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[{eina\+\_\+inarray\+\_\+insert\+\_\+sorted}]{\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}
)}}\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().

\hypertarget{group__Eina__Inline__Array__Group_ga4075a8845cdc9ea50df235e331f079fc}{\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+remove@{eina\+\_\+inarray\+\_\+remove}}
\index{eina\+\_\+inarray\+\_\+remove@{eina\+\_\+inarray\+\_\+remove}!Inline Array@{Inline Array}}
\subsubsection[{eina\+\_\+inarray\+\_\+remove}]{\setlength{\rightskip}{0pt plus 5cm}int eina\+\_\+inarray\+\_\+remove (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array, }
\item[{const void $\ast$}]{data}
\end{DoxyParamCaption}
)}}\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.

\hypertarget{group__Eina__Inline__Array__Group_ga629fc0146641254b62562f6bef2f01ad}{\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+pop@{eina\+\_\+inarray\+\_\+pop}}
\index{eina\+\_\+inarray\+\_\+pop@{eina\+\_\+inarray\+\_\+pop}!Inline Array@{Inline Array}}
\subsubsection[{eina\+\_\+inarray\+\_\+pop}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ eina\+\_\+inarray\+\_\+pop (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array}
\end{DoxyParamCaption}
)}}\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().

\hypertarget{group__Eina__Inline__Array__Group_ga7f94b91bfbd5a5c01f9ffa41c1f91740}{\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+nth@{eina\+\_\+inarray\+\_\+nth}}
\index{eina\+\_\+inarray\+\_\+nth@{eina\+\_\+inarray\+\_\+nth}!Inline Array@{Inline Array}}
\subsubsection[{eina\+\_\+inarray\+\_\+nth}]{\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}
)}}\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(), efl\+::eina\+::\+\_\+inarray\+\_\+access\+\_\+traits\+::end(), and efl\+::eina\+::\+\_\+inarray\+\_\+access\+\_\+traits\+::front().

\hypertarget{group__Eina__Inline__Array__Group_ga8928a9428988a511720ad6b4370f86e6}{\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[{eina\+\_\+inarray\+\_\+insert\+\_\+at}]{\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}
)}}\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\+U\+E} on success, otherwise \hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E} 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\+S\+E, E\+I\+N\+A\+\_\+\+T\+R\+U\+E, \+\_\+\+Eina\+\_\+\+Inarray\+::len, and \+\_\+\+Eina\+\_\+\+Inarray\+::member\+\_\+size.



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

\hypertarget{group__Eina__Inline__Array__Group_ga0d80da2a705e35306d8b7bd57f0b234e}{\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[{eina\+\_\+inarray\+\_\+alloc\+\_\+at}]{\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}
)}}\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\+L\+L} 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'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().

\hypertarget{group__Eina__Inline__Array__Group_gab8fc65cb1a9f7736343f3f6b7e1639ca}{\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[{eina\+\_\+inarray\+\_\+replace\+\_\+at}]{\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}
)}}\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\+U\+E} on success, otherwise \hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E} 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\+S\+E, E\+I\+N\+A\+\_\+\+T\+R\+U\+E, \+\_\+\+Eina\+\_\+\+Inarray\+::len, and \+\_\+\+Eina\+\_\+\+Inarray\+::member\+\_\+size.

\hypertarget{group__Eina__Inline__Array__Group_gad7fe9f774d769433c6285af1f8f94767}{\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[{eina\+\_\+inarray\+\_\+remove\+\_\+at}]{\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}
)}}\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\+U\+E} on success, otherwise \hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E} 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\+S\+E, E\+I\+N\+A\+\_\+\+T\+R\+U\+E, \+\_\+\+Eina\+\_\+\+Inarray\+::len, and \+\_\+\+Eina\+\_\+\+Inarray\+::member\+\_\+size.



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

\hypertarget{group__Eina__Inline__Array__Group_gafcd0b1b94629685b082e5ffa0c9a0b00}{\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+reverse@{eina\+\_\+inarray\+\_\+reverse}}
\index{eina\+\_\+inarray\+\_\+reverse@{eina\+\_\+inarray\+\_\+reverse}!Inline Array@{Inline Array}}
\subsubsection[{eina\+\_\+inarray\+\_\+reverse}]{\setlength{\rightskip}{0pt plus 5cm}void eina\+\_\+inarray\+\_\+reverse (
\begin{DoxyParamCaption}
\item[{{\bf Eina\+\_\+\+Inarray} $\ast$}]{array}
\end{DoxyParamCaption}
)}}\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.

\hypertarget{group__Eina__Inline__Array__Group_ga485250d8aef53c5648238e94987f58cc}{\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+sort@{eina\+\_\+inarray\+\_\+sort}}
\index{eina\+\_\+inarray\+\_\+sort@{eina\+\_\+inarray\+\_\+sort}!Inline Array@{Inline Array}}
\subsubsection[{eina\+\_\+inarray\+\_\+sort}]{\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}
)}}\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.

\hypertarget{group__Eina__Inline__Array__Group_gadbd0ce893a32d7d24ff7662a15d88c5b}{\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+search@{eina\+\_\+inarray\+\_\+search}}
\index{eina\+\_\+inarray\+\_\+search@{eina\+\_\+inarray\+\_\+search}!Inline Array@{Inline Array}}
\subsubsection[{eina\+\_\+inarray\+\_\+search}]{\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}
)}}\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}
\hypertarget{group__Eina__Inline__Array__Group_gadd55e832494d0c261fd6e6604abb6cf6}{\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[{eina\+\_\+inarray\+\_\+search\+\_\+sorted}]{\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}
)}}\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}
\hypertarget{group__Eina__Inline__Array__Group_gade02e41769a458138559110b33a7041b}{\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+foreach@{eina\+\_\+inarray\+\_\+foreach}}
\index{eina\+\_\+inarray\+\_\+foreach@{eina\+\_\+inarray\+\_\+foreach}!Inline Array@{Inline Array}}
\subsubsection[{eina\+\_\+inarray\+\_\+foreach}]{\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}
)}}\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\+U\+E} 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\+U\+E} 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\+S\+E} it stops and returns \hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E} 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\+S\+E, E\+I\+N\+A\+\_\+\+T\+R\+U\+E, \+\_\+\+Eina\+\_\+\+Inarray\+::len, \+\_\+\+Eina\+\_\+\+Inarray\+::member\+\_\+size, and \+\_\+\+Eina\+\_\+\+Inarray\+::members.

\hypertarget{group__Eina__Inline__Array__Group_gaec7f8b31af8c68f0e48e5aab20e4f9e8}{\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[{eina\+\_\+inarray\+\_\+foreach\+\_\+remove}]{\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}
)}}\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\+U\+E}.

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


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

\hypertarget{group__Eina__Inline__Array__Group_gaa80ef4069004e8a2d766e07417497ffb}{\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+resize@{eina\+\_\+inarray\+\_\+resize}}
\index{eina\+\_\+inarray\+\_\+resize@{eina\+\_\+inarray\+\_\+resize}!Inline Array@{Inline Array}}
\subsubsection[{eina\+\_\+inarray\+\_\+resize}]{\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}
)}}\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\+U\+E} if it resized the array successfully.
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+10 
\end{DoxySince}


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



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

\hypertarget{group__Eina__Inline__Array__Group_gaf6d3ce4a7b0b8e521e2c91024065d97d}{\index{Inline Array@{Inline Array}!eina\+\_\+inarray\+\_\+count@{eina\+\_\+inarray\+\_\+count}}
\index{eina\+\_\+inarray\+\_\+count@{eina\+\_\+inarray\+\_\+count}!Inline Array@{Inline Array}}
\subsubsection[{eina\+\_\+inarray\+\_\+count}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int eina\+\_\+inarray\+\_\+count (
\begin{DoxyParamCaption}
\item[{const {\bf Eina\+\_\+\+Inarray} $\ast$}]{array}
\end{DoxyParamCaption}
)}}\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 efl\+::eina\+::\+\_\+inarray\+\_\+access\+\_\+traits\+::size().

\hypertarget{group__Eina__Inline__Array__Group_gaf7e53fb490de491d5779e611eeef5b75}{\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[{eina\+\_\+inarray\+\_\+iterator\+\_\+new}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Iterator}$\ast$ eina\+\_\+inarray\+\_\+iterator\+\_\+new (
\begin{DoxyParamCaption}
\item[{const {\bf Eina\+\_\+\+Inarray} $\ast$}]{array}
\end{DoxyParamCaption}
)}}\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\+L\+L} 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'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\+E\+T, F\+U\+N\+C\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+F\+R\+E\+E, F\+U\+N\+C\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+G\+E\+T\+\_\+\+C\+O\+N\+T\+A\+I\+N\+E\+R, F\+U\+N\+C\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+N\+E\+X\+T, and \+\_\+\+Eina\+\_\+\+Inarray\+::version.

\hypertarget{group__Eina__Inline__Array__Group_gaa02b6292b00d705ed7c0a5f442362869}{\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[{eina\+\_\+inarray\+\_\+iterator\+\_\+reversed\+\_\+new}]{\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}
)}}\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\+L\+L} 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'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\+E\+T, F\+U\+N\+C\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+F\+R\+E\+E, F\+U\+N\+C\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+G\+E\+T\+\_\+\+C\+O\+N\+T\+A\+I\+N\+E\+R, F\+U\+N\+C\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R\+\_\+\+N\+E\+X\+T, and \+\_\+\+Eina\+\_\+\+Inarray\+::len.

\hypertarget{group__Eina__Inline__Array__Group_ga29874e297950b36e3be8fa0fbc0e24d1}{\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[{eina\+\_\+inarray\+\_\+accessor\+\_\+new}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Accessor}$\ast$ eina\+\_\+inarray\+\_\+accessor\+\_\+new (
\begin{DoxyParamCaption}
\item[{const {\bf Eina\+\_\+\+Inarray} $\ast$}]{array}
\end{DoxyParamCaption}
)}}\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\+L\+L} 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\+E\+T, F\+U\+N\+C\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+F\+R\+E\+E, F\+U\+N\+C\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+G\+E\+T\+\_\+\+A\+T, F\+U\+N\+C\+\_\+\+A\+C\+C\+E\+S\+S\+O\+R\+\_\+\+G\+E\+T\+\_\+\+C\+O\+N\+T\+A\+I\+N\+E\+R, and \+\_\+\+Eina\+\_\+\+Inarray\+::version.

