33 #ifndef C_SEQ_MASKER_OSTAT_OPT_H
34 #define C_SEQ_MASKER_OSTAT_OPT_H
68 virtual const char * GetErrCodeString()
const override;
81 string const & metadata );
118 Uint1 UnitSize()
const;
128 const vector< Uint4 > &
GetParams()
const;
171 void createCacheBitArray(
Uint4 ** cba );
Exceptions that CSeqMaskerOstatOpt might throw.
NCBI_EXCEPTION_DEFAULT(Exception, CException)
Class responsible for collecting unit counts statistics and representing it in optimized hash-based f...
virtual void write_out(const params &p) const =0
Dump the unit counts data to the output stream according to the requested format.
virtual ~CSeqMaskerOstatOpt()
Object destructor.
Base class for computing and saving unit counts data.
virtual void doSetUnitSize(Uint4 us)
virtual void doFinalize()
virtual void doSetUnitCount(Uint4, Uint4)=0
uint8_t Uint1
1-byte (8-bit) unsigned integer
uint32_t Uint4
4-byte (32-bit) unsigned integer
uint16_t Uint2
2-byte (16-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
#define NCBI_XALGOWINMASK_EXPORT
NCBI C++ stream class wrappers for triggering between "new" and "old" C++ stream libraries.
static CRef< CUser_object > GetParams()
Parameters of the optimized data structure.
Uint1 roff
Right offset of the hash key in bits.
Uint4 * cba
Cache bit array.
Uint1 bc
Size of the collisions field in the table in bits.
Uint2 * vt
Secondary counts table.
Uint1 k
The size of the hash key in bits.
Uint4 M
Number of units that have a collision.