All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
le_safeRef.h
Go to the documentation of this file.
1 
189 #ifndef LEGATO_SAFEREF_INCLUDE_GUARD
190 #define LEGATO_SAFEREF_INCLUDE_GUARD
191 
192 //--------------------------------------------------------------------------------------------------
196 //--------------------------------------------------------------------------------------------------
197 typedef struct le_ref_Map* le_ref_MapRef_t;
198 
199 
200 //--------------------------------------------------------------------------------------------------
204 //--------------------------------------------------------------------------------------------------
205 typedef struct le_ref_Iter* le_ref_IterRef_t;
206 
207 
208 //--------------------------------------------------------------------------------------------------
214 //--------------------------------------------------------------------------------------------------
216 (
217  const char* name,
218 
219  size_t maxRefs
220 );
222 
223 
224 //--------------------------------------------------------------------------------------------------
231 //--------------------------------------------------------------------------------------------------
232 void* le_ref_CreateRef
233 (
234  le_ref_MapRef_t mapRef,
235  void* ptr
236 );
237 
238 
239 //--------------------------------------------------------------------------------------------------
247 //--------------------------------------------------------------------------------------------------
248 void* le_ref_Lookup
249 (
250  le_ref_MapRef_t mapRef,
251  void* safeRef
252 );
253 
254 
255 //--------------------------------------------------------------------------------------------------
259 //--------------------------------------------------------------------------------------------------
260 void le_ref_DeleteRef
261 (
262  le_ref_MapRef_t mapRef,
263  void* safeRef
264 );
265 
266 
267 //--------------------------------------------------------------------------------------------------
277 //--------------------------------------------------------------------------------------------------
279 (
280  le_ref_MapRef_t mapRef
281 );
282 
283 
284 //--------------------------------------------------------------------------------------------------
293 //--------------------------------------------------------------------------------------------------
295 (
296  le_ref_IterRef_t iteratorRef
297 );
298 
299 
300 //--------------------------------------------------------------------------------------------------
309 //--------------------------------------------------------------------------------------------------
310 void const * le_ref_GetSafeRef
311 (
312  le_ref_IterRef_t iteratorRef
313 );
314 
315 
316 //--------------------------------------------------------------------------------------------------
325 //--------------------------------------------------------------------------------------------------
326 void const * le_ref_GetValue
327 (
328  le_ref_IterRef_t iteratorRef
329 );
330 
331 
332 #endif // LEGATO_SAFEREF_INCLUDE_GUARD
le_result_t
Definition: le_basics.h:34
struct le_ref_Iter * le_ref_IterRef_t
Definition: le_safeRef.h:205
struct le_ref_Map * le_ref_MapRef_t
Definition: le_safeRef.h:197
le_ref_MapRef_t le_ref_CreateMap(const char *name, size_t maxRefs)
le_ref_IterRef_t le_ref_GetIterator(le_ref_MapRef_t mapRef)
void le_ref_DeleteRef(le_ref_MapRef_t mapRef, void *safeRef)
void * le_ref_CreateRef(le_ref_MapRef_t mapRef, void *ptr)
le_result_t le_ref_NextNode(le_ref_IterRef_t iteratorRef)
void const * le_ref_GetSafeRef(le_ref_IterRef_t iteratorRef)
void * le_ref_Lookup(le_ref_MapRef_t mapRef, void *safeRef)
void const * le_ref_GetValue(le_ref_IterRef_t iteratorRef)