Home | History | Annotate | Download | only in src

Lines Matching defs:Pattern

15 // pattern.h : global pattern references and initialization
34 // Pattern and CRC data structure
36 const char *name; // Name of this pattern.
39 unsigned char weight[4]; // Weighted frequency of this pattern.
40 // Each pattern has 32,64,128,256 width versions.
43 // appropriate pattern is chosen. Thus a weight of
49 class Pattern {
51 Pattern();
52 ~Pattern();
53 // Fill pattern data and calculate CRC.
60 // "busshift_" allows for repeating each pattern word 1, 2, 4, etc. times.
62 unsigned int pattern(unsigned int offset) {
77 bool inverse_; // Invert the data from the original pattern.
78 AdlerChecksum *crc_; // CRC of this pattern.
79 string name_; // The human readable pattern name.
81 // pattern will be chosen.
83 // DISALLOW_COPY_AND_ASSIGN(Pattern);
86 // Object used to access global pattern list.
95 // Return the pattern designated by index i.
96 Pattern *GetPattern(int i);
97 // Return a random pattern according to the specified weighted probability.
98 Pattern *GetRandomPattern();
103 vector<class Pattern> patterns_;
104 int weightcount_; // Total count of pattern weights.