#include <Indirection.hpp>
Public Member Functions | |
Indirection (int mode=0) | |
~Indirection () | |
Indirection (const Indirection &m) | |
Indirection & | operator= (const Indirection &m) |
virtual String | toString (const AStringFormat *strfmt=nullptr) const override |
Interface to AStringable. More... | |
void | buildFromSel (const VectorDouble &sel) |
void | buildFromRankRInA (const VectorInt &rels, int nabs) |
void | buildFromMap (const std::map< int, int > &map, int nabs) |
int | getAToR (int iabs) const |
int | getRToA (int irel) const |
int | getAbsSize () const |
int | getRelSize () const |
void | setMode (int mode) |
bool | isDefined () const |
VectorInt | getRelRanks () const |
int | getMode () const |
Public Member Functions inherited from AStringable | |
AStringable () | |
AStringable (const AStringable &r) | |
AStringable & | operator= (const AStringable &r) |
virtual | ~AStringable () |
virtual void | display (const AStringFormat *strfmt=nullptr) const final |
virtual void | display (int level) const final |
Indirection::Indirection | ( | int | mode = 0 | ) |
Indirection::~Indirection | ( | ) |
Indirection::Indirection | ( | const Indirection & | m | ) |
void Indirection::buildFromMap | ( | const std::map< int, int > & | map, |
int | nabs | ||
) |
void Indirection::buildFromRankRInA | ( | const VectorInt & | rels, |
int | nabs | ||
) |
void Indirection::buildFromSel | ( | const VectorDouble & | sel | ) |
Build the needed information from Selection array A sample is active if its 'sel' value is equal to 1
sel | Vector giving the status of all samples (Dimension: absolute) |
|
inline |
int Indirection::getAToR | ( | int | iabs | ) | const |
|
inline |
|
inline |
|
inline |
int Indirection::getRToA | ( | int | irel | ) | const |
|
inline |
Indirection & Indirection::operator= | ( | const Indirection & | m | ) |
void Indirection::setMode | ( | int | mode | ) |
|
overridevirtual |
Interface to AStringable.
Reimplemented from AStringable.