Mescal
|
Header file for objects filtering in the shell. More...
#include "shell_commands.h"
Go to the source code of this file.
Classes | |
struct | filters_info |
Macros | |
#define | FILTER_MAXCLASSES 64 |
Maximum number of classes for the filters. | |
Enumerations | |
enum | num_filter { FILTER_MINI , FILTER_SYNT , FILTER_IDEMS , FILTER_RNUM , FILTER_LNUM , FILTER_JNUM , FILTER_HNUM , FILTER_RMAXSIZE , FILTER_LMAXSIZE , FILTER_JMAXSIZE , FILTER_HMAXSIZE , FILTER_NUMSIZE } |
enum | bool_filter { FILTER_NOSIMC , FILTER_NOSMALLCOUNTER , FILTER_BOOLSIZE } |
Functions | |
uint | shell_extract_sizesynt (int i) |
Extracts the size of the syntactic monoid of an object. | |
uint | shell_extract_sizemini (int i) |
Extracts the size of the minimal automaton of an object. | |
uint | shell_extract_idemnum (int i) |
Extracts the number of idempotents in the syntactic monoid of an object. | |
uint | shell_extract_rnum (int i) |
Extarcts the number of R-classes in the syntactic monoid of an object. | |
uint | shell_extract_lnum (int i) |
Extarcts the number of L-classes in the syntactic monoid of an object. | |
uint | shell_extract_jnum (int i) |
Extarcts the number of J-classes in the syntactic monoid of an object. | |
uint | shell_extract_hnum (int i) |
Extarcts the number of H-classes in the syntactic monoid of an object. | |
uint | shell_extract_rmaxsize (int i) |
Extracts the maximal size of an R-class in the syntactic monoid of an object. | |
uint | shell_extract_lmaxsize (int i) |
Extracts the maximal size of an L-class in the syntactic monoid of an object. | |
uint | shell_extract_jmaxsize (int i) |
Extracts the maximal size of a J-class in the syntactic monoid of an object. | |
uint | shell_extract_hmaxsize (int i) |
Extracts the maximal size of an H-class in the syntactic monoid of an object. | |
int | shell_retrieve_filters (com_parameters *pars, filters_info *info) |
Retrieves the filters from the command parameters. | |
int | shell_filter_objects (com_parameters *pars, ob_type) |
Displays of all objects of a given type in memory. | |
int | object_compare (int, int) |
Default comparison function for objects. Sorts according to the variable name. | |
int | object_compare_numerical (int i1, int i2) |
Comparison function for objects. Sorts according to the numerical value given by the extractor function. | |
void | object_sort_array (int(*comp)(int, int)) |
Sorts the array of objects according to the comparison function passed as input. | |
int | shell_sort (com_parameters *pars) |
Sorts the objects array according to a comparison function given as input. | |
int | shell_filter_delete (com_parameters *pars, ob_type type) |
Deletes all object that do not satify the filters. | |
int | shell_delete (com_parameters *pars, const char *str) |
Deletes an object. | |
int | shell_delete_all (com_parameters *pars, const char *str) |
Deletes all objects in memory. | |
int | shell_recursive_init (char *varname, com_parameters *pars, const char *str) |
Initializes a recursive definition. | |
int | shell_reset (com_parameters *pars, const char *str) |
Deletes the state names in an NFA. | |
Variables | |
uint(* | num_extractors [FILTER_NUMSIZE])(int i) |
Array of pointers to functions that extract numerical values from objects. | |
bool(* | bool_extractors [FILTER_BOOLSIZE])(int i) |
Array of pointers to functions that extract boolean values from objects. | |
uint(* | extractor )(int) |
Pointer to the function that extracts a numerical value from an object for the object_compare_numerical function. | |
Header file for objects filtering in the shell.
enum bool_filter |
enum num_filter |
int object_compare | ( | int | i1, |
int | i2 ) |
Default comparison function for objects. Sorts according to the variable name.
i1 | The index of the first object. |
i2 | The index of the second object. |
int object_compare_numerical | ( | int | i1, |
int | i2 ) |
Comparison function for objects. Sorts according to the numerical value given by the extractor function.
void object_sort_array | ( | int(* | comp )(int, int) | ) |
Sorts the array of objects according to the comparison function passed as input.
comp | The comparison function. |
int shell_delete | ( | com_parameters * | pars, |
const char * | str ) |
Deletes an object.
pars | The parameters of the command. |
str | The string used to call the command. |
int shell_delete_all | ( | com_parameters * | pars, |
const char * | str ) |
Deletes all objects in memory.
pars | The parameters of the command. |
str | The string used to call the command. |
uint shell_extract_hmaxsize | ( | int | i | ) |
Extracts the maximal size of an H-class in the syntactic monoid of an object.
i | the index of the object. |
uint shell_extract_hnum | ( | int | i | ) |
Extarcts the number of H-classes in the syntactic monoid of an object.
i | the index of the object. |
uint shell_extract_idemnum | ( | int | i | ) |
Extracts the number of idempotents in the syntactic monoid of an object.
i | the index of the object. |
uint shell_extract_jmaxsize | ( | int | i | ) |
Extracts the maximal size of a J-class in the syntactic monoid of an object.
i | the index of the object. |
uint shell_extract_jnum | ( | int | i | ) |
Extarcts the number of J-classes in the syntactic monoid of an object.
i | the index of the object. |
uint shell_extract_lmaxsize | ( | int | i | ) |
Extracts the maximal size of an L-class in the syntactic monoid of an object.
i | the index of the object. |
uint shell_extract_lnum | ( | int | i | ) |
Extarcts the number of L-classes in the syntactic monoid of an object.
i | the index of the object. |
uint shell_extract_rmaxsize | ( | int | i | ) |
Extracts the maximal size of an R-class in the syntactic monoid of an object.
i | the index of the object. |
uint shell_extract_rnum | ( | int | i | ) |
Extarcts the number of R-classes in the syntactic monoid of an object.
i | the index of the object. |
uint shell_extract_sizemini | ( | int | i | ) |
Extracts the size of the minimal automaton of an object.
i | the index of the object. |
uint shell_extract_sizesynt | ( | int | i | ) |
Extracts the size of the syntactic monoid of an object.
i | the index of the object. |
int shell_filter_delete | ( | com_parameters * | pars, |
ob_type | type ) |
Deletes all object that do not satify the filters.
int shell_filter_objects | ( | com_parameters * | pars, |
ob_type | type ) |
Displays of all objects of a given type in memory.
pars | The parameters of the command. |
type | The type of the objects to display. |
int shell_recursive_init | ( | char * | varname, |
com_parameters * | pars, | ||
const char * | str ) |
Initializes a recursive definition.
varname | The variable name for the new object. |
pars | The parameters of the command. |
str | string used to call the command. |
int shell_reset | ( | com_parameters * | pars, |
const char * | str ) |
Deletes the state names in an NFA.
pars | The parameters of the command. |
str | string used to call the command. |
int shell_retrieve_filters | ( | com_parameters * | pars, |
filters_info * | info ) |
Retrieves the filters from the command parameters.
pars | The parameters of the command. |
info | The structure to fill with the filters information. |
|
extern |
Pointer to the function that extracts a numerical value from an object for the object_compare_numerical function.