library/src/datastructures/BP-HashTable.cc
BP_ERROR_T ht_entry_is_event_type(P_BP_HASH_TABLE_KEYED_ENTRY entry)
{

	// ensure we have an entry pointer
	if(!entry)
		return ERR_FAILURE;

	// switch on the entry type
	switch(entry->type)
	{

		// run event type checks
		case BP_HASH_TABLE_KEYED_ENTRY_TYPE_EVENT_UNPROCESSED:
		case BP_HASH_TABLE_KEYED_ENTRY_TYPE_EVENT_PROCESSED:
			return ERR_SUCCESS;
			break;
		default:
			break;
	}

	// return indicating failure
	return ERR_FAILURE;

}
// Checks if an entry is an event type.
Checks if an entry is an event type.
Checks if an entry is an event type .
BP_ERROR_T ht_entry_is_event_type(P_BP_HASH_TABLE_KEYED_ENTRY entry)
{
	if(!entry)
		return ERR_FAILURE;
	switch(entry->type)
	{
		case BP_HASH_TABLE_KEYED_ENTRY_TYPE_EVENT_UNPROCESSED:
		case BP_HASH_TABLE_KEYED_ENTRY_TYPE_EVENT_PROCESSED:
			return ERR_SUCCESS;
			break;
		default:
			break;
	}
	return ERR_FAILURE;
}
BP_ERROR_T ht_entry_is_event_type ( P_BP_HASH_TABLE_KEYED_ENTRY entry ) { if ( ! entry ) return ERR_FAILURE ; switch ( entry -> type ) { case BP_HASH_TABLE_KEYED_ENTRY_TYPE_EVENT_UNPROCESSED : case BP_HASH_TABLE_KEYED_ENTRY_TYPE_EVENT_PROCESSED : return ERR_SUCCESS ; break ; default : break ; } return ERR_FAILURE ; }
Checks if an entry is an event type.
Checks if an entry is an event type .
// ensure we have an entry pointer // switch on the entry type // run event type checks // return indicating failure