Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
Single occurrence for a physical parameter in a variant model. More...
#include <bayeux/datatools/configuration/single_occurrence.h>
Public Member Functions | |
void | set_id (int) |
Set the intrinsic id. More... | |
int | get_id () const |
Return intrinsic id. More... | |
single_occurrence () | |
Constructor. More... | |
virtual | ~single_occurrence () |
Destructor. More... | |
virtual size_t | get_dimension () const |
Return the dimension. More... | |
virtual size_t | get_number_of_occurrences () const |
Return the number of occurrences. More... | |
virtual void | compute_occurrence (int rank_, single_occurrence &occ_) const |
Compute the occurrence associated to a given rank. More... | |
virtual size_t | compute_index_path (std::vector< uint32_t > &path_, int rank_) const |
Compute a multidimensional index path from a rank. More... | |
virtual std::string | to_string () const |
Convert to a string. More... | |
Public Member Functions inherited from datatools::configuration::i_occurrence | |
i_occurrence () | |
Constructor. More... | |
virtual | ~i_occurrence () |
Destructor. 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... | |
Additional Inherited Members | |
Static Public Attributes inherited from datatools::configuration::i_occurrence | |
static const int | INVALID_ID = -2 |
static const int | SINGLE_ID = -1 |
Single occurrence for a physical parameter in a variant model.
datatools::configuration::single_occurrence::single_occurrence | ( | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Compute a multidimensional index path from a rank.
Implements datatools::configuration::i_occurrence.
|
virtual |
Compute the occurrence associated to a given rank.
Implements datatools::configuration::i_occurrence.
|
virtual |
Return the dimension.
Implements datatools::configuration::i_occurrence.
int datatools::configuration::single_occurrence::get_id | ( | ) | const |
Return intrinsic id.
|
virtual |
Return the number of occurrences.
Implements datatools::configuration::i_occurrence.
void datatools::configuration::single_occurrence::set_id | ( | int | ) |
Set the intrinsic id.
|
virtual |
Convert to a string.
Implements datatools::configuration::i_occurrence.