Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
Abstract interface for all occurrence objects. More...
#include <bayeux/datatools/configuration/i_occurrence.h>
Public Member Functions | |
i_occurrence () | |
Constructor. More... | |
virtual | ~i_occurrence () |
Destructor. More... | |
virtual size_t | get_dimension () const =0 |
Return the dimension. More... | |
virtual size_t | get_number_of_occurrences () const =0 |
Return the number of occurrences. More... | |
virtual void | compute_occurrence (int rank_, single_occurrence &occ_) const =0 |
Compute the occurrence associated to a given rank. More... | |
bool | is_multiple () const |
Check if occurrence is multiple. More... | |
single_occurrence | get_occurrence_by_rank (int rank_) const |
Compute the occurrence associated to a given rank. More... | |
virtual size_t | compute_index_path (std::vector< uint32_t > &path_, int rank_) const =0 |
Compute a multidimensional index path from a rank. More... | |
virtual std::string | to_string () const =0 |
Convert to a string. More... | |
Static Public Attributes | |
static const int | INVALID_ID = -2 |
static const int | SINGLE_ID = -1 |
Abstract interface for all occurrence objects.
datatools::configuration::i_occurrence::i_occurrence | ( | ) |
Constructor.
|
virtual |
Destructor.
|
pure virtual |
Compute a multidimensional index path from a rank.
Implemented in datatools::configuration::array_occurrence, and datatools::configuration::single_occurrence.
|
pure virtual |
Compute the occurrence associated to a given rank.
Implemented in datatools::configuration::array_occurrence, and datatools::configuration::single_occurrence.
|
pure virtual |
Return the dimension.
Implemented in datatools::configuration::array_occurrence, and datatools::configuration::single_occurrence.
|
pure virtual |
Return the number of occurrences.
Implemented in datatools::configuration::array_occurrence, and datatools::configuration::single_occurrence.
single_occurrence datatools::configuration::i_occurrence::get_occurrence_by_rank | ( | int | rank_ | ) | const |
Compute the occurrence associated to a given rank.
bool datatools::configuration::i_occurrence::is_multiple | ( | ) | const |
Check if occurrence is multiple.
|
pure virtual |
Convert to a string.
Implemented in datatools::configuration::array_occurrence, and datatools::configuration::single_occurrence.
|
static |
|
static |