\doxysubsubsubsection{Red-\/\+Black tree}
\hypertarget{group__Eina__Rbtree__Group}{}\label{group__Eina__Rbtree__Group}\index{Red-\/Black tree@{Red-\/Black tree}}
\doxysubsubsubsubsubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{struct__Eina__Rbtree}{\+\_\+\+Eina\+\_\+\+Rbtree}}
\end{DoxyCompactItemize}
\doxysubsubsubsubsubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{group__Eina__Rbtree__Group_gae475680bfeddfae96f7b7ee3d805dd8a}{EINA\+\_\+\+RBTREE}}~\mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \+\_\+\+\_\+rbtree
\begin{DoxyCompactList}\small\item\em recommended way to declare the inlined Eina\+\_\+\+Rbtree in your type. \end{DoxyCompactList}\item 
\Hypertarget{group__Eina__Rbtree__Group_ga83075a5d81b0eddfa2e27bec16b39187}\label{group__Eina__Rbtree__Group_ga83075a5d81b0eddfa2e27bec16b39187} 
\#define {\bfseries EINA\+\_\+\+RBTREE\+\_\+\+GET}(Rbtree)~(\&((Rbtree)-\/$>$\+\_\+\+\_\+rbtree))
\begin{DoxyCompactList}\small\item\em access the inlined node if it was created with \doxylink{group__Eina__Rbtree__Group_gae475680bfeddfae96f7b7ee3d805dd8a}{EINA\+\_\+\+RBTREE}. \end{DoxyCompactList}\item 
\Hypertarget{group__Eina__Rbtree__Group_ga4b8d74e991e3d8cb2b4d0e46e9f34266}\label{group__Eina__Rbtree__Group_ga4b8d74e991e3d8cb2b4d0e46e9f34266} 
\#define {\bfseries EINA\+\_\+\+RBTREE\+\_\+\+CONTAINER\+\_\+\+GET}(Ptr,  Type)~((Type \texorpdfstring{$\ast$}{*})((char \texorpdfstring{$\ast$}{*})Ptr -\/ offsetof(Type, \+\_\+\+\_\+rbtree)))
\begin{DoxyCompactList}\small\item\em find back the container of a red black tree. \end{DoxyCompactList}\item 
\Hypertarget{group__Eina__Rbtree__Group_ga7290200e4688bdb1bc0211d938fd1dee}\label{group__Eina__Rbtree__Group_ga7290200e4688bdb1bc0211d938fd1dee} 
\#define {\bfseries EINA\+\_\+\+RBTREE\+\_\+\+CMP\+\_\+\+NODE\+\_\+\+CB}(Function)~((\mbox{\hyperlink{group__Eina__Rbtree__Group_ga2d2361f39451ad005f1f2aa57091869f}{Eina\+\_\+\+Rbtree\+\_\+\+Cmp\+\_\+\+Node\+\_\+\+Cb}})Function)
\begin{DoxyCompactList}\small\item\em Cast using \doxylink{group__Eina__Rbtree__Group_ga2d2361f39451ad005f1f2aa57091869f}{Eina\+\_\+\+Rbtree\+\_\+\+Cmp\+\_\+\+Node\+\_\+\+Cb}. \end{DoxyCompactList}\item 
\Hypertarget{group__Eina__Rbtree__Group_ga63dcb37d7929a2a73cb0239e9b53904b}\label{group__Eina__Rbtree__Group_ga63dcb37d7929a2a73cb0239e9b53904b} 
\#define {\bfseries EINA\+\_\+\+RBTREE\+\_\+\+CMP\+\_\+\+KEY\+\_\+\+CB}(Function)~((\mbox{\hyperlink{group__Eina__Rbtree__Group_gae9b8fb600f7cd10a6e3a4a2def10ae0c}{Eina\+\_\+\+Rbtree\+\_\+\+Cmp\+\_\+\+Key\+\_\+\+Cb}})Function)
\begin{DoxyCompactList}\small\item\em Cast using \doxylink{group__Eina__Rbtree__Group_gae9b8fb600f7cd10a6e3a4a2def10ae0c}{Eina\+\_\+\+Rbtree\+\_\+\+Cmp\+\_\+\+Key\+\_\+\+Cb}. \end{DoxyCompactList}\item 
\Hypertarget{group__Eina__Rbtree__Group_ga13ce93addd398ea1884bee8e6c62a6b4}\label{group__Eina__Rbtree__Group_ga13ce93addd398ea1884bee8e6c62a6b4} 
\#define {\bfseries EINA\+\_\+\+RBTREE\+\_\+\+FREE\+\_\+\+CB}(Function)~((\mbox{\hyperlink{group__Eina__Rbtree__Group_gafb59812628d25dc6b904438312e6051b}{Eina\+\_\+\+Rbtree\+\_\+\+Free\+\_\+\+Cb}})Function)
\begin{DoxyCompactList}\small\item\em Cast using \doxylink{group__Eina__Rbtree__Group_gafb59812628d25dc6b904438312e6051b}{Eina\+\_\+\+Rbtree\+\_\+\+Free\+\_\+\+Cb}. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsubsubsubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \mbox{\hyperlink{struct__Eina__Rbtree}{\+\_\+\+Eina\+\_\+\+Rbtree}} \mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}}
\begin{DoxyCompactList}\small\item\em Type for a Red-\/\+Black tree node. \end{DoxyCompactList}\item 
\Hypertarget{group__Eina__Rbtree__Group_ga2d2361f39451ad005f1f2aa57091869f}\label{group__Eina__Rbtree__Group_ga2d2361f39451ad005f1f2aa57091869f} 
typedef \mbox{\hyperlink{group__Eina__Rbtree__Group_ga17e474e713fccc1a8909aa158e707a8d}{Eina\+\_\+\+Rbtree\+\_\+\+Direction}}(\texorpdfstring{$\ast$}{*} {\bfseries Eina\+\_\+\+Rbtree\+\_\+\+Cmp\+\_\+\+Node\+\_\+\+Cb}) (const \mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}left, const \mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}right, void \texorpdfstring{$\ast$}{*}data)
\begin{DoxyCompactList}\small\item\em Function used to compare two nodes and see which direction to navigate. \end{DoxyCompactList}\item 
\Hypertarget{group__Eina__Rbtree__Group_gae9b8fb600f7cd10a6e3a4a2def10ae0c}\label{group__Eina__Rbtree__Group_gae9b8fb600f7cd10a6e3a4a2def10ae0c} 
typedef int(\texorpdfstring{$\ast$}{*} {\bfseries Eina\+\_\+\+Rbtree\+\_\+\+Cmp\+\_\+\+Key\+\_\+\+Cb}) (const \mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}node, const void \texorpdfstring{$\ast$}{*}key, int length, void \texorpdfstring{$\ast$}{*}data)
\begin{DoxyCompactList}\small\item\em Function used compare node with a given key of specified length. \end{DoxyCompactList}\item 
\Hypertarget{group__Eina__Rbtree__Group_gafb59812628d25dc6b904438312e6051b}\label{group__Eina__Rbtree__Group_gafb59812628d25dc6b904438312e6051b} 
typedef void(\texorpdfstring{$\ast$}{*} {\bfseries Eina\+\_\+\+Rbtree\+\_\+\+Free\+\_\+\+Cb}) (\mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}node, void \texorpdfstring{$\ast$}{*}data)
\begin{DoxyCompactList}\small\item\em Function used to free a node. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsubsubsubsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{group__Eina__Rbtree__Group_gadd99cd6522173cd12cfb7001f8815751}\label{group__Eina__Rbtree__Group_gadd99cd6522173cd12cfb7001f8815751} 
enum \mbox{\hyperlink{group__Eina__Rbtree__Group_gadd99cd6522173cd12cfb7001f8815751}{Eina\+\_\+\+Rbtree\+\_\+\+Color}} \{ \newline
{\bfseries EINA\+\_\+\+RBTREE\+\_\+\+RED}
, \newline
{\bfseries EINA\+\_\+\+RBTREE\+\_\+\+BLACK}
 \}
