◆ fiftyoneDegreesIndicesPropertyProfileCreate()
| fiftyoneDegreesIndicesPropertyProfile* fiftyoneDegreesIndicesPropertyProfileCreate | ( | fiftyoneDegreesCollection * | profiles, |
| fiftyoneDegreesCollection * | profileOffsets, | ||
| fiftyoneDegreesPropertiesAvailable * | available, | ||
| fiftyoneDegreesCollection * | values, | ||
| fiftyoneDegreesException * | exception | ||
| ) |
Create an index for the profiles, available properties, and values provided such that given the index to a property and profile the index of the first value can be returned by calling fiftyoneDegreesIndicesPropertyProfileLookup.
- Parameters
-
- profiles - collection of variable sized profiles to be indexed
- profileOffsets - collection of fixed offsets to profiles to be indexed
- available - properties provided by the caller
- values - collection to be indexed
- exception - pointer to an exception data structure to be used if an exception occurs. See exceptions.h
- Returns
- pointer to the index memory structure
◆ fiftyoneDegreesIndicesPropertyProfileFree()
void fiftyoneDegreesIndicesPropertyProfileFree ( fiftyoneDegreesIndicesPropertyProfile * index ) Frees an index previously created by fiftyoneDegreesIndicesPropertyProfileCreate.
- Parameters
-
- index - to be freed
◆ fiftyoneDegreesIndicesPropertyProfileLookup()
uint32_t fiftyoneDegreesIndicesPropertyProfileLookup ( fiftyoneDegreesIndicesPropertyProfile * index, uint32_t profileId, uint32_t availablePropertyIndex ) For a given profile id and available property index returns the first value index, or null if a first index can not be determined from the index.
The indexes relate to the collections for profiles, properties, and values provided to the fiftyoneDegreesIndicesPropertyProfileCreate method when the index was created. The availablePropertyIndex is not the index of all possible properties, but the index of the ones the data set was created expecting to return.
- Parameters
-
- index - from fiftyoneDegreesIndicesPropertyProfileCreate to use
- profileId - the values need to relate to
- availablePropertyIndex - in the list of required properties
- Returns
- the index in the list of values for the profile for the first value associated with the property
