File comp_wptt_canonicity.h
FileList > comp-wptt_canonicity > src > comp_wptt_canonicity.h
Go to the source code of this file
A module for compute wptt_canonicity. More...
#include "computation_defs.h"#include "stdbool.h"#include "stdlib.h"#include "string.h"#include "notation_wptt.h"#include "storage_defs.h"
Classes
| Type | Name |
|---|---|
| struct | comp_wptt_canonicity_config_t The type definition for configuring the wptt_canonicity computation. |
| struct | comp_wptt_canonicity_result_t The type definition for configuring the wptt_canonicity computation. |
Public Types
| Type | Name |
|---|---|
| enum | comp_wptt_canonicity_canon_e Type defining the order direction of a node in a wptt. |
| typedef enum comp_wptt_canonicity_canon_e | comp_wptt_canonicity_canon_e Type defining the order direction of a node in a wptt. |
| enum | comp_wptt_cononicity_positivity_e Type defining the order direction of a node in a wptt. |
| typedef enum comp_wptt_cononicity_positivity_e | comp_wptt_cononicity_positivity_e Type defining the order direction of a node in a wptt. |
Public Functions
| Type | Name |
|---|---|
| uint8_t | comp_wptt_canonicity_compute () The public compute function. Calling this executes the computation on the configured data. |
| uint8_t | comp_wptt_canonicity_config (comp_wptt_canonicity_config_t * config_arg) The public configuration function. |
| const comp_wptt_canonicity_result_t * | comp_wptt_canonicity_result () The public result function. Calling this retrieves the result of the computation on the configured data. |
Macros
| Type | Name |
|---|---|
| define | COMP_WPTT_CANON_COMPUTE_ALREADY_COMPUTED (0x1u << 2u)Failed to configure the module due to config previously executed against. |
| define | COMP_WPTT_CANON_COMPUTE_CFG_ERROR (0x1u << 1u)Failed to configure the module due to null config. |
| define | COMP_WPTT_CANON_COMPUTE_STACK_ERROR (0x1u << 4u)Failed to configure the module due to error in the vertex stack. |
| define | COMP_WPTT_CANON_COMPUTE_VERTCOMP_ERROR (0x1u << 3u)Failed to configure the module due to error in the vertex computation. |
| define | COMP_WPTT_CANON_CONFIG_IS_NULL (0x1u << 2u)Failed to configure the module due to null config. |
| define | COMP_WPTT_CANON_CONFIG_PARAM (0x1u << 1u)Failed to configure the module due to issue in rootstock. |
| define | COMP_WPTT_CANON_CONFIG_POS_ERROR (0x1u << 3u)Failed to configure the module due to uninit positivity. |
| define | COMP_WPTT_CANON_CONFIG_TREE_ERROR (0x1u << 4u)Failed to configure the module due to tree as null. |
Detailed Description
Author:
author
Public Types Documentation
enum comp_wptt_canonicity_canon_e
Type defining the order direction of a node in a wptt.
enum comp_wptt_canonicity_canon_e {
COMP_WPTT_CANON_CAN_UNINIT,
COMP_WPTT_CANON_IS_CANONICAL,
COMP_WPTT_CANON_IS_NONCANONICAL
};
typedef comp_wptt_canonicity_canon_e
Type defining the order direction of a node in a wptt.
typedef enum comp_wptt_canonicity_canon_e comp_wptt_canonicity_canon_e;
enum comp_wptt_cononicity_positivity_e
Type defining the order direction of a node in a wptt.
enum comp_wptt_cononicity_positivity_e {
COMP_WPTT_CANON_POS_UNINIT,
COMP_WPTT_CANON_POS_POS,
COMP_WPTT_CANON_POS_NEG
};
typedef comp_wptt_cononicity_positivity_e
Type defining the order direction of a node in a wptt.
typedef enum comp_wptt_cononicity_positivity_e comp_wptt_cononicity_positivity_e;
Public Functions Documentation
function comp_wptt_canonicity_compute
The public compute function. Calling this executes the computation on the configured data.
uint8_t comp_wptt_canonicity_compute ()
Returns:
uint8_t Generation status info.
function comp_wptt_canonicity_config
The public configuration function.
uint8_t comp_wptt_canonicity_config (
comp_wptt_canonicity_config_t * config_arg
)
Parameters:
config_argThe config to set.
function comp_wptt_canonicity_result
The public result function. Calling this retrieves the result of the computation on the configured data.
const comp_wptt_canonicity_result_t * comp_wptt_canonicity_result ()
Returns:
uint8_t Generation status info.
Macro Definition Documentation
define COMP_WPTT_CANON_COMPUTE_ALREADY_COMPUTED
Failed to configure the module due to config previously executed against.
#define COMP_WPTT_CANON_COMPUTE_ALREADY_COMPUTED `(0x1u << 2u)`
define COMP_WPTT_CANON_COMPUTE_CFG_ERROR
Failed to configure the module due to null config.
#define COMP_WPTT_CANON_COMPUTE_CFG_ERROR `(0x1u << 1u)`
define COMP_WPTT_CANON_COMPUTE_STACK_ERROR
Failed to configure the module due to error in the vertex stack.
#define COMP_WPTT_CANON_COMPUTE_STACK_ERROR `(0x1u << 4u)`
define COMP_WPTT_CANON_COMPUTE_VERTCOMP_ERROR
Failed to configure the module due to error in the vertex computation.
#define COMP_WPTT_CANON_COMPUTE_VERTCOMP_ERROR `(0x1u << 3u)`
define COMP_WPTT_CANON_CONFIG_IS_NULL
Failed to configure the module due to null config.
#define COMP_WPTT_CANON_CONFIG_IS_NULL `(0x1u << 2u)`
define COMP_WPTT_CANON_CONFIG_PARAM
Failed to configure the module due to issue in rootstock.
#define COMP_WPTT_CANON_CONFIG_PARAM `(0x1u << 1u)`
define COMP_WPTT_CANON_CONFIG_POS_ERROR
Failed to configure the module due to uninit positivity.
#define COMP_WPTT_CANON_CONFIG_POS_ERROR `(0x1u << 3u)`
define COMP_WPTT_CANON_CONFIG_TREE_ERROR
Failed to configure the module due to tree as null.
#define COMP_WPTT_CANON_CONFIG_TREE_ERROR `(0x1u << 4u)`
The documentation for this class was generated from the following file source/comp-wptt_canonicity/src/comp_wptt_canonicity.h