9 #ifndef NEIGHBORLISTOPS_H_
10 #define NEIGHBORLISTOPS_H_
23 void groupList(NbrList* partialList,
int group);
24 void groupTestList(NbrList* partialList,
int group, NbrList* full);
42 uint8 nbrListGetSize(NbrList* nbrListPtr);
52 Nbr* nbrListGetNbr(NbrList* nbrListPtr, uint8 idx);
64 void nbrListPrint(NbrList* nbrListPtr,
char* name);
89 void nbrListAddNbr(NbrList* nbrListPtr, Nbr* nbrPtr);
103 void nbrListRemoveNbr(NbrList* nbrListPtr, Nbr* nbrPtr);
113 void nbrListCopy(NbrList* nbrListDstPtr, NbrList* nbrListSrcPtr);
122 int16 nbrListAverageBearing(NbrList* nbrListPtr);
131 Nbr* nbrListGetFirst(NbrList* nbrListPtr);
140 Nbr* nbrListGetSecond(NbrList* nbrListPtr);
150 Nbr* nbrListGetNbrWithID(NbrList* nbrListPtr, uint8 ID);
160 Nbr* nbrListGetSmallestAngleDeviation2(NbrList* nbrListPtr, Nbr* nbrPtr);
170 Nbr* nbrListGetClosestNbrToBearing(NbrList* nbrListPtr, int16 bearing);
181 NbrList* nbrListUnion(NbrList* nbrListOutPtr, NbrList* nbrList1Ptr, NbrList* nbrList2Ptr);
193 NbrList* nbrListFindNbrsWithDataEqual(NbrList* nbrListOutPtr, NbrList* nbrListInPtr, NbrData* nbrDataPtr, uint8 val);
206 NbrList* nbrListFindNbrsWithDataEqual2(NbrList* nbrListOutPtr, NbrList* nbrListInPtr, NbrData* nbrDataPtr, uint8 val1, uint8 val2);
215 Nbr* nbrListGetNbrMinBearing(NbrList* nbrListInPtr);
225 NbrList* nbrListSortByBearing(NbrList* nbrListOutPtr, NbrList* nbrListInPtr);
238 NbrList* nbrListIncludeSectorInclusive(NbrList* nbrListOutPtr, NbrList* nbrListInPtr, int16 angleStart, int16 angleEnd);
251 NbrList* nbrListIncludeSectorExclusive(NbrList* nbrListOutPtr, NbrList* nbrListInPtr, int16 angleStart, int16 angleEnd);
261 NbrList* nbrListGetRobots(NbrList* nbrListOutPtr, NbrList* nbrListInPtr);
264 void nbrListMakeCloneExcept(NbrList* nbrListOutPtr, uint8 nbrID);