C Configuration Space and Tuning Library (CCS)
Loading...
Searching...
No Matches
tree_configuration.h
Go to the documentation of this file.
1#ifndef _CCS_TREE_CONFIGURATION_H
2#define _CCS_TREE_CONFIGURATION_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
39extern ccs_result_t
41 ccs_tree_space_t tree_space,
42 ccs_features_t features,
43 size_t position_size,
44 const size_t *position,
45 ccs_tree_configuration_t *configuration_ret);
46
59extern ccs_result_t
61 ccs_tree_configuration_t configuration,
62 ccs_tree_space_t *tree_space_ret);
63
77extern ccs_result_t
79 ccs_tree_configuration_t configuration,
80 ccs_features_t *features_ret);
81
102extern ccs_result_t
104 ccs_tree_configuration_t configuration,
105 size_t position_size,
106 size_t *position,
107 size_t *position_size_ret);
108
129extern ccs_result_t
131 ccs_tree_configuration_t configuration,
132 size_t num_values,
133 ccs_datum_t *values,
134 size_t *num_values_ret);
135
148extern ccs_result_t
150 ccs_tree_configuration_t configuration,
151 ccs_tree_t *node_ret);
152
166extern ccs_result_t
168 ccs_tree_configuration_t configuration,
169 ccs_hash_t *hash_ret);
170
187extern ccs_result_t
189 ccs_tree_configuration_t configuration,
190 ccs_tree_configuration_t other_configuration,
191 int *cmp_ret);
192
193#ifdef __cplusplus
194}
195#endif
196
197#endif //_CCS_TREE_CONFIGURATION_H
struct _ccs_tree_space_s * ccs_tree_space_t
An opaque type defining a CCS tree space.
Definition base.h:163
uint32_t ccs_hash_t
A CCS hashing value type.
Definition base.h:41
struct _ccs_tree_configuration_s * ccs_tree_configuration_t
An opaque type defining a CCS tree space configuration.
Definition base.h:167
struct _ccs_features_s * ccs_features_t
An opaque type defining a CCS features.
Definition base.h:135
struct _ccs_tree_s * ccs_tree_t
An opaque type defining a CCS tree.
Definition base.h:159
enum ccs_result_e ccs_result_t
A commodity type to represent CCS errors and returned by most functions.
Definition base.h:247
A Structure containing a CCS datum.
Definition base.h:494
ccs_result_t ccs_tree_configuration_get_position(ccs_tree_configuration_t configuration, size_t position_size, size_t *position, size_t *position_size_ret)
Get the position of the configuration.
ccs_result_t ccs_tree_configuration_get_tree_space(ccs_tree_configuration_t configuration, ccs_tree_space_t *tree_space_ret)
Get the tree space associated to the configuration.
ccs_result_t ccs_tree_configuration_get_features(ccs_tree_configuration_t configuration, ccs_features_t *features_ret)
Get the associated features.
ccs_result_t ccs_create_tree_configuration(ccs_tree_space_t tree_space, ccs_features_t features, size_t position_size, const size_t *position, ccs_tree_configuration_t *configuration_ret)
Create a new instance of a tree configuration on a given tree_space.
ccs_result_t ccs_tree_configuration_get_node(ccs_tree_configuration_t configuration, ccs_tree_t *node_ret)
Get the node pointed to by the configuration.
ccs_result_t ccs_tree_configuration_hash(ccs_tree_configuration_t configuration, ccs_hash_t *hash_ret)
Compute a hash value for the configuration by hashing together the tree space reference,...
ccs_result_t ccs_tree_configuration_cmp(ccs_tree_configuration_t configuration, ccs_tree_configuration_t other_configuration, int *cmp_ret)
Define a strict ordering of tree configuration instances.
ccs_result_t ccs_tree_configuration_get_values(ccs_tree_configuration_t configuration, size_t num_values, ccs_datum_t *values, size_t *num_values_ret)
Get the values along the path of the configuration.