C Configuration Space and Tuning Library (CCS)
Loading...
Searching...
No Matches
binding.h
Go to the documentation of this file.
1#ifndef _CCS_BINDING_H
2#define _CCS_BINDING_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
27extern ccs_result_t
29
44extern ccs_result_t
46 ccs_binding_t binding,
47 size_t index,
48 ccs_datum_t *value_ret);
49
70extern ccs_result_t
72 ccs_binding_t binding,
73 size_t num_values,
74 ccs_datum_t *values,
75 size_t *num_values_ret);
76
94extern ccs_result_t
96 ccs_binding_t binding,
97 const char *name,
98 ccs_bool_t *found_ret,
99 ccs_datum_t *value_ret);
100
117extern ccs_result_t
119 ccs_binding_t binding,
120 ccs_parameter_t parameter,
121 ccs_bool_t *found_ret,
122 ccs_datum_t *value_ret);
123
137extern ccs_result_t
139
157extern ccs_result_t
159 ccs_binding_t binding,
160 ccs_binding_t other_binding,
161 int *cmp_ret);
162
163#ifdef __cplusplus
164}
165#endif
166
167#endif //_CCS_BINDING_H
int32_t ccs_bool_t
A CCS boolean type.
Definition base.h:37
struct _ccs_binding_s * ccs_binding_t
An opaque type defining a CCS binding.
Definition base.h:119
struct _ccs_parameter_s * ccs_parameter_t
An opaque type defining a CCS parameter.
Definition base.h:95
struct _ccs_context_s * ccs_context_t
An opaque type defining a CCS context.
Definition base.h:103
uint32_t ccs_hash_t
A CCS hashing value type.
Definition base.h:41
enum ccs_result_e ccs_result_t
A commodity type to represent CCS errors and returned by most functions.
Definition base.h:247
ccs_result_t ccs_binding_get_value_by_parameter(ccs_binding_t binding, ccs_parameter_t parameter, ccs_bool_t *found_ret, ccs_datum_t *value_ret)
Get the value of the parameter with the given handle.
ccs_result_t ccs_binding_get_value(ccs_binding_t binding, size_t index, ccs_datum_t *value_ret)
Get the value of the parameter at the given index.
ccs_result_t ccs_binding_get_values(ccs_binding_t binding, size_t num_values, ccs_datum_t *values, size_t *num_values_ret)
Get all the values in the binding.
ccs_result_t ccs_binding_cmp(ccs_binding_t binding, ccs_binding_t other_binding, int *cmp_ret)
Define a strict ordering of binding instances.
ccs_result_t ccs_binding_hash(ccs_binding_t binding, ccs_hash_t *hash_ret)
Compute a hash value for the binding by hashing together the context reference, the number of values,...
ccs_result_t ccs_binding_get_context(ccs_binding_t binding, ccs_context_t *context_ret)
Get the context of a binding.
ccs_result_t ccs_binding_get_value_by_name(ccs_binding_t binding, const char *name, ccs_bool_t *found_ret, ccs_datum_t *value_ret)
Get the value of the parameter with the given name.
A Structure containing a CCS datum.
Definition base.h:494