library/src/datastructures/BP-HashTable.cc
// attempts to get a path query from a keyed entry by performing a reverse lookup
// on the entry.
attempts to get a path query from a keyed entry by performing a reverse lookup
on the entry.
attempts to get a path query from a keyed entry by performing a reverse lookup on the entry .
char * BP_HashRegEntryToPathQuery(P_BP_HASH_TABLE_KEYED_ENTRY entry)
{
	if(!entry)
		return NULL;
	BP_HASH_TABLE_TRAVERSAL_PATH lookup_path = BP_HashRegEntryToPath(entry);
	if(!lookup_path)
		return NULL;
	char * path_query = BP_HashRegPathArrayToStringLookup((char **) lookup_path);
	if(!path_query)
	{
		BP_DestroyPointerArrayNullTerminated((void **) lookup_path);
		bpfree(lookup_path);
		return NULL;
	}
	BP_DestroyPointerArrayNullTerminated((void **) lookup_path);
	bpfree(lookup_path);
	return path_query;
}
char * BP_HashRegEntryToPathQuery ( P_BP_HASH_TABLE_KEYED_ENTRY entry ) { if ( ! entry ) return NULL ; BP_HASH_TABLE_TRAVERSAL_PATH lookup_path = BP_HashRegEntryToPath ( entry ) ; if ( ! lookup_path ) return NULL ; char * path_query = BP_HashRegPathArrayToStringLookup ( ( char * * ) lookup_path ) ; if ( ! path_query ) { BP_DestroyPointerArrayNullTerminated ( ( void * * ) lookup_path ) ; bpfree ( lookup_path ) ; return NULL ; } BP_DestroyPointerArrayNullTerminated ( ( void * * ) lookup_path ) ; bpfree ( lookup_path ) ; return path_query ; }
attempts to get a path query from a keyed entry by performing a reverse lookup
on the entry.
attempts to get a path query from a keyed entry by performing a reverse lookup on the entry .
// ensure we have an entry // attempt to lookup the path directly // ensure we could lookup our table // path query to return // ensure we have a path query // destroy the lookup path // return the path query