ARB
Public Member Functions | List of all members
chartable::SepBaseFreq Class Reference

#include <chartable.h>

Inheritance diagram for chartable::SepBaseFreq:
Inheritance graph
[legend]
Collaboration diagram for chartable::SepBaseFreq:
Collaboration graph
[legend]

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
 

Detailed Description

Definition at line 63 of file chartable.h.

Constructor & Destructor Documentation

SepBaseFreq::SepBaseFreq ( int  maxseqlength)

Definition at line 288 of file chartable.cxx.

References init(), and NULp.

SepBaseFreq::~SepBaseFreq ( )

Definition at line 296 of file chartable.cxx.

Member Function Documentation

void SepBaseFreq::init ( int  length)

Definition at line 37 of file chartable.cxx.

References length, and NULp.

Referenced by BaseFrequencies::init(), and SepBaseFreq().

int chartable::SepBaseFreq::size ( ) const
inline

Definition at line 115 of file chartable.h.

Referenced by BaseFrequencies::size().

int chartable::SepBaseFreq::get_table_entry_size ( ) const
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.

bool chartable::SepBaseFreq::bigger_table_entry_size_needed ( int  new_max_count)
inline

Definition at line 119 of file chartable.h.

References SHORT_TABLE_ELEM_SIZE, and SHORT_TABLE_MAX_VALUE.

int chartable::SepBaseFreq::operator[] ( int  offset) const
inline

Definition at line 121 of file chartable.h.

References SHORT_TABLE_ELEM_SIZE.

void chartable::SepBaseFreq::inc_short ( int  offset,
int  incr 
)
inline

Definition at line 123 of file chartable.h.

References ct_assert.

Referenced by BaseFrequencies::add().

void chartable::SepBaseFreq::dec_short ( int  offset,
int  decr 
)
inline

Definition at line 128 of file chartable.h.

References ct_assert.

Referenced by BaseFrequencies::sub().

void chartable::SepBaseFreq::inc_long ( int  offset,
int  incr 
)
inline

Definition at line 133 of file chartable.h.

Referenced by BaseFrequencies::add().

void chartable::SepBaseFreq::dec_long ( int  offset,
int  decr 
)
inline

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 
)
void SepBaseFreq::change_table_length ( int  new_length,
int  default_entry 
)

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.

Member Data Documentation

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.


The documentation for this class was generated from the following files: