#include "pdl.h"
Include dependency graph for pdl_rule.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | rule_s |
Structure keeps track of the state and the true/false braches. More... | |
Typedefs | |
typedef struct rule_s | rule_t |
Structure keeps track of the state and the true/false braches. More... | |
Enumerations | |
enum | rule_type_t { STATE, TRUE_BRANCH, FALSE_BRANCH } |
Which type is the current rule. More... | |
enum | recursion_t { NO_RECURSION = 0x00, RECURSION = 0x01, RECURSION_HANDLED = 0x02 } |
Tell something about recursion in rules. More... | |
enum | side_t { left_side, right_side } |
Given a rule, which side of the rule are we working on. More... | |
Functions | |
rule_t* | add_rule (record_t *state, record_t *true_branch, record_t *false_branch) |
void | free_rules (rule_t *rule) |
void | show_rules (const rule_t *rule) |
void | start_new_rules (void) |
const rule_t* | get_top_rule (void) |
void | allow_new_rules (BOOL allow) |
void | set_top_rule (const rule_t *rule) |
BOOL | check_rule_for_recursion (const rule_t *rule) |
void | reduce_rule (rule_t *rule) |
Definition in file pdl_rule.h.
|
Structure keeps track of the state and the true/false braches.
|
|
Tell something about recursion in rules.
Definition at line 62 of file pdl_rule.h. |
|
Which type is the current rule.
Definition at line 52 of file pdl_rule.h. |
|
Given a rule, which side of the rule are we working on.
Definition at line 72 of file pdl_rule.h. |
|
Add a new rule to the list of rules. This function acts as a wrapper function for _add_rule().
Definition at line 86 of file pdl_rule.c. |
|
Is it allowed to add new rules?
Definition at line 71 of file pdl_rule.c. Referenced by allow_rules().
|
|
Check the rule for occurances of recursion.
Definition at line 220 of file pdl_rule.c. Referenced by check_policies_for_recursion().
|
|
Free all resource associated with the rule.
Definition at line 637 of file pdl_rule.c. Referenced by add_policy(), and free_policies().
|
|
Get the top rule.
Definition at line 658 of file pdl_rule.c. |
|
Reduce a rule to its elementry form, i.e. all variables in the rule are substituted by their respective values.
Definition at line 558 of file pdl_rule.c. Referenced by reduce_policies().
|
|
Set the top rule to a new value.
Definition at line 670 of file pdl_rule.c. Referenced by reduce_policies().
|
|
Show a rule and its descendants.
Definition at line 615 of file pdl_rule.c. Referenced by show_policies().
|
|
Start a new list of rules. Definition at line 58 of file pdl_rule.c. |