NCBI C++ ToolKit
Functions
gena.h File Reference
+ This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

◆ FillSetClearIntervals()

template<typename BVMINI , typename BV , typename SZT >
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().

◆ FillSets()

template<typename BVMINI , typename BV , typename SZT >
void FillSets ( BVMINI *  bvect_min,
BV *  bvect_full,
SZT  min,
SZT  max,
SZT  fill_factor 
)

◆ FillSetsIntervals() [1/2]

template<typename BV , typename SZT >
void FillSetsIntervals ( BV &  bvect_full,
SZT  min,
SZT  max,
SZT  fill_factor,
bool  set_flag = true 
)

Definition at line 258 of file gena.h.

References assert, bm::gap_max_bits, i, len, max(), and min().

◆ FillSetsIntervals() [2/2]

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 
)

◆ FillSetsRandom()

template<typename BVMINI , typename BV , typename SZT >
void FillSetsRandom ( BVMINI *  bvect_min,
BV *  bvect_full,
SZT  min,
SZT  max,
SZT  fill_factor 
)

Definition at line 482 of file gena.h.

References i, max(), and min().

Referenced by FillSetsRandomMethod().

◆ FillSetsRandomMethod()

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 
)

◆ FillSetsRandomOne()

template<typename BVMINI , typename BV , typename SZT >
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().

◆ FillSetsRegular()

template<typename BVMINI , typename BV , typename SZT >
void FillSetsRegular ( BVMINI *  bvect_min,
BV *  bvect_full,
SZT  ,
SZT  max,
SZT   
)

Definition at line 522 of file gena.h.

References i, and max().

Referenced by FillSetsRandomMethod().

◆ FillSparseIntervals()

template<class SV >
void FillSparseIntervals ( std::vector< unsigned > &  vect,
SV &  svect,
typename SV::size_type  min,
typename SV::size_type  max,
unsigned  fill_factor 
)

Definition at line 842 of file gena.h.

References i, max(), min(), and val.

Referenced by TestSparseVector_Stress().

◆ FillTestBuffer()

template<typename CBCBuf >
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().

◆ generate_bvector()

template<typename BV >
void generate_bvector ( BV &  bv,
typename BV::size_type  vector_max,
bool  optimize 
)

◆ generate_serialization_test_set()

template<typename SV >
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().

◆ generate_sparse_bvector()

template<typename BV >
void generate_sparse_bvector ( BV &  bv,
typename BV::size_type  min,
typename BV::size_type  max = 40000000,
unsigned  fill_factor = 65536 
)

Definition at line 638 of file gena.h.

References i, max(), and min().

Referenced by GenerateShiftTestCollection().

◆ generate_test_vectors()

template<typename VT , typename SIZE_TYPE >
void generate_test_vectors ( VT &  v1,
VT &  v2,
VT &  v3,
SIZE_TYPE  from,
SIZE_TYPE  to 
)

Definition at line 135 of file gena.h.

References v2.

Referenced by BvectorBulkSetTest().

◆ generate_vect48()

template<typename VT >
void generate_vect48 ( VT &  vect)

◆ generate_vect48_range()

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

Definition at line 41 of file gena.h.

References i.

Referenced by generate_vect48().

◆ generate_vect_simpl0()

template<typename VT >
void generate_vect_simpl0 ( VT &  vect)

◆ GenerateCompressedBufferCollection()

template<typename CBC >
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().

◆ GenerateShiftTestCollection()

template<typename VECT >
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().

◆ GenerateSV()

template<typename SV >
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().

◆ GenerateTestStrCollection()

template<typename SSV >
void GenerateTestStrCollection ( SSV &  str_coll,
typename SSV::size_type  max_coll 
)

Definition at line 906 of file gena.h.

References i, prefix, and str().

Referenced by StressTestStrSparseVector().

◆ random_minmax()

template<typename SZT >
SZT random_minmax ( SZT  min,
SZT  max 
)

Definition at line 333 of file gena.h.

References max(), min(), r(), and test.

Referenced by FillSets().

◆ SimpleGapFillSets()

template<typename BV >
void SimpleGapFillSets ( BV &  bv0,
BV &  bv1,
typename BV::size_type  min,
typename BV::size_type  max,
unsigned  fill_factor 
)

Definition at line 152 of file gena.h.

References i, max(), and min().

Referenced by GAPTestStress().

Modified on Fri May 31 16:12:27 2024 by modify_doxy.py rev. 669887