MPLAB® Harmony Graphics Suite > Graphics Library > Aria Graphics Library > Files > libaria_array.h
MPLAB® Harmony Graphics Suite
libaria_array.h

Microchip Technology Inc.

File Name

libaria_array.h

Description

Module for Microchip Graphics Library - Aria User Interface Library 

This is an array implementation that is used internally by the Aria user interface library. All of the memory operations are handled by the memory interface that is provided by the active libaria context. Applications that wish to use this implementation must ensure that the appropriate libaria context is active when calling these functions.

Functions
 
Name 
Description 
 
Removes all values from a given array. Array capacity remains the same. 
 
Creates a duplicate of an existing array 
 
Initializes a new array. 
 
Removes all nodes from a given array and frees the memory owned by the array. Resets array capacity to zero. 
 
Finds the first index of a value in the array 
 
Removes all nodes from a given array and frees the memory owned by the array. Does not free array capacity. 
 
Returns the pointer to the entry at index idx 
 
Inserts a value into an array at a given index. All existing nodes from index are shifted right one place. 
 
Removes the last value from the array 
 
Removes the first value from the array. Shuffles all other nodes forward one index. 
 
Pushes a new value onto the back of the array 
 
Pushes a new value onto the front of the array. Shuffles all other nodes backward one index. 
 
Removes the first instance of a value from the array and shuffles all values left to fill the gap 
 
Removes a value from the array at an index 
 
Resizes the capacity of the array. If the array shrinks, any nodes beyond the new capacity will be discarded. 
Types
 
Name 
Description 
 
Array data structure definition 
MPLAB® Harmony Graphics Suite