NCBI C++ ToolKit
|
Go to the source code of this file.
Go to the SVN repository for this file.
Functions | |
template<typename VT > | |
void | generate_vect_simpl0 (VT &vect) |
generate certain simple benchmark values More... | |
template<typename VT , typename DISTR , typename MT_RAND > | |
void | generate_vect48_range (VT &vect, unsigned long long range_base, DISTR &dist, MT_RAND &mt_rand) |
sub-range vector generator More... | |
template<typename VT > | |
void | generate_vect48 (VT &vect) |
generate test random vector in 48-bit range More... | |
template<typename BV > | |
void | generate_bvector (BV &bv, typename BV::size_type vector_max, bool optimize) |
template<typename VT , typename SIZE_TYPE > | |
void | generate_test_vectors (VT &v1, VT &v2, VT &v3, SIZE_TYPE from, SIZE_TYPE to) |
template<typename BV > | |
void | SimpleGapFillSets (BV &bv0, BV &bv1, typename BV::size_type min, typename BV::size_type max, unsigned fill_factor) |
template<typename BVMINI , typename BV , typename SZT > | |
void | FillSetsIntervals (BVMINI *bvect_min, BV &bvect_full, SZT min, SZT max, SZT fill_factor, bool set_flag=true) |
template<typename BV , typename SZT > | |
void | FillSetsIntervals (BV &bvect_full, SZT min, SZT max, SZT fill_factor, bool set_flag=true) |
template<typename SZT > | |
SZT | random_minmax (SZT min, SZT max) |
template<typename BVMINI , typename BV , typename SZT > | |
void | FillSets (BVMINI *bvect_min, BV *bvect_full, SZT min, SZT max, SZT fill_factor) |
template<typename BVMINI , typename BV , typename SZT > | |
void | FillSetClearIntervals (BVMINI *bvect_min, BV *bvect_full, SZT min, SZT max, SZT fill_factor) |
template<typename BVMINI , typename BV , typename SZT > | |
void | FillSetsRandomOne (BVMINI *bvect_min, BV *bvect_full, SZT min, SZT max) |
template<typename BVMINI , typename BV , typename SZT > | |
void | FillSetsRandom (BVMINI *bvect_min, BV *bvect_full, SZT min, SZT max, SZT fill_factor) |
template<typename BVMINI , typename BV , typename SZT > | |
void | FillSetsRegular (BVMINI *bvect_min, BV *bvect_full, SZT, SZT max, SZT) |
template<typename BVMINI , typename BV , typename SZT > | |
int | FillSetsRandomMethod (BVMINI *bvect_min, BV *bvect_full, SZT min, SZT max, int optimize=0, int method=-1) |
template<typename BV > | |
void | generate_sparse_bvector (BV &bv, typename BV::size_type min, typename BV::size_type max=40000000, unsigned fill_factor=65536) |
template<typename VECT > | |
void | GenerateShiftTestCollection (VECT *target, unsigned count, unsigned long long vector_max, bool optimize) |
template<typename SV > | |
void | GenerateSV (SV &sv, unsigned strategy=0) |
template<class SV > | |
void | FillSparseIntervals (std::vector< unsigned > &vect, SV &svect, typename SV::size_type min, typename SV::size_type max, unsigned fill_factor) |
template<typename SSV > | |
void | GenerateTestStrCollection (SSV &str_coll, typename SSV::size_type max_coll) |
template<typename CBCBuf > | |
void | FillTestBuffer (CBCBuf &buf) |
template<typename CBC > | |
void | GenerateCompressedBufferCollection (CBC &cbc) |
template<typename SV > | |
void | generate_serialization_test_set (SV &sv, typename SV::size_type vector_max) |
void FillSetClearIntervals | ( | BVMINI * | bvect_min, |
BV * | bvect_full, | ||
SZT | min, | ||
SZT | max, | ||
SZT | fill_factor | ||
) |
Definition at line 458 of file gena.h.
References FillSetsIntervals(), max(), and min().
Referenced by FillSetsRandomMethod().
void FillSets | ( | BVMINI * | bvect_min, |
BV * | bvect_full, | ||
SZT | min, | ||
SZT | max, | ||
SZT | fill_factor | ||
) |
Definition at line 345 of file gena.h.
References i, max(), min(), r(), and random_minmax().
Referenced by AndOperationsTest(), FillSetsRandomMethod(), OrOperationsTest(), RangeRandomFillTest(), SerializationTest(), SubOperationsTest(), and XorOperationsTest().
void FillSetsIntervals | ( | BVMINI * | bvect_min, |
BV & | bvect_full, | ||
SZT | min, | ||
SZT | max, | ||
SZT | fill_factor, | ||
bool | set_flag = true |
||
) |
Definition at line 172 of file gena.h.
References assert, bm::gap_max_bits, i, len, max(), and min().
Referenced by FillSetClearIntervals(), FillSetsRandomMethod(), GenerateShiftTestCollection(), and RangeRandomFillTest().
void FillSetsRandom | ( | BVMINI * | bvect_min, |
BV * | bvect_full, | ||
SZT | min, | ||
SZT | max, | ||
SZT | fill_factor | ||
) |
int FillSetsRandomMethod | ( | BVMINI * | bvect_min, |
BV * | bvect_full, | ||
SZT | min, | ||
SZT | max, | ||
int | optimize = 0 , |
||
int | method = -1 |
||
) |
Definition at line 554 of file gena.h.
References BM_DECLARE_TEMP_BLOCK, FillSetClearIntervals(), FillSets(), FillSetsIntervals(), FillSetsRandom(), FillSetsRandomOne(), FillSetsRegular(), max(), and min().
Referenced by DesrializationTest2(), GenerateTestCollection(), SerializationTest(), StressTest(), StressTestAggregatorAND(), StressTestAggregatorOR(), and StressTestAggregatorShiftAND().
void FillSetsRandomOne | ( | BVMINI * | bvect_min, |
BV * | bvect_full, | ||
SZT | min, | ||
SZT | max | ||
) |
Definition at line 469 of file gena.h.
References max(), min(), and compile_time_bits::range().
Referenced by FillSetsRandomMethod().
void FillSetsRegular | ( | BVMINI * | bvect_min, |
BV * | bvect_full, | ||
SZT | , | ||
SZT | max, | ||
SZT | |||
) |
Definition at line 522 of file gena.h.
Referenced by FillSetsRandomMethod().
void FillSparseIntervals | ( | std::vector< unsigned > & | vect, |
SV & | svect, | ||
typename SV::size_type | min, | ||
typename SV::size_type | max, | ||
unsigned | fill_factor | ||
) |
void FillTestBuffer | ( | CBCBuf & | buf | ) |
Definition at line 931 of file gena.h.
References buf, data, i, and ncbi::grid::netcache::search::fields::size.
Referenced by GenerateCompressedBufferCollection().
void generate_bvector | ( | BV & | bv, |
typename BV::size_type | vector_max, | ||
bool | optimize | ||
) |
Definition at line 106 of file gena.h.
References assert, i, and len.
Referenced by BvectorBitForEachTest(), BvectorEraseTest(), BvectorInsertTest(), BvectorShiftTest(), GenerateShiftTestCollection(), RangeDeserializationTest(), TestCompressSparseSignedVector(), TestRankCompress(), and TestSparseVectorTransform().
void generate_serialization_test_set | ( | SV & | sv, |
typename SV::size_type | vector_max | ||
) |
Definition at line 967 of file gena.h.
References i.
Referenced by TestSparseVectorSerialization2().
void generate_sparse_bvector | ( | BV & | bv, |
typename BV::size_type | min, | ||
typename BV::size_type | max = 40000000 , |
||
unsigned | fill_factor = 65536 |
||
) |
void generate_vect48 | ( | VT & | vect | ) |
generate test random vector in 48-bit range
Definition at line 70 of file gena.h.
References generate_vect48_range(), bm::id_max32, and ct::sort().
Referenced by AndOperationsTest(), DesrializationTest2(), OrOperationsTest(), RangeDeserializationTest(), StressTest(), StressTestAggregatorOR(), SubOperationsTest(), TestSparseVector(), TestSparseVectorInserter(), and XorOperationsTest().
void generate_vect48_range | ( | VT & | vect, |
unsigned long long | range_base, | ||
DISTR & | dist, | ||
MT_RAND & | mt_rand | ||
) |
sub-range vector generator
Definition at line 41 of file gena.h.
References i.
Referenced by generate_vect48().
void generate_vect_simpl0 | ( | VT & | vect | ) |
generate certain simple benchmark values
Definition at line 24 of file gena.h.
References bm::bits_in_array, bm::id_max32, and swap().
Referenced by AndOperationsTest(), DesrializationTest2(), GenericBVectorTest(), OrOperationsTest(), RangeDeserializationTest(), StressTest(), SubOperationsTest(), SyntaxTest(), TestSparseVector(), TestSparseVectorGatherDecode(), TestSparseVectorInserter(), and XorOperationsTest().
void GenerateCompressedBufferCollection | ( | CBC & | cbc | ) |
Definition at line 946 of file gena.h.
References buf, FillTestBuffer(), i, and ncbi::grid::netcache::search::fields::key.
Referenced by TestCompressedCollection().
void GenerateShiftTestCollection | ( | VECT * | target, |
unsigned | count, | ||
unsigned long long | vector_max, | ||
bool | optimize | ||
) |
Definition at line 657 of file gena.h.
References assert, FillSetsIntervals(), generate_bvector(), generate_sparse_bvector(), and i.
Referenced by BvectorShiftTest().
void GenerateSV | ( | SV & | sv, |
unsigned | strategy = 0 |
||
) |
Definition at line 692 of file gena.h.
References i, int, and rapidjson::value.
Referenced by TestCompressSparseSignedVector(), and TestCompressSparseVector().
void GenerateTestStrCollection | ( | SSV & | str_coll, |
typename SSV::size_type | max_coll | ||
) |
SZT random_minmax | ( | SZT | min, |
SZT | max | ||
) |