1.1.0
CCC
 
NoStatArray Class Reference

#include <NoStatArray.hpp>

Inheritance diagram for NoStatArray:
ANoStat AStringable ICloneable

Public Member Functions

 NoStatArray ()
 
 NoStatArray (const VectorString &codes, const Db *dbnostat)
 
 NoStatArray (const NoStatArray &m)
 
NoStatArrayoperator= (const NoStatArray &m)
 
virtual ~NoStatArray ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 ICloneable interface. More...
 
double getValue (const EConsElem &type, int icas, int rank, int icov=0, int iv1=-1, int iv2=-1, int igrf=-1) const override
 
double getValueByParam (int ipar, int icas, int rank) const override
 
int attachToMesh (const AMesh *mesh, bool verbose=false) const override
 
void detachFromMesh () const override
 
int attachToDb (Db *db, int icas, bool verbose=false) const override
 
void detachFromDb (Db *db, int icas) const override
 
bool isEmpty (int icas) const
 
- Public Member Functions inherited from ANoStat
 ANoStat ()
 
 ANoStat (const VectorString &codes)
 
 ANoStat (const ANoStat &m)
 
ANoStatoperator= (const ANoStat &m)
 
virtual ~ANoStat ()
 
bool isNotEmpty () const
 
bool isDefinedByCov (int icov=-1, int igrf=-1) const
 
bool isDefinedByType (const EConsElem &type, int igrf=-1) const
 
bool isDefinedByCovType (const EConsElem &type, int icov=-1, int igrf=-1) const
 
bool isDefined (const EConsElem &type, int icov=0, int iv1=-1, int iv2=-1, int igrf=-1) const
 
bool isDefinedforAnisotropy (int icov=-1, int igrf=-1) const
 
bool isDefinedforRotation (int icov=-1, int igrf=-1) const
 
int manageInfo (int mode, Db *dbin, Db *dbout)
 
int addNoStatElem (int igrf, int icov, const EConsElem &type, int iv1, int iv2)
 
int addNoStatElemByItem (const CovParamId &item)
 
int addNoStatElems (const VectorString &codes)
 
void deleteNoStatElem (int ipar)
 
void deleteAllNoStatElem ()
 
int getRank (const EConsElem &type, int icov, int iv1=-1, int iv2=-1, int igrf=-1) const
 
int getIGrf (int ipar) const
 
int getICov (int ipar) const
 
const EConsElem & getType (int ipar) const
 
int getIV1 (int ipar) const
 
int getIV2 (int ipar) const
 
int getNoStatElemNumber () const
 
const std::vector< CovParamId > & getNoStats () const
 
const CovParamId getNoStat (int ipar) const
 
int attachModel (const Model *model)
 
bool matchIGrf (int ipar, int igrf0) const
 
bool matchICov (int ipar, int icov0) const
 
bool matchType (int ipar, const EConsElem &type0) const
 
bool matchIV1 (int ipar, int iv10) const
 
bool matchIV2 (int ipar, int iv20) const
 
const std::vector< CovParamId > & getAllItems () const
 
const CovParamId getItems (int ipar) const
 
bool getInfoFromDb (int ipar, int icas1, int iech1, int icas2, int iech2, double *val1, double *val2) 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
 
- Public Member Functions inherited from ICloneable
 ICloneable ()
 
virtual ~ICloneable ()
 
virtual ICloneableclone () const =0
 

Constructor & Destructor Documentation

NoStatArray::NoStatArray ( )
NoStatArray::NoStatArray ( const VectorString codes,
const Db dbnostat 
)
NoStatArray::NoStatArray ( const NoStatArray m)
NoStatArray::~NoStatArray ( )
virtual

Member Function Documentation

int NoStatArray::attachToDb ( Db db,
int  icas,
bool  verbose = false 
) const
overridevirtual

Attaching the current Non-Stationary parameters to the Db This function creates new fields set to the locator ELoc::NOSTAT. They will be deleted using the detachFromDb() method.

Parameters
dbDb where the new ELoc::NOSTAT fields must be added
icas1 for Dbin and 2 for Dbout
verboseVerbose flag
Returns

Reimplemented from ANoStat.

int NoStatArray::attachToMesh ( const AMesh mesh,
bool  verbose = false 
) const
overridevirtual

Reimplemented from ANoStat.

void NoStatArray::detachFromDb ( Db db,
int  icas 
) const
overridevirtual

Reimplemented from ANoStat.

void NoStatArray::detachFromMesh ( ) const
overridevirtual

Reimplemented from ANoStat.

double NoStatArray::getValue ( const EConsElem &  type,
int  icas,
int  rank,
int  icov = 0,
int  iv1 = -1,
int  iv2 = -1,
int  igrf = -1 
) const
overridevirtual

Returns the value of a non-stationary parameter at a target sample

Parameters
typeType of non-stationary element (EConsElem)
icasAdditional identifier (0 for Meshing; 1 for Dbin; 2 for Dbout)
rankRank of the target (in Meshing (0); in Dbin (1) or in Dbout (2)
icovRank of the Covariance
iv1Rank of the first variable (optional)
iv2Rank of the second variable (optional)
igrfRank of the GRF
Returns

Implements ANoStat.

double NoStatArray::getValueByParam ( int  ipar,
int  icas,
int  rank 
) const
overridevirtual

Return the value of the non-stationary parameter (ipar) at target (rank)

Parameters
iparRank of the non-stationary parameter
icasSource definition: 0 : from Meshing (rank: absolute rank to be converted into relative) 1 : from Dbin 2 : from Dbout
rankRank of the target
Returns

Implements ANoStat.

bool NoStatArray::isEmpty ( int  icas) const

Check if the non-stationary values defined or not

Parameters
icasType of information (0: meshing; 1: Dbin; 2: Dbout)
Returns
NoStatArray & NoStatArray::operator= ( const NoStatArray m)
String NoStatArray::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

ICloneable interface.

AStringable Interface

Reimplemented from ANoStat.


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