NCBI C++ ToolKit
Public Member Functions | Public Attributes | List of all members
bm::aggregator< BV >::arg_groups Struct Reference

Search Toolkit Book for bm::aggregator::arg_groups

Aggregator arg groups. More...

#include <util/bitset/bmaggregator.h>

+ Collaboration diagram for bm::aggregator< BV >::arg_groups:

Public Member Functions

void reset ()
 Reset argument groups to zero. More...
 
Aggregator traits and control constants
size_t add (const bvector_type *bv, unsigned agr_group)
 Add bit-vector pointer to its aggregation group. More...
 

Public Attributes

bv_vector_type arg_bv0
 arg group 0 More...
 
bv_vector_type arg_bv1
 arg group 1 More...
 
index_vector_type arg_idx0
 indexes of vectors for arg group 0 More...
 
index_vector_type arg_idx1
 

Detailed Description

template<typename BV>
struct bm::aggregator< BV >::arg_groups

Aggregator arg groups.

Definition at line 156 of file bmaggregator.h.

Member Function Documentation

◆ add()

template<typename BV >
size_t bm::aggregator< BV >::arg_groups::add ( const bvector_type bv,
unsigned  agr_group 
)

Add bit-vector pointer to its aggregation group.

Parameters
bv- input bit-vector pointer to attach
agr_group- input argument group index (0 - default, 1 - fused op)
Returns
current arg group size (0 if vector was not added (empty))

Definition at line 2930 of file bmaggregator.h.

References bm::aggregator< BV >::arg_groups::arg_bv0, bm::aggregator< BV >::arg_groups::arg_bv1, BM_ASSERT, BM_ASSERT_THROW, bm::heap_vector< Val, BVAlloc, trivial_type >::push_back(), and bm::heap_vector< Val, BVAlloc, trivial_type >::size().

Referenced by AggregatorTest(), StressTestAggregatorAND(), and StressTestAggregatorAND_SUB().

◆ reset()

template<typename BV >
void bm::aggregator< BV >::arg_groups::reset ( )
inline

Reset argument groups to zero.

Definition at line 164 of file bmaggregator.h.

Member Data Documentation

◆ arg_bv0

template<typename BV >
bv_vector_type bm::aggregator< BV >::arg_groups::arg_bv0

◆ arg_bv1

template<typename BV >
bv_vector_type bm::aggregator< BV >::arg_groups::arg_bv1

◆ arg_idx0

template<typename BV >
index_vector_type bm::aggregator< BV >::arg_groups::arg_idx0

indexes of vectors for arg group 0

Definition at line 160 of file bmaggregator.h.

Referenced by bm::aggregator< BV >::pipeline< Opt >::complete_arg_group(), and bm::aggregator< bvector_type >::arg_groups::reset().

◆ arg_idx1

template<typename BV >
index_vector_type bm::aggregator< BV >::arg_groups::arg_idx1

The documentation for this struct was generated from the following file:
Modified on Sun Apr 14 05:28:02 2024 by modify_doxy.py rev. 669887