\begin{DoxyCompactList}\small\item\em node color. \end{DoxyCompactList}\item 
\Hypertarget{group__Eina__Rbtree__Group_ga17e474e713fccc1a8909aa158e707a8d}\label{group__Eina__Rbtree__Group_ga17e474e713fccc1a8909aa158e707a8d} 
enum \mbox{\hyperlink{group__Eina__Rbtree__Group_ga17e474e713fccc1a8909aa158e707a8d}{Eina\+\_\+\+Rbtree\+\_\+\+Direction}} \{ \newline
{\bfseries EINA\+\_\+\+RBTREE\+\_\+\+LEFT} = 0
, \newline
{\bfseries EINA\+\_\+\+RBTREE\+\_\+\+RIGHT} = 1
 \}
\begin{DoxyCompactList}\small\item\em walk direction. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsubsubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{group__Eina__Rbtree__Group_gaf56048dd789d371c71a4f2cf75015cdc}\label{group__Eina__Rbtree__Group_gaf56048dd789d371c71a4f2cf75015cdc} 
static \mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*} {\bfseries eina\+\_\+rbtree\+\_\+inline\+\_\+lookup} (const \mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}root, const void \texorpdfstring{$\ast$}{*}key, int length, \mbox{\hyperlink{group__Eina__Rbtree__Group_gae9b8fb600f7cd10a6e3a4a2def10ae0c}{Eina\+\_\+\+Rbtree\+\_\+\+Cmp\+\_\+\+Key\+\_\+\+Cb}} cmp, const void \texorpdfstring{$\ast$}{*}data)
\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{group__Eina__Rbtree__Group_gaddaf4eb05c2ea7f7c1a86271af51cde4}{eina\+\_\+rbtree\+\_\+inline\+\_\+insert}} (\mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}root, \mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}node, \mbox{\hyperlink{group__Eina__Rbtree__Group_ga2d2361f39451ad005f1f2aa57091869f}{Eina\+\_\+\+Rbtree\+\_\+\+Cmp\+\_\+\+Node\+\_\+\+Cb}} cmp, const void \texorpdfstring{$\ast$}{*}data)
\begin{DoxyCompactList}\small\item\em Inserts a new node inside an existing red black tree. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{group__Eina__Rbtree__Group_ga6fce88dec65a4118d5fb9cfa3bad150f}{eina\+\_\+rbtree\+\_\+inline\+\_\+remove}} (\mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}root, \mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}node, \mbox{\hyperlink{group__Eina__Rbtree__Group_ga2d2361f39451ad005f1f2aa57091869f}{Eina\+\_\+\+Rbtree\+\_\+\+Cmp\+\_\+\+Node\+\_\+\+Cb}} cmp, const void \texorpdfstring{$\ast$}{*}data)
\begin{DoxyCompactList}\small\item\em Removes a node from an existing red black tree. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void \mbox{\hyperlink{group__Eina__Rbtree__Group_gadbb0ae65f66c5522bc2bac437b386aa1}{eina\+\_\+rbtree\+\_\+delete}} (\mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}root, \mbox{\hyperlink{group__Eina__Rbtree__Group_gafb59812628d25dc6b904438312e6051b}{Eina\+\_\+\+Rbtree\+\_\+\+Free\+\_\+\+Cb}} func, void \texorpdfstring{$\ast$}{*}data)
\begin{DoxyCompactList}\small\item\em Deletes all nodes from a valid red black tree. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{group__Eina__Rbtree__Group_ga63eaa1574945b2929a3115fc1455a1a1}{eina\+\_\+rbtree\+\_\+iterator\+\_\+prefix}} (const \mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}root)
\begin{DoxyCompactList}\small\item\em Returns a new prefix iterator associated with a rbtree. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{group__Eina__Rbtree__Group_ga7b00d48c8e65807e1f8a6e76e28e2338}{eina\+\_\+rbtree\+\_\+iterator\+\_\+infix}} (const \mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}root)
\begin{DoxyCompactList}\small\item\em Returns a new prefix iterator associated with a rbtree. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{group__Eina__Rbtree__Group_ga6e32d1bf82fd3c2f169e523646f44983}{eina\+\_\+rbtree\+\_\+iterator\+\_\+postfix}} (const \mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}root)
\begin{DoxyCompactList}\small\item\em Returns a new prefix iterator associated with a rbtree. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsubsubsubsection{Detailed Description}


