BitMagic-C++
Public Member Functions | Data Fields
bm::aggregator< BV >::arg_groups Struct Reference

Aggregator arg groups. More...

#include <bmaggregator.h>

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...
 

Data Fields

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
  More...
 

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 2839 of file bmaggregator.h.

References bm::aggregator< BV >::arg_groups::arg_bv0, bm::aggregator< BV >::arg_groups::arg_bv1, BM_ASSERT, and BM_ASSERT_THROW.

◆ reset()

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

Field 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 >::combine_and_sub(), and bm::aggregator< BV >::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: