All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
gap_map.h
Go to the documentation of this file.
1 #ifndef GAP_MAP_H
2 #define GAP_MAP_H
3 
4 #include "blobbox.h"
5 
6 class GAPMAP
7 {
8  public:
9  GAPMAP( //constructor
10  TO_BLOCK *block);
11 
12  ~GAPMAP () { //destructor
13  if (map != NULL)
14  free_mem(map);
15  }
16 
17  BOOL8 table_gap( //Is gap a table?
18  inT16 left, //From here
19  inT16 right); //To here
20 
21  private:
22  inT16 total_rows; //in block
23  inT16 min_left; //Left extreme
24  inT16 max_right; //Right extreme
25  inT16 bucket_size; // half an x ht
26  inT16 *map; //empty counts
27  inT16 map_max; //map[0..max_map] defind
28  BOOL8 any_tabs;
29 };
30 
31 /*-----------------------------*/
32 
33 extern BOOL_VAR_H (gapmap_debug, FALSE, "Say which blocks have tables");
35 "Use large space at start and end of rows");
37 "Ensure gaps not less than 2quanta wide");
38 extern double_VAR_H (gapmap_big_gaps, 1.75, "xht multiplier");
39 #endif
bool gapmap_use_ends
Definition: gap_map.cpp:7
void free_mem(void *oldchunk)
Definition: memry.cpp:55
~GAPMAP()
Definition: gap_map.h:12
unsigned char BOOL8
Definition: host.h:113
BOOL8 table_gap(inT16 left, inT16 right)
Definition: gap_map.cpp:150
bool gapmap_debug
Definition: gap_map.cpp:5
#define double_VAR_H(name, val, comment)
Definition: params.h:274
Definition: gap_map.h:6
bool gapmap_no_isolated_quanta
Definition: gap_map.cpp:9
#define FALSE
Definition: capi.h:29
GAPMAP(TO_BLOCK *block)
Definition: gap_map.cpp:26
double gapmap_big_gaps
Definition: gap_map.cpp:10
#define NULL
Definition: host.h:144
#define BOOL_VAR_H(name, val, comment)
Definition: params.h:268
short inT16
Definition: host.h:100