ARB
|
#include <chartable.h>
Public Member Functions | |
SepBaseFreq (int maxseqlength) | |
~SepBaseFreq () | |
void | init (int length) |
int | size () const |
int | get_table_entry_size () const |
void | expand_table_entry_size () |
bool | bigger_table_entry_size_needed (int new_max_count) |
int | operator[] (int offset) const |
void | inc_short (int offset, int incr) |
void | dec_short (int offset, int decr) |
void | inc_long (int offset, int incr) |
void | dec_long (int offset, int decr) |
int | firstDifference (const SepBaseFreq &other, int start, int end, int *firstDifferentPos) const |
int | lastDifference (const SepBaseFreq &other, int start, int end, int *lastDifferentPos) const |
void | add (const SepBaseFreq &other, int start, int end) |
void | sub (const SepBaseFreq &other, int start, int end) |
void | sub_and_add (const SepBaseFreq &Sub, const SepBaseFreq &Add, PosRange range) |
void | change_table_length (int new_length, int default_entry) |
int | empty () const |
Definition at line 63 of file chartable.h.
SepBaseFreq::SepBaseFreq | ( | int | maxseqlength | ) |
Definition at line 288 of file chartable.cxx.
SepBaseFreq::~SepBaseFreq | ( | ) |
Definition at line 296 of file chartable.cxx.
void SepBaseFreq::init | ( | int | length | ) |
Definition at line 37 of file chartable.cxx.
Referenced by BaseFrequencies::init(), and SepBaseFreq().
|
inline |
Definition at line 115 of file chartable.h.
Referenced by BaseFrequencies::size().
|
inline |
Definition at line 117 of file chartable.h.
void SepBaseFreq::expand_table_entry_size | ( | ) |
Definition at line 58 of file chartable.cxx.
References ct_assert, LONG_TABLE_ELEM_SIZE, and SHORT_TABLE_ELEM_SIZE.
|
inline |
Definition at line 119 of file chartable.h.
References SHORT_TABLE_ELEM_SIZE, and SHORT_TABLE_MAX_VALUE.
Definition at line 121 of file chartable.h.
References SHORT_TABLE_ELEM_SIZE.
Definition at line 123 of file chartable.h.
References ct_assert.
Referenced by BaseFrequencies::add().
Definition at line 128 of file chartable.h.
References ct_assert.
Referenced by BaseFrequencies::sub().
Definition at line 133 of file chartable.h.
Referenced by BaseFrequencies::add().
Definition at line 137 of file chartable.h.
References ct_assert.
Referenced by BaseFrequencies::sub().
int SepBaseFreq::firstDifference | ( | const SepBaseFreq & | other, |
int | start, | ||
int | end, | ||
int * | firstDifferentPos | ||
) | const |
Definition at line 192 of file chartable.cxx.
References result, and SHORT_TABLE_ELEM_SIZE.
Referenced by BaseFrequencies::changed_range().
int SepBaseFreq::lastDifference | ( | const SepBaseFreq & | other, |
int | start, | ||
int | end, | ||
int * | lastDifferentPos | ||
) | const |
Definition at line 239 of file chartable.cxx.
References result, SHORT_TABLE_ELEM_SIZE, and start.
Referenced by BaseFrequencies::changed_range().
void SepBaseFreq::add | ( | const SepBaseFreq & | other, |
int | start, | ||
int | end | ||
) |
Definition at line 80 of file chartable.cxx.
References ct_assert, INVALID_TABLE_OPERATION, and SHORT_TABLE_ELEM_SIZE.
void SepBaseFreq::sub | ( | const SepBaseFreq & | other, |
int | start, | ||
int | end | ||
) |
Definition at line 110 of file chartable.cxx.
References ct_assert, INVALID_TABLE_OPERATION, and SHORT_TABLE_ELEM_SIZE.
void SepBaseFreq::sub_and_add | ( | const SepBaseFreq & | Sub, |
const SepBaseFreq & | Add, | ||
PosRange | range | ||
) |
Definition at line 140 of file chartable.cxx.
References ct_assert, PosRange::end(), INVALID_TABLE_OPERATION, SHORT_TABLE_ELEM_SIZE, start, and PosRange::start().
Referenced by BaseFrequencies::sub_and_add().
Definition at line 304 of file chartable.cxx.
References ct_assert, and SHORT_TABLE_ELEM_SIZE.
Referenced by BaseFrequencies::change_table_length().
int SepBaseFreq::empty | ( | ) | const |
Definition at line 348 of file chartable.cxx.
References SHORT_TABLE_ELEM_SIZE.
unsigned char* chartable::SepBaseFreq::shortTable |
Definition at line 69 of file chartable.h.
int* chartable::SepBaseFreq::longTable |
Definition at line 70 of file chartable.h.