CWB
Data Fields
_variable_buf Struct Reference

The Variable object: a list of strings that can be used as a variable within a query (to match all tokens whose type is identical to one of the strings on the list). More...

#include <variables.h>

Data Fields

int valid
 flag: whether I'm valid or not (valid = associated with a corpus/attribute, and known to match at least one entry in that attribute's lexicon) More...
 
char * my_name
 my name More...
 
char * my_corpus
 name of corpus I'm valid for More...
 
char * my_attribute
 name of attribute I'm valid for More...
 
int nr_valid_items
 only valid after validation More...
 
int nr_invalid_items
 
int nr_items
 number of items (size of the "items" array) More...
 
VariableItemitems
 array of items - the set of strings within the variable. More...
 

Detailed Description

The Variable object: a list of strings that can be used as a variable within a query (to match all tokens whose type is identical to one of the strings on the list).

(Plus also VariableBuffer: the former is a pointer to the latter.)

Field Documentation

VariableItem* items
char* my_attribute

name of attribute I'm valid for

Referenced by DropVariable(), NewVariable(), and VerifyVariable().

char* my_corpus

name of corpus I'm valid for

Referenced by DropVariable(), NewVariable(), and VerifyVariable().

char* my_name
int nr_invalid_items
int nr_items
int nr_valid_items

only valid after validation

Referenced by GetVariableItems(), VariableDeleteItems(), and VerifyVariable().

int valid

flag: whether I'm valid or not (valid = associated with a corpus/attribute, and known to match at least one entry in that attribute's lexicon)

Referenced by NewVariable(), VariableAddItem(), VariableDeleteItems(), VariableSubtractItem(), and VerifyVariable().


The documentation for this struct was generated from the following file: