|
| Counters () |
|
| ~Counters () |
|
| Counters (const Counters< Array_Type, Data_Type > &counter_) |
| Copy constructor. More...
|
|
| Counters (Counters< Array_Type, Data_Type > &&counters_) noexcept |
| Move constructor. More...
|
|
Counters< Array_Type, Data_Type > | operator= (const Counters< Array_Type, Data_Type > &counter_) |
| Copy assignment constructor. More...
|
|
Counters< Array_Type, Data_Type > & | operator= (Counters< Array_Type, Data_Type > &&counter_) noexcept |
| Move assignment constructor. More...
|
|
Counter< Array_Type, Data_Type > & | operator[] (size_t idx) |
| Returns a pointer to a particular counter. More...
|
|
std::size_t | size () const noexcept |
| Number of counters in the set. More...
|
|
void | add_counter (Counter< Array_Type, Data_Type > counter) |
|
void | add_counter (Counter_fun_type< Array_Type, Data_Type > count_fun_, Counter_fun_type< Array_Type, Data_Type > init_fun_, Hasher_fun_type< Array_Type, Data_Type > hasher_fun_, Data_Type data_, std::string name_="", std::string desc_="") |
|
std::vector< std::string > | get_names () const |
|
std::vector< std::string > | get_descriptions () const |
|
std::vector< double > | gen_hash (const Array_Type &array, bool add_dims=true) |
| Generates a hash for the given array according to the counters. More...
|
|
void | add_hash (Hasher_fun_type< Array_Type, Data_Type > fun_) |
|
template<typename Array_Type = BArray<>, typename Data_Type = bool>
class Counters< Array_Type, Data_Type >
Vector of counters.
Various functions hold more than one counter, so this class is a helper class that allows managing multiple counters efficiently. The main data is a vector to pointers of counters.
Definition at line 108 of file counters-bones.hpp.