Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
A datatype for storing a set of StringIntPairs. More...
#include <string_int_pair.h>
Public Member Functions | |
StringIntPairArray * | AllocateStringIntPairArray (const uint32 size) |
Allocate a StringIntPairArray of a given size. More... | |
void | FreeStringIntPairArray (StringIntPairArray *array_p) |
Free a StringIntPairArray and any memory associated from its keys where appropriate. More... | |
void | SortStringIntPairsByCountAscending (StringIntPairArray *pairs_p) |
Sort the entries of a StringIntPairArray into ascending order of their values. More... | |
void | SortStringIntPairsByCountDescending (StringIntPairArray *pairs_p) |
Sort the entries of a StringIntPairArray into descending order of their values. More... | |
Data Fields | |
StringIntPair * | sipa_values_p |
An array of StringIntPairs. More... | |
uint32 | sipa_size |
The number of StringIntPairs in the array. More... | |
A datatype for storing a set of StringIntPairs.
StringIntPairArray * AllocateStringIntPairArray | ( | const uint32 | size | ) |
Allocate a StringIntPairArray of a given size.
size | The number of entries in the StringIntPairArray. |
NULL
and all of its values set to 0. Upon failure NULL
is returned.void FreeStringIntPairArray | ( | StringIntPairArray * | array_p | ) |
Free a StringIntPairArray and any memory associated from its keys where appropriate.
array_p | The StringIntPairArray to free. |
void SortStringIntPairsByCountAscending | ( | StringIntPairArray * | pairs_p | ) |
Sort the entries of a StringIntPairArray into ascending order of their values.
pairs_p | The StringIntPairArray to sort. |
void SortStringIntPairsByCountDescending | ( | StringIntPairArray * | pairs_p | ) |
Sort the entries of a StringIntPairArray into descending order of their values.
pairs_p | The StringIntPairArray to sort. |
StringIntPair* sipa_values_p |
An array of StringIntPairs.
uint32 sipa_size |
The number of StringIntPairs in the array.