69 #include <sys/types.h> 70 #endif // _RNR_ASSOC_H 86 #define AMAP_NAME Void 91 #define _AMAP_NAME AMAP_NAME 101 #define AMAP_XTYPE void * 104 #define AMAP_YTYPE void * 106 #define _AMAP_XTYPE AMAP_XTYPE 107 #define _AMAP_YTYPE AMAP_YTYPE
114 #define _CONCAT_(x, y) x ## y 115 #define _CONCAT(x, y) _CONCAT_(x, y)
120 #undef _AMAP_DEFPREFACE 121 #define _AMAP_DEFPREFACE _CONCAT(AssocMap, _AMAP_NAME) 127 #define _AMAP_DEF(name) _CONCAT(_AMAP_DEFPREFACE, name) 196 #endif // _RNR_ASSOC_H 251 #endif // _AMAP_DERIVED 275 #endif // _RNR_ASSOC_H 334 #endif // _AMAP_DERIVED const char * NvpVal2Name(Nvp_T tbl[], size_t nTblEntries, int iVal)
Get the name associated with the value.
AssocMapVoidPoint_T * m_pMapDft
default x, y point
#define _AMAP_XTYPE
assoc. map x data type
size_t m_tblSize
number of entries in table
const char * m_sName
null-terminated string name
void * AssocMapVoidXtoY(AssocMapVoidMapper_T *pMapper, void *px)
Get the y value associated with the given x value.
AssocMapVoidPoint_T * m_tblAssocMap
associative map table
int(* AssocMapVoidCmp_T)(void *t1, void *t2)
base associative map comparator function type
#define C_DECLS_BEGIN
C declaration block begin in C.
int m_iVal
associated integer value
RoadNarrows Robotics common configuration file.
void * y
with this y value (and vice versa).
#define C_DECLS_END
C declaration block end in C.
void * x
the x value associates
#define _AMAP_YTYPE
assoc. map y data type
void * AssocMapVoidYtoX(AssocMapVoidMapper_T *pMapper, void *py)
Get the x value associated with the given y value.
AssocMapVoidCmp_T m_opYCmp
return 0 if y1 == y2
AssocMapVoidCmp_T m_opXCmp
return 0 if x1 == x2
#define _AMAP_DEF(name)
AssocMap (base or derived) definition name.
int NvpName2Val(Nvp_T tbl[], size_t nTblEntries, const char *sName)
Get the value associated with the name.