These functions provide Red-\/\+Black tree management.

These functions provide Red-\/\+Black tree management.

For a brief description look at \href{http://en.wikipedia.org/wiki/Red-black_tree}{\texttt{ http\+://en.\+wikipedia.\+org/wiki/\+Red-\/black\+\_\+tree}} . This code is largely inspired from a tutorial written by Julienne Walker at \+: \href{http://eternallyconfuzzled.com/tuts/datastructures/jsw_tut_rbtree.aspx}{\texttt{ http\+://eternallyconfuzzled.\+com/tuts/datastructures/jsw\+\_\+tut\+\_\+rbtree.\+aspx}} . The main difference is that this set of functions never allocate any data, making them particularly useful for memory management. 

\doxysubsubsubsubsection{Macro Definition Documentation}
\Hypertarget{group__Eina__Rbtree__Group_gae475680bfeddfae96f7b7ee3d805dd8a}\label{group__Eina__Rbtree__Group_gae475680bfeddfae96f7b7ee3d805dd8a} 
\index{Red-\/Black tree@{Red-\/Black tree}!EINA\_RBTREE@{EINA\_RBTREE}}
\index{EINA\_RBTREE@{EINA\_RBTREE}!Red-\/Black tree@{Red-\/Black tree}}
\doxysubsubsubsubsubsection{\texorpdfstring{EINA\_RBTREE}{EINA\_RBTREE}}
{\footnotesize\ttfamily \#define EINA\+\_\+\+RBTREE~\mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \+\_\+\+\_\+rbtree}



recommended way to declare the inlined Eina\+\_\+\+Rbtree in your type. 


\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keyword}{struct\ }my\_type\ \{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eina__Rbtree__Group_gae475680bfeddfae96f7b7ee3d805dd8a}{EINA\_RBTREE}};}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{int}\ my\_value;}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{char}\ *my\_name;}
\DoxyCodeLine{\};}

\end{DoxyCode}


\begin{DoxySeeAlso}{See also}
\doxylink{group__Eina__Rbtree__Group_ga83075a5d81b0eddfa2e27bec16b39187}{EINA\+\_\+\+RBTREE\+\_\+\+GET()} 
\end{DoxySeeAlso}


\doxysubsubsubsubsection{Typedef Documentation}
\Hypertarget{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}\label{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0} 
\index{Red-\/Black tree@{Red-\/Black tree}!Eina\_Rbtree@{Eina\_Rbtree}}
\index{Eina\_Rbtree@{Eina\_Rbtree}!Red-\/Black tree@{Red-\/Black tree}}
\doxysubsubsubsubsubsection{\texorpdfstring{Eina\_Rbtree}{Eina\_Rbtree}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}}}



Type for a Red-\/\+Black tree node. 

It should be inlined into user\textquotesingle{}s type. 

\doxysubsubsubsubsection{Function Documentation}
\Hypertarget{group__Eina__Rbtree__Group_gaddaf4eb05c2ea7f7c1a86271af51cde4}\label{group__Eina__Rbtree__Group_gaddaf4eb05c2ea7f7c1a86271af51cde4} 
\index{Red-\/Black tree@{Red-\/Black tree}!eina\_rbtree\_inline\_insert@{eina\_rbtree\_inline\_insert}}
\index{eina\_rbtree\_inline\_insert@{eina\_rbtree\_inline\_insert}!Red-\/Black tree@{Red-\/Black tree}}
\doxysubsubsubsubsubsection{\texorpdfstring{eina\_rbtree\_inline\_insert()}{eina\_rbtree\_inline\_insert()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*} eina\+\_\+rbtree\+\_\+inline\+\_\+insert (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}}]{root,  }\item[{\mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}}]{node,  }\item[{\mbox{\hyperlink{group__Eina__Rbtree__Group_ga2d2361f39451ad005f1f2aa57091869f}{Eina\+\_\+\+Rbtree\+\_\+\+Cmp\+\_\+\+Node\+\_\+\+Cb}}}]{cmp,  }\item[{const void \texorpdfstring{$\ast$}{*}}]{data }\end{DoxyParamCaption})}



Inserts a new node inside an existing red black tree. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em root} & The root of an existing valid red black tree. \\
\hline
\mbox{\texttt{ in}}  & {\em node} & The new node to insert. \\
\hline
\mbox{\texttt{ in}}  & {\em cmp} & The callback that is able to compare two nodes. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & Private data to help the compare function. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The new root of the red black tree.
\end{DoxyReturn}
This function inserts a new node in a valid red black tree. {\ttfamily NULL} is an empty valid red black tree. The resulting new tree is a valid red black tree. This function doesn\textquotesingle{}t allocate any data. 

References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.



Referenced by \mbox{\hyperlink{Ecore__Sdl_8h_a02070a2ecd3d48bc86b3d9db410521ed}{ecore\+\_\+sdl\+\_\+feed\+\_\+events()}}, and \mbox{\hyperlink{group__Edje__Part__Box_gac29c0dd222aaab5743b2a57f05d3c08d}{edje\+\_\+box\+\_\+layout\+\_\+register()}}.

\Hypertarget{group__Eina__Rbtree__Group_ga6fce88dec65a4118d5fb9cfa3bad150f}\label{group__Eina__Rbtree__Group_ga6fce88dec65a4118d5fb9cfa3bad150f} 
\index{Red-\/Black tree@{Red-\/Black tree}!eina\_rbtree\_inline\_remove@{eina\_rbtree\_inline\_remove}}
\index{eina\_rbtree\_inline\_remove@{eina\_rbtree\_inline\_remove}!Red-\/Black tree@{Red-\/Black tree}}
\doxysubsubsubsubsubsection{\texorpdfstring{eina\_rbtree\_inline\_remove()}{eina\_rbtree\_inline\_remove()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*} eina\+\_\+rbtree\+\_\+inline\+\_\+remove (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}}]{root,  }\item[{\mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}}]{node,  }\item[{\mbox{\hyperlink{group__Eina__Rbtree__Group_ga2d2361f39451ad005f1f2aa57091869f}{Eina\+\_\+\+Rbtree\+\_\+\+Cmp\+\_\+\+Node\+\_\+\+Cb}}}]{cmp,  }\item[{const void \texorpdfstring{$\ast$}{*}}]{data }\end{DoxyParamCaption})}



Removes a node from an existing red black tree. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em root} & The root of a valid red black tree. \\
\hline
\mbox{\texttt{ in}}  & {\em node} & The node to remove from the tree. \\
\hline
\mbox{\texttt{ in}}  & {\em cmp} & The callback that is able to compare two nodes. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & Private data to help the compare function. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The new root of the red black tree.
\end{DoxyReturn}
This function removes a new node in a valid red black tree that should contain the node that you are removing. This function will return {\ttfamily NULL} when the red black tree got empty. This function doesn\textquotesingle{}t free any data. 

References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.



Referenced by \mbox{\hyperlink{Ecore__Sdl_8h_a02070a2ecd3d48bc86b3d9db410521ed}{ecore\+\_\+sdl\+\_\+feed\+\_\+events()}}, and \mbox{\hyperlink{group__Edje__Part__Box_gac29c0dd222aaab5743b2a57f05d3c08d}{edje\+\_\+box\+\_\+layout\+\_\+register()}}.

\Hypertarget{group__Eina__Rbtree__Group_gadbb0ae65f66c5522bc2bac437b386aa1}\label{group__Eina__Rbtree__Group_gadbb0ae65f66c5522bc2bac437b386aa1} 
\index{Red-\/Black tree@{Red-\/Black tree}!eina\_rbtree\_delete@{eina\_rbtree\_delete}}
\index{eina\_rbtree\_delete@{eina\_rbtree\_delete}!Red-\/Black tree@{Red-\/Black tree}}
\doxysubsubsubsubsubsection{\texorpdfstring{eina\_rbtree\_delete()}{eina\_rbtree\_delete()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void eina\+\_\+rbtree\+\_\+delete (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}}]{root,  }\item[{\mbox{\hyperlink{group__Eina__Rbtree__Group_gafb59812628d25dc6b904438312e6051b}{Eina\+\_\+\+Rbtree\+\_\+\+Free\+\_\+\+Cb}}}]{func,  }\item[{void \texorpdfstring{$\ast$}{*}}]{data }\end{DoxyParamCaption})}



Deletes all nodes from a valid red black tree. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em root} & The root of a valid red black tree. \\
\hline
\mbox{\texttt{ in}}  & {\em func} & The callback that will free each node. \\
\hline
\mbox{\texttt{ in}}  & {\em data} & Private data to help the compare function. \\
\hline
\end{DoxyParams}


References \mbox{\hyperlink{group__Eina__Rbtree__Group_gadbb0ae65f66c5522bc2bac437b386aa1}{eina\+\_\+rbtree\+\_\+delete()}}, and \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}.



Referenced by \mbox{\hyperlink{group__Eina__Hash__Group_ga76829f09c99852b1536efc813d99fc78}{eina\+\_\+hash\+\_\+free()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga42c4cb2fb8de9a2e2ef172cf5ea736f0}{eina\+\_\+hash\+\_\+free\+\_\+buckets()}}, and \mbox{\hyperlink{group__Eina__Rbtree__Group_gadbb0ae65f66c5522bc2bac437b386aa1}{eina\+\_\+rbtree\+\_\+delete()}}.

\Hypertarget{group__Eina__Rbtree__Group_ga63eaa1574945b2929a3115fc1455a1a1}\label{group__Eina__Rbtree__Group_ga63eaa1574945b2929a3115fc1455a1a1} 
\index{Red-\/Black tree@{Red-\/Black tree}!eina\_rbtree\_iterator\_prefix@{eina\_rbtree\_iterator\_prefix}}
\index{eina\_rbtree\_iterator\_prefix@{eina\_rbtree\_iterator\_prefix}!Red-\/Black tree@{Red-\/Black tree}}
\doxysubsubsubsubsubsection{\texorpdfstring{eina\_rbtree\_iterator\_prefix()}{eina\_rbtree\_iterator\_prefix()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} \texorpdfstring{$\ast$}{*} eina\+\_\+rbtree\+\_\+iterator\+\_\+prefix (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}}]{root }\end{DoxyParamCaption})}



Returns a new prefix iterator associated with a rbtree. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em root} & The root of rbtree. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new iterator.
\end{DoxyReturn}
This function returns a newly allocated iterator associated with {\ttfamily root}. It will iterate the tree using prefix walk. If {\ttfamily root} is {\ttfamily NULL}, this function still returns a valid iterator that will always return false on \doxylink{group__Eina__Iterator__Group_gad870f9b1d5fb8892cb9623ad0e7f75b2}{eina\+\_\+iterator\+\_\+next()}, thus keeping API sane.

If the memory cannot be allocated, {\ttfamily NULL} is returned. Otherwise, a valid iterator is returned.

\begin{DoxyWarning}{Warning}
if the rbtree structure changes then the iterator becomes invalid! That is, if you add or remove nodes this iterator behavior is undefined and your program may crash! 
\end{DoxyWarning}
\Hypertarget{group__Eina__Rbtree__Group_ga7b00d48c8e65807e1f8a6e76e28e2338}\label{group__Eina__Rbtree__Group_ga7b00d48c8e65807e1f8a6e76e28e2338} 
\index{Red-\/Black tree@{Red-\/Black tree}!eina\_rbtree\_iterator\_infix@{eina\_rbtree\_iterator\_infix}}
\index{eina\_rbtree\_iterator\_infix@{eina\_rbtree\_iterator\_infix}!Red-\/Black tree@{Red-\/Black tree}}
\doxysubsubsubsubsubsection{\texorpdfstring{eina\_rbtree\_iterator\_infix()}{eina\_rbtree\_iterator\_infix()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} \texorpdfstring{$\ast$}{*} eina\+\_\+rbtree\+\_\+iterator\+\_\+infix (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}}]{root }\end{DoxyParamCaption})}



Returns a new prefix iterator associated with a rbtree. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em root} & The root of rbtree. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new iterator.
\end{DoxyReturn}
This function returns a newly allocated iterator associated with {\ttfamily root}. It will iterate the tree using infix walk. If {\ttfamily root} is {\ttfamily NULL}, this function still returns a valid iterator that will always return false on \doxylink{group__Eina__Iterator__Group_gad870f9b1d5fb8892cb9623ad0e7f75b2}{eina\+\_\+iterator\+\_\+next()}, thus keeping API sane.

If the memory cannot be allocated, {\ttfamily NULL} is returned. Otherwise, a valid iterator is returned.

\begin{DoxyWarning}{Warning}
if the rbtree structure changes then the iterator becomes invalid! That is, if you add or remove nodes this iterator behavior is undefined and your program may crash! 
\end{DoxyWarning}
\Hypertarget{group__Eina__Rbtree__Group_ga6e32d1bf82fd3c2f169e523646f44983}\label{group__Eina__Rbtree__Group_ga6e32d1bf82fd3c2f169e523646f44983} 
\index{Red-\/Black tree@{Red-\/Black tree}!eina\_rbtree\_iterator\_postfix@{eina\_rbtree\_iterator\_postfix}}
\index{eina\_rbtree\_iterator\_postfix@{eina\_rbtree\_iterator\_postfix}!Red-\/Black tree@{Red-\/Black tree}}
\doxysubsubsubsubsubsection{\texorpdfstring{eina\_rbtree\_iterator\_postfix()}{eina\_rbtree\_iterator\_postfix()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} \texorpdfstring{$\ast$}{*} eina\+\_\+rbtree\+\_\+iterator\+\_\+postfix (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__Rbtree__Group_gafa6fe42bbf09c210d2ad96b6141bedb0}{Eina\+\_\+\+Rbtree}} \texorpdfstring{$\ast$}{*}}]{root }\end{DoxyParamCaption})}



Returns a new prefix iterator associated with a rbtree. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em root} & The root of rbtree. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new iterator.
\end{DoxyReturn}
This function returns a newly allocated iterator associated with {\ttfamily root}. It will iterate the tree using postfix walk. If {\ttfamily root} is {\ttfamily NULL}, this function still returns a valid iterator that will always return false on \doxylink{group__Eina__Iterator__Group_gad870f9b1d5fb8892cb9623ad0e7f75b2}{eina\+\_\+iterator\+\_\+next()}, thus keeping API sane.

If the memory cannot be allocated, {\ttfamily NULL} is returned. Otherwise, a valid iterator is returned.

\begin{DoxyWarning}{Warning}
if the rbtree structure changes then the iterator becomes invalid! That is, if you add or remove nodes this iterator behavior is undefined and your program may crash! 
\end{DoxyWarning}
