#include "bitvec.h"
#include "params.h"
#include "unichar.h"
#include "unicity_table.h"
Go to the source code of this file.
AddProtoToConfig
Set a single proto bit in the specified configuration.
Definition at line 75 of file protos.h.
| #define ProtoIn |
( |
|
Class, |
|
|
|
Pid |
|
) |
| (&(Class)->Prototypes[Pid]) |
ProtoIn
Choose the selected prototype in this class record. Return the pointer to it (type PROTO).
Definition at line 84 of file protos.h.
Definition at line 47 of file protos.cpp.
#define WordsInVectorOfSize(NumBits)
#define zero_all_bits(array, length)
BIT_VECTOR NewBitVector(int NumBits)
void * Erealloc(void *ptr, int size)
Definition at line 83 of file protos.cpp.
105 for (Bit = Class->
NumProtos; Bit < NewNumProtos; Bit++)
111 tprintf(
"Ouch! number of protos = %d, vs max of %d!",
#define reset_bit(array, bit)
void * Erealloc(void *ptr, int size)
DLLSYM void tprintf(const char *format,...)
BIT_VECTOR ExpandBitVector(BIT_VECTOR Vector, int NewNumBits)
| void FillABC |
( |
PROTO |
Proto | ) |
|
Definition at line 123 of file protos.cpp.
124 float Slope, Intercept, Normalizer;
126 Slope = tan(Proto->
Angle * 2.0 * M_PI);
127 Intercept = Proto->
Y - Slope * Proto->
X;
128 Normalizer = 1.0 / sqrt (Slope * Slope + 1.0);
129 Proto->
A = Slope * Normalizer;
130 Proto->
B = -Normalizer;
131 Proto->
C = Intercept * Normalizer;
Definition at line 140 of file protos.cpp.
void FreeClassFields(CLASS_TYPE Class)
Definition at line 153 of file protos.cpp.
void FreeBitVector(BIT_VECTOR BitVector)
| CLASS_TYPE NewClass |
( |
int |
NumProtos, |
|
|
int |
NumConfigs |
|
) |
| |