dmlfw (Daniyal Machine Learning Framework)
dmlfw_set_string.h
Go to the documentation of this file.
1#ifndef __DMLFW__SET__STRING__
2#define __DMLFW__SET__STRING__
75#include <dmlfw_types.h>
76struct __dmlfw_set_string;
77
84typedef struct __dmlfw_set_string dmlfw_set_string;
85
104
116
143void dmlfw_set_string_get(dmlfw_set_string *set, index_t i, char **string);
144
166
// end of group
188#endif /* __DMLFW__SET__STRING__ */
dmlfw_set_string * dmlfw_set_string_create_new(void)
Creates an empty unordered set of strings.
dimension_t dmlfw_set_string_get_size(dmlfw_set_string *set)
Retrieves the number of unique strings in the set.
void dmlfw_set_string_get(dmlfw_set_string *set, index_t i, char **string)
Retrieves a copy of the string at the given index.
struct __dmlfw_set_string dmlfw_set_string
Opaque structure representing an unordered set of unique strings.
Definition dmlfw_set_string.h:84
int dmlfw_set_string_add(dmlfw_set_string *set, char *string)
Adds a unique string to the set.
void dmlfw_set_string_destroy(dmlfw_set_string *set)
Destroys the string set, freeing all resources.
Fundamental scalar typedefs used across the framework.
uint32_t index_t
Represents an index within a data structure (uint32_t).
Definition dmlfw_types.h:32
uint32_t dimension_t
Represents the size or dimension of a data structure (uint32_t).
Definition dmlfw_types.h:26