CWB
Macros | Functions | Variables
groups.c File Reference
#include "../cl/globals.h"
#include <math.h>
#include "../cl/attributes.h"
#include "../cl/cdaccess.h"
#include "../cl/macros.h"
#include "../cl/binsert.h"
#include "options.h"
#include "html-print.h"
#include "ascii-print.h"
#include "sgml-print.h"
#include "latex-print.h"
#include "corpmanag.h"
#include "groups.h"
#include "output.h"

Macros

#define GROUP_DEBUG   0
 
#define ANY_ID   -2
 
#define GROUP_REALLOC   1024
 

Functions

static int compare_cells (const void *p1, const void *p2)
 
int get_group_id (Group *group, int i, int target)
 
char * Group_id2str (Group *group, int id, int target)
 
GroupComputeGroupInternally (Group *group)
 
GroupComputeGroupExternally (Group *group)
 
Groupcompute_grouping (CorpusList *cl, FieldType source_field, int source_offset, char *source_attr_name, FieldType target_field, int target_offset, char *target_attr_name, int cutoff_freq, int is_grouped)
 
void free_group (Group **group)
 
void print_group (Group *group, int expand, struct Redir *rd)
 

Variables

Groupcompare_cells_group = NULL
 

Macro Definition Documentation

#define ANY_ID   -2

Referenced by get_group_id(), and Group_id2str().

#define GROUP_DEBUG   0

Referenced by ComputeGroupExternally().

#define GROUP_REALLOC   1024

Referenced by ComputeGroupExternally().

Function Documentation

static int compare_cells ( const void *  p1,
const void *  p2 
)
static
Group* compute_grouping ( CorpusList cl,
FieldType  source_field,
int  source_offset,
char *  source_attr_name,
FieldType  target_field,
int  target_offset,
char *  target_attr_name,
int  cutoff_freq,
int  is_grouped 
)
Group* ComputeGroupExternally ( Group group)
Group* ComputeGroupInternally ( Group group)
void free_group ( Group **  group)
int get_group_id ( Group group,
int  i,
int  target 
)
char* Group_id2str ( Group group,
int  id,
int  target 
)
void print_group ( Group group,
int  expand,
struct Redir rd 
)

Variable Documentation

Group* compare_cells_group = NULL