1.3.0
CCC
 
Indirection Class Reference

#include <Indirection.hpp>

Inheritance diagram for Indirection:
AStringable

Public Member Functions

 Indirection (int mode=0)
 
 ~Indirection ()
 
 Indirection (const Indirection &m)
 
Indirectionoperator= (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)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 

Constructor & Destructor Documentation

Indirection::Indirection ( int  mode = 0)
Indirection::~Indirection ( )
Indirection::Indirection ( const Indirection m)

Member Function Documentation

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

Parameters
selVector giving the status of all samples (Dimension: absolute)
int Indirection::getAbsSize ( ) const
inline
int Indirection::getAToR ( int  iabs) const
int Indirection::getMode ( ) const
inline
VectorInt Indirection::getRelRanks ( ) const
inline
int Indirection::getRelSize ( ) const
inline
int Indirection::getRToA ( int  irel) const
bool Indirection::isDefined ( ) const
inline
Indirection & Indirection::operator= ( const Indirection m)
void Indirection::setMode ( int  mode)
String Indirection::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

Interface to AStringable.

Reimplemented from AStringable.


The documentation for this class was generated from the following files: