\doxysection{comps\+\_\+objlist.\+h File Reference}
\hypertarget{comps__objlist_8h}{}\label{comps__objlist_8h}\index{comps\_objlist.h@{comps\_objlist.h}}


A Documented file. Details.  


{\ttfamily \#include "{}comps\+\_\+obj.\+h"{}}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include $<$stdlib.\+h$>$}\newline
\doxysubsubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{structCOMPS__ObjListIt}{COMPS\+\_\+\+Obj\+List\+It}}
\item 
struct \mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}}
\end{DoxyCompactItemize}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{comps__objlist_8h_a382398ac8eab81709bd9ec71b129c3a5}{comps\+\_\+objlist\+\_\+clear}} (\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}objlist)
\item 
int \mbox{\hyperlink{comps__objlist_8h_aee4c5ae2f1eeececa8a1c6b0ff594466}{comps\+\_\+objlist\+\_\+walk}} (\mbox{\hyperlink{structCOMPS__ObjListIt}{COMPS\+\_\+\+Obj\+List\+It}} \texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*}walker, \mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*}result)
\item 
int \mbox{\hyperlink{comps__objlist_8h_aa62c32dee6a7ff577704f4c156a487b0}{comps\+\_\+objlist\+\_\+walk\+\_\+r}} (\mbox{\hyperlink{structCOMPS__ObjListIt}{COMPS\+\_\+\+Obj\+List\+It}} \texorpdfstring{$\ast$}{*}walker\+\_\+start, \mbox{\hyperlink{structCOMPS__ObjListIt}{COMPS\+\_\+\+Obj\+List\+It}} \texorpdfstring{$\ast$}{*}mantinel, \mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*}result)
\item 
int \mbox{\hyperlink{comps__objlist_8h_a14013f4ea08b6d07769f861204dd566e}{comps\+\_\+objlist\+\_\+append\+\_\+x}} (\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}objlist, \mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*}obj)
\item 
int \mbox{\hyperlink{comps__objlist_8h_a509521d7a925c74cb47a12f7a5f77526}{comps\+\_\+objlist\+\_\+append}} (\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}objlist, \mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*}obj)
\item 
\mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{comps__objlist_8h_ad2ce5bc8327653ae386fd9509d3969a4}{comps\+\_\+objlist\+\_\+get}} (\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}objlist, unsigned int atpos)
\item 
int \mbox{\hyperlink{comps__objlist_8h_aa5936b936b1893243491693426e2e1c9}{comps\+\_\+objlist\+\_\+set}} (\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}objlist, unsigned int atpos, \mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*}obj)
\item 
\mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{comps__objlist_8h_a67b42a04e4a3172bdacfaa065297d2a6}{comps\+\_\+objlist\+\_\+get\+\_\+x}} (\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}objlist, unsigned int atpos)
\item 
int \mbox{\hyperlink{comps__objlist_8h_a4168ea84a777349bafcc18a6eca0a4eb}{comps\+\_\+objlist\+\_\+insert\+\_\+at}} (\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}objlist, unsigned int pos, \mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*}obj)
\item 
int \mbox{\hyperlink{comps__objlist_8h_a4d83af123dbf1ec7dc2dcde050493a87}{comps\+\_\+objlist\+\_\+remove\+\_\+at}} (\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}objlist, unsigned int atpos)
\item 
int \mbox{\hyperlink{comps__objlist_8h_abd9452de9c54aa642cfc7e6b0174adea}{comps\+\_\+objlist\+\_\+remove}} (\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}objlist, \mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*}obj)
\item 
\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{comps__objlist_8h_a6db6778587651113e0dfe9fb4cacc9f5}{comps\+\_\+objlist\+\_\+sublist\+\_\+it}} (\mbox{\hyperlink{structCOMPS__ObjListIt}{COMPS\+\_\+\+Obj\+List\+It}} \texorpdfstring{$\ast$}{*}startit, \mbox{\hyperlink{structCOMPS__ObjListIt}{COMPS\+\_\+\+Obj\+List\+It}} \texorpdfstring{$\ast$}{*}end)
\item 
\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{comps__objlist_8h_a3c461c8aa9402ea5721729c03e9b336e}{comps\+\_\+objlist\+\_\+filter}} (\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}list, char(\texorpdfstring{$\ast$}{*}filter\+\_\+func)(\mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*}))
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
A Documented file. Details. 



\label{doc-func-members}
\Hypertarget{comps__objlist_8h_doc-func-members}
\doxysubsection{Function Documentation}
\Hypertarget{comps__objlist_8h_a509521d7a925c74cb47a12f7a5f77526}\index{comps\_objlist.h@{comps\_objlist.h}!comps\_objlist\_append@{comps\_objlist\_append}}
\index{comps\_objlist\_append@{comps\_objlist\_append}!comps\_objlist.h@{comps\_objlist.h}}
\doxysubsubsection{\texorpdfstring{comps\_objlist\_append()}{comps\_objlist\_append()}}
{\footnotesize\ttfamily \label{comps__objlist_8h_a509521d7a925c74cb47a12f7a5f77526} 
int comps\+\_\+objlist\+\_\+append (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}}]{objlist}{, }\item[{\mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*}}]{obj}{}\end{DoxyParamCaption})}

Append new object to list

This function increment object\textquotesingle{}s reference counter 
\begin{DoxyParams}{Parameters}
{\em objlist} & \doxylink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List} instance \\
\hline
{\em obj} & appended object \\
\hline
\end{DoxyParams}
\Hypertarget{comps__objlist_8h_a14013f4ea08b6d07769f861204dd566e}\index{comps\_objlist.h@{comps\_objlist.h}!comps\_objlist\_append\_x@{comps\_objlist\_append\_x}}
\index{comps\_objlist\_append\_x@{comps\_objlist\_append\_x}!comps\_objlist.h@{comps\_objlist.h}}
\doxysubsubsection{\texorpdfstring{comps\_objlist\_append\_x()}{comps\_objlist\_append\_x()}}
{\footnotesize\ttfamily \label{comps__objlist_8h_a14013f4ea08b6d07769f861204dd566e} 
int comps\+\_\+objlist\+\_\+append\+\_\+x (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}}]{objlist}{, }\item[{\mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*}}]{obj}{}\end{DoxyParamCaption})}

Append new object to list

Does not incremented object\textquotesingle{}s reference counter 
\begin{DoxyParams}{Parameters}
{\em objlist} & \doxylink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List} instance \\
\hline
{\em obj} & appended object \\
\hline
\end{DoxyParams}
\Hypertarget{comps__objlist_8h_a382398ac8eab81709bd9ec71b129c3a5}\index{comps\_objlist.h@{comps\_objlist.h}!comps\_objlist\_clear@{comps\_objlist\_clear}}
\index{comps\_objlist\_clear@{comps\_objlist\_clear}!comps\_objlist.h@{comps\_objlist.h}}
\doxysubsubsection{\texorpdfstring{comps\_objlist\_clear()}{comps\_objlist\_clear()}}
{\footnotesize\ttfamily \label{comps__objlist_8h_a382398ac8eab81709bd9ec71b129c3a5} 
void comps\+\_\+objlist\+\_\+clear (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}}]{objlist}{}\end{DoxyParamCaption})}

Clear the list Remove all items from list and call destructor on each one 
\begin{DoxyParams}{Parameters}
{\em objlist} & \doxylink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List} object \\
\hline
\end{DoxyParams}
\Hypertarget{comps__objlist_8h_a3c461c8aa9402ea5721729c03e9b336e}\index{comps\_objlist.h@{comps\_objlist.h}!comps\_objlist\_filter@{comps\_objlist\_filter}}
\index{comps\_objlist\_filter@{comps\_objlist\_filter}!comps\_objlist.h@{comps\_objlist.h}}
\doxysubsubsection{\texorpdfstring{comps\_objlist\_filter()}{comps\_objlist\_filter()}}
{\footnotesize\ttfamily \label{comps__objlist_8h_a3c461c8aa9402ea5721729c03e9b336e} 
\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*} comps\+\_\+objlist\+\_\+filter (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}}]{list}{, }\item[{char(\texorpdfstring{$\ast$}{*}}]{filter\+\_\+func~}{)(\mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*})}\end{DoxyParamCaption})}

Returns new sublist from original list

Returns new sublist from original list, with items passed through filter


\begin{DoxyParams}{Parameters}
{\em list} & \doxylink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List} instance \\
\hline
{\em filter\+\_\+func} & filter callback \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
new sublist 
\end{DoxyReturn}
\Hypertarget{comps__objlist_8h_ad2ce5bc8327653ae386fd9509d3969a4}\index{comps\_objlist.h@{comps\_objlist.h}!comps\_objlist\_get@{comps\_objlist\_get}}
\index{comps\_objlist\_get@{comps\_objlist\_get}!comps\_objlist.h@{comps\_objlist.h}}
\doxysubsubsection{\texorpdfstring{comps\_objlist\_get()}{comps\_objlist\_get()}}
{\footnotesize\ttfamily \label{comps__objlist_8h_ad2ce5bc8327653ae386fd9509d3969a4} 
\mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*} comps\+\_\+objlist\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}}]{objlist}{, }\item[{unsigned int}]{atpos}{}\end{DoxyParamCaption})}

Return item\textquotesingle{}s object at specified position

Returned object has incremented reference counter 
\begin{DoxyParams}{Parameters}
{\em objlist} & \doxylink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List} object \\
\hline
{\em atpos} & item\textquotesingle{}s position \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
if list has enough items, return item\textquotesingle{}s object, otherwise NULL 
\end{DoxyReturn}
\Hypertarget{comps__objlist_8h_a67b42a04e4a3172bdacfaa065297d2a6}\index{comps\_objlist.h@{comps\_objlist.h}!comps\_objlist\_get\_x@{comps\_objlist\_get\_x}}
\index{comps\_objlist\_get\_x@{comps\_objlist\_get\_x}!comps\_objlist.h@{comps\_objlist.h}}
\doxysubsubsection{\texorpdfstring{comps\_objlist\_get\_x()}{comps\_objlist\_get\_x()}}
{\footnotesize\ttfamily \label{comps__objlist_8h_a67b42a04e4a3172bdacfaa065297d2a6} 
\mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*} comps\+\_\+objlist\+\_\+get\+\_\+x (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}}]{objlist}{, }\item[{unsigned int}]{atpos}{}\end{DoxyParamCaption})}

Return item\textquotesingle{}s object at specified position

Returned object HASN\textquotesingle{}T incremented reference count 
\begin{DoxyParams}{Parameters}
{\em objlist} & \doxylink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List} object \\
\hline
{\em atpos} & item\textquotesingle{}s position \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
if list has enough items, return item\textquotesingle{}s object, otherwise NULL 
\end{DoxyReturn}
\Hypertarget{comps__objlist_8h_a4168ea84a777349bafcc18a6eca0a4eb}\index{comps\_objlist.h@{comps\_objlist.h}!comps\_objlist\_insert\_at@{comps\_objlist\_insert\_at}}
\index{comps\_objlist\_insert\_at@{comps\_objlist\_insert\_at}!comps\_objlist.h@{comps\_objlist.h}}
\doxysubsubsection{\texorpdfstring{comps\_objlist\_insert\_at()}{comps\_objlist\_insert\_at()}}
{\footnotesize\ttfamily \label{comps__objlist_8h_a4168ea84a777349bafcc18a6eca0a4eb} 
int comps\+\_\+objlist\+\_\+insert\+\_\+at (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}}]{objlist}{, }\item[{unsigned int}]{pos}{, }\item[{\mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*}}]{obj}{}\end{DoxyParamCaption})}

Insert item at specified position

If list doesn\textquotesingle{}t have enough items (specified position is greater then items count, even if position is greater only by 1) fails and returns 0


