Version: 5.1.6

ParaMEDMEM.DataArray Class Reference

#include <MEDCouplingMemArray.hxx>

Inheritance diagram for ParaMEDMEM.DataArray:
Inheritance graph

Public Member Functions

void setName (const char *name)
void copyStringInfoFrom (const DataArray &other) throw (INTERP_KERNEL::Exception)
void copyPartOfStringInfoFrom (const DataArray &other, const std::vector< int > &compoIds) throw (INTERP_KERNEL::Exception)
void copyPartOfStringInfoFrom2 (const std::vector< int > &compoIds, const DataArray &other) throw (INTERP_KERNEL::Exception)
bool areInfoEquals (const DataArray &other) const
void reprWithoutNameStream (std::ostream &stream) const
std::string getName () const
const std::vector< std::string > & getInfoOnComponent () const
std::vector< std::string > getVarsOnComponent () const
std::vector< std::string > getUnitsOnComponent () const
std::string getInfoOnComponent (int i) const throw (INTERP_KERNEL::Exception)
std::string getVarOnComponent (int i) const throw (INTERP_KERNEL::Exception)
std::string getUnitOnComponent (int i) const throw (INTERP_KERNEL::Exception)
void setInfoOnComponent (int i, const char *info) throw (INTERP_KERNEL::Exception)
int getNumberOfComponents () const
int getNumberOfTuples () const
int getNbOfElems () const
void checkNbOfTuplesAndComp (const DataArray &other, const char *msg) const throw (INTERP_KERNEL::Exception)
void checkNbOfTuplesAndComp (int nbOfTuples, int nbOfCompo, const char *msg) const throw (INTERP_KERNEL::Exception)
void checkNbOfElems (int nbOfElems, const char *msg) const throw (INTERP_KERNEL::Exception)
 DataArray ()

Static Public Member Functions

static void CheckValueInRange (int ref, int value, const char *msg) throw (INTERP_KERNEL::Exception)
static void CheckClosingParInRange (int ref, int value, const char *msg) throw (INTERP_KERNEL::Exception)
static int GetNumberOfItemGivenBES (int begin, int end, int step, const char *msg) throw (INTERP_KERNEL::Exception)

Data Fields

int _nb_of_tuples
std::string _name
std::vector< std::string > _info_on_compo

Constructor & Destructor Documentation

ParaMEDMEM.DataArray.DataArray (  ) 

Member Function Documentation

void DataArray::setName ( const char *  name  ) 
void DataArray::copyStringInfoFrom ( const DataArray other  )  throw (INTERP_KERNEL::Exception)
void DataArray::copyPartOfStringInfoFrom ( const DataArray other,
const std::vector< int > &  compoIds 
) throw (INTERP_KERNEL::Exception)
void DataArray::copyPartOfStringInfoFrom2 ( const std::vector< int > &  compoIds,
const DataArray other 
) throw (INTERP_KERNEL::Exception)
bool DataArray::areInfoEquals ( const DataArray other  )  const
void DataArray::reprWithoutNameStream ( std::ostream &  stream  )  const
std::string ParaMEDMEM.DataArray.getName (  )  const
const std::vector<std::string>& ParaMEDMEM.DataArray.getInfoOnComponent (  )  const
std::vector< std::string > DataArray::getVarsOnComponent (  )  const
std::vector< std::string > DataArray::getUnitsOnComponent (  )  const
std::string DataArray::getInfoOnComponent ( int  i  )  const throw (INTERP_KERNEL::Exception)
std::string DataArray::getVarOnComponent ( int  i  )  const throw (INTERP_KERNEL::Exception)

In the info part of i_th component this method returns the var part. For example, if getInfoOnComponent(0) return "SIGXY (N/m^2)", getVarOnComponent(0) will return "SIGXY"

References testGaussLocalization.p1, and testGaussLocalization.p2.

std::string DataArray::getUnitOnComponent ( int  i  )  const throw (INTERP_KERNEL::Exception)

In the info part of i_th component this method returns the var part. For example, if getInfoOnComponent(0) return "SIGXY (N/m^2)", getUnitOnComponent(0) will return "N/m^2"

References testGaussLocalization.p1, and testGaussLocalization.p2.

void DataArray::setInfoOnComponent ( int  i,
const char *  info 
) throw (INTERP_KERNEL::Exception)
int ParaMEDMEM.DataArray.getNumberOfComponents (  )  const
int ParaMEDMEM.DataArray.getNumberOfTuples (  )  const
int ParaMEDMEM.DataArray.getNbOfElems (  )  const
void DataArray::checkNbOfTuplesAndComp ( const DataArray other,
const char *  msg 
) const throw (INTERP_KERNEL::Exception)

References medcorba_test.msg.

void DataArray::checkNbOfTuplesAndComp ( int  nbOfTuples,
int  nbOfCompo,
const char *  msg 
) const throw (INTERP_KERNEL::Exception)

References medcorba_test.msg.

void DataArray::checkNbOfElems ( int  nbOfElems,
const char *  msg 
) const throw (INTERP_KERNEL::Exception)

References medcorba_test.msg.

void DataArray::CheckValueInRange ( int  ref,
int  value,
const char *  msg 
) throw (INTERP_KERNEL::Exception) [static]
void DataArray::CheckClosingParInRange ( int  ref,
int  value,
const char *  msg 
) throw (INTERP_KERNEL::Exception) [static]
int DataArray::GetNumberOfItemGivenBES ( int  begin,
int  end,
int  step,
const char *  msg 
) throw (INTERP_KERNEL::Exception) [static]

Field Documentation

std::vector<std::string> ParaMEDMEM.DataArray._info_on_compo