CWB
|
The Range object represents a range of corpus positions - for instance, the range enclosed by an instance of an s-attribute. More...
#include <corpmanag.h>
The Range object represents a range of corpus positions - for instance, the range enclosed by an instance of an s-attribute.
Range object: represents an S-attribute being encoded, and holds some information about the currently-being-processed instance of that S-attribute.
TODO should probably be called an SAttr
char* annot |
and annotation (if there is one)
Referenced by range_close(), range_declare(), and range_open().
int automatic |
automatic attributes are the 'children' used for recursion and element attributes below
Referenced by main(), and range_declare().
FILE* avs |
fd of avs component (the attribute values)
Referenced by main(), range_close(), and range_declare().
FILE* avx |
fd of avx component (the attribute value index)
Referenced by main(), range_close(), and range_declare().
char* dir |
directory where this range is stored
Referenced by range_declare().
maps XML element attribute names to the appropriate s-attribute 'children' (Range *)
Referenced by range_close(), range_declare(), range_open(), and range_print_registry_line().
list of declared element attribute names, required by range_close() function
Referenced by range_close(), range_declare(), range_open(), and range_print_registry_line().
remembers undeclared element attributes, so warnings will be issued only once
Referenced by range_declare(), and range_open().
count how many recursive subelements were dropped because of the max_recursion limit
Referenced by main(), range_declare(), and range_open().
int end |
end position of the corpus interval
Referenced by _RS_compare_ranges(), attach_subcorpus(), catalog_corpus(), delete_interval(), delete_intervals(), do_cqi_cqp_dump_subcorpus(), do_cut(), do_dump(), ensure_corpus_size(), eval_constraint(), evaluate_subset(), evaluate_target(), expand_dataspace(), findcorpus(), get_group_id(), GetSystemCorpus(), html_print_output(), latex_print_output(), mark_offrange_cells(), matchfirstpattern(), nr_positions(), print_concordance_line(), pt_get_anchor_cpos(), random_compare(), RangeSetop(), rs_cp_range(), set_corpus_matchlists(), set_target(), sgml_print_output(), simulate(), SortExternally(), SortSubcorpus(), and SortSubcorpusRandomize().
FILE* fd |
fd of rng component
Referenced by main(), range_close(), and range_declare().
int feature_set |
stored values are feature sets => validate and normalise format
Referenced by range_declare(), and range_open().
int has_children |
whether attribute values of XML elements are stored in s-attribute 'children'
Referenced by range_close(), range_declare(), range_open(), and range_print_registry_line().
int in_registry |
with "-R {reg_file}", this is set to 1 when the attribute is written to the registry (avoid duplicates)
Referenced by range_declare(), and range_print_registry_line().
int is_open |
boolean: whether there is an open structure at the moment
Referenced by main(), range_close(), range_declare(), and range_open().
lexicon hash for attribute values
Referenced by range_close(), and range_declare().
int max_recursion |
maximum auto-recursion level; 0 = no recursion (maximal regions), -1 = assume flat structure
Referenced by main(), range_close(), range_declare(), range_open(), and range_print_registry_line().
char* name |
range name
Referenced by main(), range_close(), range_declare(), range_open(), and range_print_registry_line().
int null_attribute |
a NULL attribute ignores all corresponding XML tags, without checking structure or annotations
Referenced by main(), range_close(), range_declare(), range_open(), and range_print_registry_line().
int num |
number of current (if this->is_open) or next structure
Referenced by range_close(), and range_declare().
int offset |
string offset for next string (in avs component)
Referenced by range_close(), and range_declare().
struct _Range** recursion_children |
(usually very short) list of s-attribute 'children' for auto-recursion; use as array; recursion_children[0] points to self!
Referenced by range_close(), range_declare(), range_open(), and range_print_registry_line().
int recursion_level |
keeps track of level of embedding when auto-recursion is activated
Referenced by main(), range_close(), range_declare(), and range_open().
int start |
start position of the corpus interval
Referenced by _RS_compare_ranges(), attach_subcorpus(), catalog_corpus(), delete_interval(), delete_intervals(), do_cqi_cqp_dump_subcorpus(), do_cut(), do_dump(), eval_constraint(), evaluate_subset(), evaluate_target(), expand_dataspace(), findcorpus(), get_group_id(), GetSystemCorpus(), html_print_output(), latex_print_output(), mark_offrange_cells(), matchfirstpattern(), nr_positions(), print_concordance_line(), pt_get_anchor_cpos(), random_compare(), RangeSetop(), rs_cp_range(), set_corpus_matchlists(), set_target(), sgml_print_output(), simulate(), SortExternally(), SortSubcorpus(), and SortSubcorpusRandomize().
int start_pos |
if this->is_open, remember start position of current range
Referenced by range_close(), range_declare(), and range_open().
int store_values |
flag indicating whether to store values (does _not_ automatically apply to children, see below)
Referenced by main(), range_close(), range_declare(), range_open(), and range_print_registry_line().