\begin{DoxyParams}{Parameters}
{\em objlist} & \doxylink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List} object \\
\hline
{\em pos} & item\textquotesingle{}s position \\
\hline
{\em obj} & inserted object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
non-\/zero if success, zero otherwise 
\end{DoxyReturn}
\Hypertarget{comps__objlist_8h_abd9452de9c54aa642cfc7e6b0174adea}\index{comps\_objlist.h@{comps\_objlist.h}!comps\_objlist\_remove@{comps\_objlist\_remove}}
\index{comps\_objlist\_remove@{comps\_objlist\_remove}!comps\_objlist.h@{comps\_objlist.h}}
\doxysubsubsection{\texorpdfstring{comps\_objlist\_remove()}{comps\_objlist\_remove()}}
{\footnotesize\ttfamily \label{comps__objlist_8h_abd9452de9c54aa642cfc7e6b0174adea} 
int comps\+\_\+objlist\+\_\+remove (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}}]{objlist}{, }\item[{\mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*}}]{obj}{}\end{DoxyParamCaption})}

Remove item with specified object from list

Remove first matching items with object pointer eqaul specifed object pointer.


\begin{DoxyParams}{Parameters}
{\em objlist} & \doxylink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List} object \\
\hline
{\em obj} & removed object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
non-\/zero if success, zero otherwise 
\end{DoxyReturn}
\Hypertarget{comps__objlist_8h_a4d83af123dbf1ec7dc2dcde050493a87}\index{comps\_objlist.h@{comps\_objlist.h}!comps\_objlist\_remove\_at@{comps\_objlist\_remove\_at}}
\index{comps\_objlist\_remove\_at@{comps\_objlist\_remove\_at}!comps\_objlist.h@{comps\_objlist.h}}
\doxysubsubsection{\texorpdfstring{comps\_objlist\_remove\_at()}{comps\_objlist\_remove\_at()}}
{\footnotesize\ttfamily \label{comps__objlist_8h_a4d83af123dbf1ec7dc2dcde050493a87} 
int comps\+\_\+objlist\+\_\+remove\+\_\+at (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}}]{objlist}{, }\item[{unsigned int}]{atpos}{}\end{DoxyParamCaption})}

Remove item on specified position from list

If list doesn\textquotesingle{}t have enough items fails. On succes decrements item object\textquotesingle{}s reference counter and remove item from list


\begin{DoxyParams}{Parameters}
{\em objlist} & \doxylink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List} object \\
\hline
{\em atpos} & item\textquotesingle{}s position \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
non-\/zero if success, zero otherwise 
\end{DoxyReturn}
\Hypertarget{comps__objlist_8h_aa5936b936b1893243491693426e2e1c9}\index{comps\_objlist.h@{comps\_objlist.h}!comps\_objlist\_set@{comps\_objlist\_set}}
\index{comps\_objlist\_set@{comps\_objlist\_set}!comps\_objlist.h@{comps\_objlist.h}}
\doxysubsubsection{\texorpdfstring{comps\_objlist\_set()}{comps\_objlist\_set()}}
{\footnotesize\ttfamily \label{comps__objlist_8h_aa5936b936b1893243491693426e2e1c9} 
int comps\+\_\+objlist\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*}}]{objlist}{, }\item[{unsigned int}]{atpos}{, }\item[{\mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*}}]{obj}{}\end{DoxyParamCaption})}

Set item\textquotesingle{}s object at specified positoin

set new item to specified position, increment new item\textquotesingle{}s reference counter and destroy old item (decrement reference counter). If list hasn\textquotesingle{}t enough items, returns 0.


\begin{DoxyParams}{Parameters}
{\em objlist} & \doxylink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List} object \\
\hline
{\em atpos} & item\textquotesingle{}s position @parma obj new object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
non-\/zero on success, otherwise returns zero 
\end{DoxyReturn}
\Hypertarget{comps__objlist_8h_a6db6778587651113e0dfe9fb4cacc9f5}\index{comps\_objlist.h@{comps\_objlist.h}!comps\_objlist\_sublist\_it@{comps\_objlist\_sublist\_it}}
\index{comps\_objlist\_sublist\_it@{comps\_objlist\_sublist\_it}!comps\_objlist.h@{comps\_objlist.h}}
\doxysubsubsection{\texorpdfstring{comps\_objlist\_sublist\_it()}{comps\_objlist\_sublist\_it()}}
{\footnotesize\ttfamily \label{comps__objlist_8h_a6db6778587651113e0dfe9fb4cacc9f5} 
\mbox{\hyperlink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List}} \texorpdfstring{$\ast$}{*} comps\+\_\+objlist\+\_\+sublist\+\_\+it (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structCOMPS__ObjListIt}{COMPS\+\_\+\+Obj\+List\+It}} \texorpdfstring{$\ast$}{*}}]{startit}{, }\item[{\mbox{\hyperlink{structCOMPS__ObjListIt}{COMPS\+\_\+\+Obj\+List\+It}} \texorpdfstring{$\ast$}{*}}]{end}{}\end{DoxyParamCaption})}

Returns new sublist from original list

Returns new sublist from original list, starting item startit and ending item end


\begin{DoxyParams}{Parameters}
{\em startit} & start item iterator \\
\hline
{\em end} & end item iterator \\
\hline
{\em list} & \doxylink{structCOMPS__ObjList}{COMPS\+\_\+\+Obj\+List} instance \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
new sublist 
\end{DoxyReturn}
\Hypertarget{comps__objlist_8h_aee4c5ae2f1eeececa8a1c6b0ff594466}\index{comps\_objlist.h@{comps\_objlist.h}!comps\_objlist\_walk@{comps\_objlist\_walk}}
\index{comps\_objlist\_walk@{comps\_objlist\_walk}!comps\_objlist.h@{comps\_objlist.h}}
\doxysubsubsection{\texorpdfstring{comps\_objlist\_walk()}{comps\_objlist\_walk()}}
{\footnotesize\ttfamily \label{comps__objlist_8h_aee4c5ae2f1eeececa8a1c6b0ff594466} 
int comps\+\_\+objlist\+\_\+walk (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structCOMPS__ObjListIt}{COMPS\+\_\+\+Obj\+List\+It}} \texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*}}]{walker}{, }\item[{\mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*}}]{result}{}\end{DoxyParamCaption})}

Traverse the list

Start traversing list from walker position to end of list. Each call store actual item object to result parameter and move walker iterator forward


\begin{DoxyParams}{Parameters}
{\em walker} & Iterator position in list \\
\hline
{\em result} & object of actual item \\
\hline
{\em return} & non-\/zero if walker hasn\textquotesingle{}t reached end, otherwise zero \\
\hline
\end{DoxyParams}
\Hypertarget{comps__objlist_8h_aa62c32dee6a7ff577704f4c156a487b0}\index{comps\_objlist.h@{comps\_objlist.h}!comps\_objlist\_walk\_r@{comps\_objlist\_walk\_r}}
\index{comps\_objlist\_walk\_r@{comps\_objlist\_walk\_r}!comps\_objlist.h@{comps\_objlist.h}}
\doxysubsubsection{\texorpdfstring{comps\_objlist\_walk\_r()}{comps\_objlist\_walk\_r()}}
{\footnotesize\ttfamily \label{comps__objlist_8h_aa62c32dee6a7ff577704f4c156a487b0} 
int comps\+\_\+objlist\+\_\+walk\+\_\+r (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structCOMPS__ObjListIt}{COMPS\+\_\+\+Obj\+List\+It}} \texorpdfstring{$\ast$}{*}}]{walker\+\_\+start}{, }\item[{\mbox{\hyperlink{structCOMPS__ObjListIt}{COMPS\+\_\+\+Obj\+List\+It}} \texorpdfstring{$\ast$}{*}}]{mantinel}{, }\item[{\mbox{\hyperlink{structCOMPS__Object}{COMPS\+\_\+\+Object}} \texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*}}]{result}{}\end{DoxyParamCaption})}

Traverse the list with sentinel iterator

Same as comps\+\_\+objlist\+\_\+walk with additional sentinel iterator supplying end of list.


\begin{DoxyParams}{Parameters}
{\em walker} & Iterator position in list \\
\hline
{\em result} & object of actual item \\
\hline
{\em return} & non-\/zero if walker hasn\textquotesingle{}t reached end, otherwise zero \\
\hline
\end{DoxyParams}
