CWB
Data Fields
_position_stream_rec_ Struct Reference

Underlying structure for the PositionStream object. More...

Data Fields

Attributeattribute
 The Attribute on which this PositionStream has been opened. More...
 
int id
 The item whose positions this PositionStream will read. More...
 
int id_freq
 id frequency (ie frequency of the item in question); maximum number of positions that can be read More...
 
int nr_items
 how many items delivered so far More...
 
int is_compressed
 Boolean: attribute REVCORP is compressed? More...
 
BStream bs
 for compressed streams, the stream is a BStream object rather than just a pointer. More...
 
int b
 relevent for compressed streams More...
 
int last_pos
 relevent for compressed streams More...
 
int * base
 pointer to base of stream for uncompressed streams. More...
 

Detailed Description

Underlying structure for the PositionStream object.

PositionStreams are used for accessing Attributes. Each one represents a stream of corpus positions, representing positions where a given item occurs.

Field Documentation

Attribute* attribute

The Attribute on which this PositionStream has been opened.

Referenced by cl_new_stream().

int b

relevent for compressed streams

Referenced by cl_new_stream(), and cl_read_stream().

int* base

pointer to base of stream for uncompressed streams.

Referenced by cl_new_stream(), and cl_read_stream().

BStream bs

for compressed streams, the stream is a BStream object rather than just a pointer.

Referenced by cl_new_stream(), and cl_read_stream().

int id

The item whose positions this PositionStream will read.

Referenced by cl_new_stream().

int id_freq

id frequency (ie frequency of the item in question); maximum number of positions that can be read

Referenced by cl_new_stream(), and cl_read_stream().

int is_compressed

Boolean: attribute REVCORP is compressed?

Referenced by cl_new_stream(), and cl_read_stream().

int last_pos

relevent for compressed streams

Referenced by cl_new_stream(), and cl_read_stream().

int nr_items

how many items delivered so far

Referenced by cl_new_stream(), and cl_read_stream().


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