Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MEDCoupling::DataArray Class Referenceabstract
Inheritance diagram for MEDCoupling::DataArray:
Collaboration diagram for MEDCoupling::DataArray:

Public Member Functions

virtual void alloc (std::size_t nbOfTuple, std::size_t nbOfCompo=1)=0
 
bool areInfoEquals (const DataArray &other) const
 
bool areInfoEqualsIfNotWhy (const DataArray &other, std::string &reason) const
 
virtual DataArraybuildNewEmptyInstance () const =0
 
virtual void checkAllocated () const =0
 
void checkNbOfComps (int nbOfCompo, const std::string &msg) const
 
void checkNbOfElems (std::size_t nbOfElems, const std::string &msg) const
 
void checkNbOfTuples (int nbOfTuples, const std::string &msg) const
 
void checkNbOfTuplesAndComp (const DataArray &other, const std::string &msg) const
 
void checkNbOfTuplesAndComp (int nbOfTuples, int nbOfCompo, const std::string &msg) const
 
virtual void circularPermutation (int nbOfShift=1)=0
 
virtual void circularPermutationPerTuple (int nbOfShift=1)=0
 
void copyPartOfStringInfoFrom (const DataArray &other, const std::vector< int > &compoIds)
 
void copyPartOfStringInfoFrom2 (const std::vector< int > &compoIds, const DataArray &other)
 
void copyStringInfoFrom (const DataArray &other)
 
std::string cppRepr (const std::string &varName) const
 
virtual DataArraydeepCopy () const =0
 
virtual void desallocate ()=0
 
std::vector< const
BigMemoryObject * > 
getDirectChildrenWithNull () const
 
std::size_t getHeapMemorySizeWithoutChildren () const
 
std::string getInfoOnComponent (int i) const
 
const std::vector< std::string > & getInfoOnComponents () const
 
std::vector< std::string > & getInfoOnComponents ()
 
std::string getName () const
 
virtual std::size_t getNbOfElemAllocated () const =0
 
virtual std::size_t getNbOfElems () const =0
 
std::size_t getNumberOfComponents () const
 
virtual int getNumberOfTuples () const =0
 
std::string getUnitOnComponent (int i) const
 
std::vector< std::string > getUnitsOnComponent () const
 
std::string getVarOnComponent (int i) const
 
std::vector< std::string > getVarsOnComponent () const
 
virtual void * getVoidStarPointer ()=0
 
virtual bool isAllocated () const =0
 
virtual DataArraykeepSelectedComponents (const std::vector< int > &compoIds) const =0
 
virtual void reAlloc (std::size_t newNbOfTuple)=0
 
virtual void rearrange (int newNbOfCompo)=0
 
virtual void renumberInPlace (const int *old2New)=0
 
virtual void renumberInPlaceR (const int *new2Old)=0
 
virtual void reprCppStream (const std::string &varName, std::ostream &stream) const =0
 
virtual void reprQuickOverview (std::ostream &stream) const =0
 
virtual void reprQuickOverviewData (std::ostream &stream, std::size_t maxNbOfByteInRepr) const =0
 
virtual void reprStream (std::ostream &stream) const =0
 
virtual void reprWithoutNameStream (std::ostream &stream) const
 
virtual void reprZipStream (std::ostream &stream) const =0
 
virtual void reprZipWithoutNameStream (std::ostream &stream) const =0
 
virtual void reversePerTuple ()=0
 
virtual DataArrayselectByTupleId (const int *new2OldBg, const int *new2OldEnd) const =0
 
virtual DataArrayselectByTupleIdSafe (const int *new2OldBg, const int *new2OldEnd) const =0
 
virtual DataArrayselectByTupleIdSafeSlice (int bg, int end2, int step) const =0
 
virtual DataArrayselectByTupleRanges (const std::vector< std::pair< int, int > > &ranges) const =0
 
virtual void setContigPartOfSelectedValues (int tupleIdStart, const DataArray *aBase, const DataArrayInt *tuplesSelec)=0
 
virtual void setContigPartOfSelectedValuesSlice (int tupleIdStart, const DataArray *aBase, int bg, int end2, int step)=0
 
void setInfoAndChangeNbOfCompo (const std::vector< std::string > &info)
 
void setInfoOnComponent (int i, const std::string &info)
 
void setInfoOnComponents (const std::vector< std::string > &info)
 
void setName (const std::string &name)
 
void setPartOfValuesBase3 (const DataArray *aBase, const int *bgTuples, const int *endTuples, int bgComp, int endComp, int stepComp, bool strictCompoCompare=true)
 
- Public Member Functions inherited from MEDCoupling::TimeLabel
void declareAsNew () const
 
std::size_t getTimeOfThis () const
 
TimeLabeloperator= (const TimeLabel &other)
 
virtual void updateTime () const =0
 

Static Public Member Functions

static DataArrayAggregate (const std::vector< const DataArray * > &arrs)
 
static std::string BuildInfoFromVarAndUnit (const std::string &var, const std::string &unit)
 
static std::string GetAxisTypeRepr (MEDCouplingAxisType at)
 
static int GetNumberOfItemGivenBES (int begin, int end, int step, const std::string &msg)
 
static int GetNumberOfItemGivenBESRelative (int begin, int end, int step, const std::string &msg)
 
static int GetPosOfItemGivenBESRelativeNoThrow (int value, int begin, int end, int step)
 
static void GetSlice (int start, int stop, int step, int sliceId, int nbOfSlices, int &startSlice, int &stopSlice)
 
static std::string GetUnitFromInfo (const std::string &info)
 
static std::string GetVarNameFromInfo (const std::string &info)
 

Protected Member Functions

 DataArray ()
 
 ~DataArray ()
 
- Protected Member Functions inherited from MEDCoupling::RefCountObject
 RefCountObject ()
 
 RefCountObject (const RefCountObject &other)
 
virtual ~RefCountObject ()
 
- Protected Member Functions inherited from MEDCoupling::RefCountObjectOnly
 RefCountObjectOnly ()
 
 RefCountObjectOnly (const RefCountObjectOnly &other)
 
virtual ~RefCountObjectOnly ()
 
- Protected Member Functions inherited from MEDCoupling::TimeLabel
void forceTimeOfThis (const TimeLabel &other) const
 
 TimeLabel ()
 
void updateTimeWith (const TimeLabel &other) const
 
virtual ~TimeLabel ()
 

Static Protected Member Functions

static void CheckClosingParInRange (int ref, int value, const std::string &msg)
 
static void CheckValueInRange (int ref, int value, const std::string &msg)
 
static void CheckValueInRangeEx (int value, int start, int end, const std::string &msg)
 
static int EffectiveCircPerm (int nbOfShift, int nbOfTuples)
 

Protected Attributes

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

Constructor & Destructor Documentation

MEDCoupling::DataArray::DataArray ( )
protected
MEDCoupling::DataArray::~DataArray ( )
protected

Member Function Documentation

std::vector< const BigMemoryObject * > DataArray::getDirectChildrenWithNull ( ) const
virtual
void DataArray::copyStringInfoFrom ( const DataArray other)

Copies textual data from an other DataArray. The copied data are

  • the name attribute,
  • the information of components.

For more information on these data see DataArrays infos.

Parameters
[in]other- another instance of DataArray to copy the textual data from.
Exceptions
Ifnumber of components of this array differs from that of the other.

References _info_on_compo, and _name.

Referenced by MEDCoupling::DataArrayDouble::accumulatePerChunck(), MEDCoupling::DataArrayInt::accumulatePerChunck(), MEDCoupling::DataArrayDouble::Add(), MEDCoupling::DataArrayInt::Add(), MEDCoupling::DataArrayDouble::Aggregate(), MEDCoupling::DataArrayInt::Aggregate(), MEDCoupling::DataArrayInt::AggregateIndexes(), MEDCoupling::DataArrayInt::buildUniqueNotSorted(), MEDCoupling::DataArrayDouble::cartesianize(), MEDCoupling::DataArrayDouble::computeAbs(), MEDCoupling::DataArrayInt::computeAbs(), MEDCoupling::MEDCouplingCurveLinearMesh::computeCellCenterOfMass(), MEDCoupling::MEDCouplingUMesh::computeCellCenterOfMass(), MEDCoupling::MEDCouplingUMesh::convertCellArrayPerGeoType(), MEDCoupling::DataArrayInt::convertToDblArr(), MEDCoupling::DataArrayDouble::convertToIntArr(), MEDCoupling::MEDCouplingCMesh::copyTinyStringsFrom(), MEDCoupling::MEDCouplingPointSet::copyTinyStringsFrom(), MEDCoupling::MEDCouplingTwoTimeSteps::copyTinyStringsFrom(), MEDCoupling::DataArrayDouble::CrossProduct(), MEDCoupling::DataArrayDouble::Divide(), MEDCoupling::DataArrayInt::Divide(), MEDCoupling::DataArrayDouble::duplicateEachTupleNTimes(), MEDCoupling::DataArrayInt::duplicateEachTupleNTimes(), MEDCoupling::DataArrayDouble::fromCartToCylGiven(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getLocalizationOfDiscValues(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::makeReduction(), MEDCoupling::DataArrayDouble::Max(), MEDCoupling::DataArrayDouble::Min(), MEDCoupling::DataArrayInt::Modulus(), MEDCoupling::DataArrayDouble::Multiply(), MEDCoupling::DataArrayInt::Multiply(), MEDCoupling::DataArrayDouble::negate(), MEDCoupling::DataArrayInt::negate(), MEDCoupling::MEDCoupling1SGTUMesh::renumberCells(), MEDCoupling::MEDCouplingUMesh::renumberCells(), MEDCoupling::MEDCoupling1DGTUMesh::renumberCells(), MEDCoupling::MEDCouplingPointSet::renumberNodesCenter(), MEDCoupling::MEDCouplingUMesh::splitProfilePerType(), MEDCoupling::DataArrayDouble::Substract(), MEDCoupling::DataArrayInt::Substract(), and MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::updateData().

void DataArray::copyPartOfStringInfoFrom ( const DataArray other,
const std::vector< int > &  compoIds 
)
bool DataArray::areInfoEqualsIfNotWhy ( const DataArray other,
std::string &  reason 
) const
bool DataArray::areInfoEquals ( const DataArray other) const

Compares textual information of this DataArray with that of an other one. The compared data are

  • the name attribute,
  • the information of components.

For more information on these data see DataArrays infos.

Parameters
[in]other- another instance of DataArray to compare the textual data of.
Returns
bool - true if the textual information is same, false else.

References areInfoEqualsIfNotWhy().

std::string DataArray::cppRepr ( const std::string &  varName) const

References reprCppStream().

std::vector<std::string>& MEDCoupling::DataArray::getInfoOnComponents ( )
void DataArray::setInfoOnComponents ( const std::vector< std::string > &  info)

Sets information on all components. To know more on format of this information see DataArrays infos.

Parameters
[in]info- a vector of strings.
Exceptions
Ifsize of info differs from the number of components of this.

References _info_on_compo, and getNumberOfComponents().

Referenced by MEDCoupling::DataArrayDouble::applyFuncOnThis(), MEDCoupling::MEDCouplingIMesh::computeCellCenterOfMass(), MEDCoupling::MEDCouplingIMesh::getCoordinatesAndOwner(), MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine(), and MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::setInfo().

void DataArray::setInfoAndChangeNbOfCompo ( const std::vector< std::string > &  info)

Sets information on all components. This method can change number of components at certain conditions; if the conditions are not respected, an exception is thrown. The number of components can be changed in this only if this is not allocated. The condition of number of components must not be changed.

To know more on format of the component information see DataArrays infos.

Parameters
[in]info- a vector of component infos.
Exceptions
Ifthis->getNumberOfComponents() != info.size() && this->isAllocated()

References _info_on_compo, getNumberOfComponents(), and isAllocated().

Referenced by MEDCoupling::MEDFileAnyTypeField1TS::BuildContentFrom(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::copyTinyInfoFrom(), MEDCoupling::MEDFileField1TSWithoutSDA::MEDFileField1TSWithoutSDA(), MEDCoupling::MEDFileIntField1TSWithoutSDA::MEDFileIntField1TSWithoutSDA(), and MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::updateData().

std::vector< std::string > DataArray::getVarsOnComponent ( ) const
std::vector< std::string > DataArray::getUnitsOnComponent ( ) const
std::string DataArray::getVarOnComponent ( int  i) const

Returns the var part of the full information of the i-th component. For example, if getInfoOnComponent(0) returns "SIGXY [N/m^2]", then getVarOnComponent(0) returns "SIGXY". If a unit part of information is not detected by presence of two square brackets, then the full information is returned. To read more about the component information format, see DataArrays infos.

Parameters
[in]i- the index (zero based) of the component of interest.
Returns
std::string - a string containing the var information, or the full info.
Exceptions
Ifi is not a valid component index.

References _info_on_compo, and GetVarNameFromInfo().

Referenced by getVarsOnComponent().

std::string DataArray::getUnitOnComponent ( int  i) const

Returns the unit part of the full information of the i-th component. For example, if getInfoOnComponent(0) returns "SIGXY [ N/m^2]", then getUnitOnComponent(0) returns " N/m^2". If a unit part of information is not detected by presence of two square brackets, then an empty string is returned. To read more about the component information format, see DataArrays infos.

Parameters
[in]i- the index (zero based) of the component of interest.
Returns
std::string - a string containing the unit information, if any, or "".
Exceptions
Ifi is not a valid component index.

References _info_on_compo, and GetUnitFromInfo().

Referenced by getUnitsOnComponent().

void DataArray::setInfoOnComponent ( int  i,
const std::string &  info 
)

Sets information on a component specified by an index. To know more on format of this information see DataArrays infos.

Warning
Don't pass NULL as info!
Parameters
[in]i- the index (zero based) of the component of interest.
[in]info- the string containing the information.
Exceptions
Ifi is not a valid component index.

References _info_on_compo.

Referenced by MEDCoupling::MEDCouplingCMesh::computeCellCenterOfMass(), MEDCoupling::MEDCouplingIMesh::convertToCartesian(), copyPartOfStringInfoFrom(), copyPartOfStringInfoFrom2(), MEDCoupling::DataArrayDouble::Dot(), MEDCoupling::DataArrayDouble::finishUnserialization(), MEDCoupling::DataArrayInt::finishUnserialization(), MEDCoupling::DataArrayDouble::fromCylToCart(), MEDCoupling::MEDCouplingCMesh::getCoordinatesAndOwner(), and MEDCoupling::MEDCouplingPointSet::unserialization().

std::size_t MEDCoupling::DataArray::getNumberOfComponents ( ) const

Referenced by MEDCoupling::DataArrayDouble::accumulate(), MEDCoupling::DataArrayInt::accumulate(), MEDCoupling::DataArrayDouble::accumulatePerChunck(), MEDCoupling::DataArrayInt::accumulatePerChunck(), MEDCoupling::DataArrayDouble::Add(), MEDCoupling::DataArrayInt::Add(), MEDCoupling::DataArrayDouble::addEqual(), MEDCoupling::DataArrayInt::addEqual(), MEDCoupling::DataArrayDouble::aggregate(), MEDCoupling::DataArrayInt::Aggregate(), MEDCoupling::DataArrayInt::aggregate(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::allocNotFromFile(), MEDCoupling::DataArrayDouble::applyFunc(), MEDCoupling::DataArrayDouble::applyFuncFast32(), MEDCoupling::DataArrayDouble::applyFuncFast64(), MEDCoupling::DataArrayDouble::applyFuncNamedCompo(), MEDCoupling::DataArrayDouble::applyFuncOnThis(), MEDCoupling::DataArrayDouble::applyInv(), MEDCoupling::DataArrayInt::applyInv(), MEDCoupling::DataArrayDouble::applyLin(), MEDCoupling::DataArrayInt::applyLin(), MEDCoupling::DataArrayInt::applyRModulus(), MEDCoupling::DataArrayInt::applyRPow(), MEDCoupling::MEDCouplingLinearTime::areCompatible(), MEDCoupling::DataArrayDouble::areIncludedInMe(), MEDCoupling::MEDCouplingLinearTime::areStrictlyCompatibleForDiv(), MEDCoupling::MEDCouplingAMRAttribute::buildCellFieldOnWithoutGhost(), MEDCoupling::DataArrayInt::buildComplement(), MEDCoupling::DataArrayDouble::buildEuclidianDistanceDenseMatrix(), MEDCoupling::DataArrayDouble::buildEuclidianDistanceDenseMatrixWith(), MEDCoupling::DataArrayInt::buildExplicitArrByRanges(), MEDCoupling::DataArrayInt::buildExplicitArrOfSliceOnScaledArr(), MEDCoupling::DataArrayInt::buildPermArrPerLevel(), MEDCoupling::DataArrayInt::buildPermutationArr(), MEDCoupling::DataArrayInt::buildSubstraction(), MEDCoupling::DataArrayInt::buildSubstractionOptimized(), MEDCoupling::DataArrayInt::buildUnique(), MEDCoupling::DataArrayInt::buildUniqueNotSorted(), MEDCoupling::DataArrayDouble::cartesianize(), MEDCoupling::DataArrayInt::changeSurjectiveFormat(), MEDCoupling::DataArrayInt::changeValue(), MEDCoupling::DataArrayInt::checkAllIdsInRange(), MEDCoupling::DataArrayInt::checkAndPreparePermutation(), MEDCoupling::MEDCouplingCMesh::checkConsistencyLight(), MEDCoupling::MEDCouplingUMesh::checkConsistencyLight(), MEDCoupling::MEDCouplingTwoTimeSteps::checkConsistencyLight(), MEDCoupling::MEDCoupling1SGTUMesh::checkConsistencyOfConnectivity(), MEDCoupling::MEDCoupling1DGTUMesh::checkConsistencyOfConnectivity(), checkNbOfComps(), checkNbOfTuplesAndComp(), MEDCoupling::MEDCoupling1GTUMesh::checkTypeConsistencyAndContig(), MEDCoupling::MEDCouplingStructuredMesh::checkTypeConsistencyAndContig(), MEDCoupling::MEDCouplingUMesh::checkTypeConsistencyAndContig(), MEDCoupling::DataArrayDouble::computeAbs(), MEDCoupling::DataArrayInt::computeAbs(), MEDCoupling::DataArrayDouble::computeBBoxPerTuple(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::computeEvaluationMatrixOnGivenPts(), MEDCoupling::DataArrayDouble::computeNbOfInteractionsWith(), MEDCoupling::DataArrayInt::computeOffsets(), MEDCoupling::DataArrayInt::computeOffsetsFull(), MEDCoupling::DataArrayDouble::computeTupleIdsNearTuples(), MEDCoupling::MEDCouplingIMesh::CondenseFineToCoarse(), MEDCoupling::MEDCouplingIMesh::CondenseFineToCoarseGhost(), MEDCoupling::MEDCouplingUMesh::convertCellArrayPerGeoType(), MEDCoupling::DataArrayInt::convertToDblArr(), MEDCoupling::DataArrayDouble::convertToIntArr(), copyPartOfStringInfoFrom(), copyPartOfStringInfoFrom2(), MEDCoupling::DataArrayDouble::count(), MEDCoupling::DataArrayInt::count(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::createCellFieldOnPatch(), MEDCoupling::DataArrayDouble::CrossProduct(), MEDCoupling::DataArrayDoubleIterator::DataArrayDoubleIterator(), MEDCoupling::DataArrayIntIterator::DataArrayIntIterator(), MEDCoupling::DataArrayTemplate< T >::deepCopyFrom(), MEDCoupling::DataArrayInt::deltaShiftIndex(), MEDCoupling::DataArrayDouble::determinant(), MEDCoupling::DataArrayDouble::deviator(), MEDCoupling::MEDCouplingUMesh::distanceToPoints(), MEDCoupling::DataArrayDouble::distanceToTuple(), MEDCoupling::DataArrayDouble::Divide(), MEDCoupling::DataArrayInt::Divide(), MEDCoupling::DataArrayDouble::divideEqual(), MEDCoupling::DataArrayInt::divideEqual(), MEDCoupling::DataArrayDouble::Dot(), MEDCoupling::DataArrayDouble::doublyContractedProduct(), MEDCoupling::DataArrayDouble::duplicateEachTupleNTimes(), MEDCoupling::DataArrayInt::duplicateEachTupleNTimes(), MEDCoupling::DataArrayDouble::eigenValues(), MEDCoupling::DataArrayDouble::eigenVectors(), MEDCoupling::MEDCouplingStructuredMesh::ExtractFieldOfDoubleFrom(), MEDCoupling::MEDCouplingUMesh::ExtractFromIndexedArrays(), MEDCoupling::MEDCouplingUMesh::ExtractFromIndexedArraysSlice(), MEDCoupling::DataArrayDouble::findClosestTupleId(), MEDCoupling::DataArrayDouble::findCommonTuples(), MEDCoupling::DataArrayInt::findIdFirstEqual(), MEDCoupling::DataArrayInt::findIdFirstEqualTuple(), MEDCoupling::DataArrayInt::findIdInRangeForEachTuple(), MEDCoupling::DataArrayInt::findIdsEqual(), MEDCoupling::DataArrayInt::findIdsEqualList(), MEDCoupling::DataArrayInt::findIdsEqualTuple(), MEDCoupling::DataArrayInt::findIdSequence(), MEDCoupling::DataArrayDouble::findIdsInRange(), MEDCoupling::DataArrayInt::findIdsInRange(), MEDCoupling::DataArrayInt::findIdsNotEqual(), MEDCoupling::DataArrayInt::findIdsNotEqualList(), MEDCoupling::DataArrayDouble::findIdsNotInRange(), MEDCoupling::DataArrayInt::findIdsNotInRange(), MEDCoupling::DataArrayInt::findIdsRangesInListOfIds(), MEDCoupling::DataArrayInt::findIdsStricltyNegative(), MEDCoupling::DataArrayInt::FindPermutationFromFirstToSecond(), MEDCoupling::DataArrayInt::findRangeIdForEachTuple(), MEDCoupling::DataArrayDouble::finishUnserialization(), MEDCoupling::DataArrayDouble::fromCartToCyl(), MEDCoupling::DataArrayDouble::fromCartToCylGiven(), MEDCoupling::DataArrayDouble::fromCartToPolar(), MEDCoupling::DataArrayDouble::fromCartToSpher(), MEDCoupling::DataArrayDouble::fromCylToCart(), MEDCoupling::DataArrayDouble::fromNoInterlace(), MEDCoupling::DataArrayInt::fromNoInterlace(), MEDCoupling::DataArrayDouble::fromPolarToCart(), MEDCoupling::DataArrayDouble::fromSpherToCart(), MEDCoupling::DataArrayDouble::getAverageValue(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getMeasureField(), MEDCoupling::DataArrayDouble::getMinMaxPerComponent(), MEDCoupling::DataArrayInt::getMinMaxValues(), MEDCoupling::MEDCoupling1GTUMesh::getNodalConnectivityLength(), MEDCoupling::MEDCouplingCMesh::getNodeGridStructure(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::getNumberOfComponents(), MEDCoupling::DataArrayTemplate< char >::getNumberOfTuples(), MEDCoupling::MEDCouplingFieldDiscretizationP0::getNumberOfTuplesExpectedRegardingCode(), MEDCoupling::MEDCouplingFieldDiscretizationOnNodes::getNumberOfTuplesExpectedRegardingCode(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getNumberOfTuplesExpectedRegardingCode(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::getNumberOfTuplesExpectedRegardingCode(), MEDCoupling::MEDCouplingPointSet::getSpaceDimension(), MEDCoupling::MEDFileUMesh::getSpaceDimension(), MEDCoupling::DataArrayDouble::getTinySerializationIntInformation(), MEDCoupling::MEDCouplingTwoTimeSteps::getTinySerializationIntInformation(), MEDCoupling::DataArrayInt::getTinySerializationIntInformation(), MEDCoupling::DataArrayDouble::getTinySerializationStrInformation(), MEDCoupling::DataArrayInt::getTinySerializationStrInformation(), MEDCoupling::MEDCouplingFieldDiscretizationP1::getValueInCell(), MEDCoupling::MEDCouplingFieldDiscretizationP0::getValueOnMulti(), MEDCoupling::MEDCouplingFieldDiscretizationP1::getValueOnMulti(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::getValueOnMulti(), MEDCoupling::DataArrayInt::hasUniqueValues(), MEDCoupling::DataArrayInt::indicesOfSubPart(), MEDCoupling::DataArrayDouble::insertAtTheEnd(), MEDCoupling::DataArrayInt::insertAtTheEnd(), MEDCoupling::DataArrayChar::insertAtTheEnd(), MEDCoupling::MEDCouplingFieldDiscretization::integral(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::integral(), MEDCoupling::DataArrayDouble::inverse(), MEDCoupling::DataArrayDouble::iota(), MEDCoupling::DataArrayInt::iota(), MEDCoupling::DataArrayInt::isFittingWith(), MEDCoupling::DataArrayInt::isIota(), MEDCoupling::DataArrayDouble::isMonotonic(), MEDCoupling::DataArrayInt::isMonotonic(), MEDCoupling::DataArrayInt::isRange(), MEDCoupling::DataArrayInt::isStrictlyMonotonic(), MEDCoupling::DataArrayDouble::isUniform(), MEDCoupling::DataArrayInt::isUniform(), MEDCoupling::MEDCouplingGaussLocalization::localizePtsInRefCooForEachCell(), MEDCoupling::DataArrayDouble::magnitude(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::makeReduction(), MEDCoupling::DataArrayDouble::Max(), MEDCoupling::DataArrayDouble::maxPerTuple(), MEDCoupling::DataArrayDouble::maxPerTupleWithCompoId(), MEDCoupling::DataArrayDouble::meldWith(), MEDCoupling::DataArrayInt::meldWith(), MEDCoupling::MEDCoupling1DGTUMesh::Merge1DGTUMeshes(), MEDCoupling::MEDCoupling1SGTUMesh::Merge1SGTUMeshes(), MEDCoupling::MEDCouplingUMesh::MergeUMeshes(), MEDCoupling::DataArrayDouble::Min(), MEDCoupling::DataArrayDouble::minimalDistanceTo(), MEDCoupling::DataArrayInt::Modulus(), MEDCoupling::DataArrayInt::modulusEqual(), MEDCoupling::DataArrayDouble::Multiply(), MEDCoupling::DataArrayInt::Multiply(), MEDCoupling::DataArrayDouble::multiplyEqual(), MEDCoupling::DataArrayInt::multiplyEqual(), MEDCoupling::MEDCouplingStructuredMesh::MultiplyPartOf(), MEDCoupling::DataArrayDouble::negate(), MEDCoupling::DataArrayInt::negate(), MEDCoupling::MEDCouplingFieldDiscretization::normL1(), MEDCoupling::MEDCouplingFieldDiscretization::normL2(), MEDCoupling::DataArrayInt::partitionByDifferentValues(), MEDCoupling::MEDCouplingUMesh::PartitionBySpreadZone(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::performDrift(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::PerformDriftOfVec(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::PerformDriftRect(), MEDCoupling::DataArrayDouble::Pow(), MEDCoupling::DataArrayInt::Pow(), MEDCoupling::DataArrayDouble::powEqual(), MEDCoupling::DataArrayInt::powEqual(), MEDCoupling::DataArrayDouble::recenterForMaxPrecision(), MEDCoupling::MEDCouplingUMesh::renumberCells(), MEDCoupling::MEDCouplingFieldDiscretization::RenumberEntitiesFromN2OArr(), MEDCoupling::MEDCouplingFieldDiscretization::RenumberEntitiesFromO2NArr(), MEDCoupling::DataArrayDouble::reprCppStream(), MEDCoupling::DataArrayInt::reprCppStream(), MEDCoupling::DataArrayDouble::reprNotTooLongWithoutNameStream(), MEDCoupling::DataArrayInt::reprNotTooLongWithoutNameStream(), MEDCoupling::MEDCouplingCurveLinearMesh::reprQuickOverview(), MEDCoupling::MEDCouplingCMesh::reprQuickOverview(), MEDCoupling::MEDCouplingUMesh::reprQuickOverview(), MEDCoupling::MEDCoupling1SGTUMesh::reprQuickOverview(), MEDCoupling::MEDCoupling1DGTUMesh::reprQuickOverview(), reprWithoutNameStream(), MEDCoupling::DataArrayDouble::reprWithoutNameStream(), MEDCoupling::DataArrayInt::reprWithoutNameStream(), MEDCoupling::DataArrayDouble::reprZipWithoutNameStream(), MEDCoupling::DataArrayInt::reprZipWithoutNameStream(), MEDCoupling::DataArrayTemplate< T >::setContigPartOfSelectedValues(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::setFieldProfile(), setInfoAndChangeNbOfCompo(), setInfoOnComponents(), MEDCoupling::DataArrayTemplate< T >::setPartOfValuesAdv(), MEDCoupling::DataArrayDouble::setSelectedComponents(), MEDCoupling::DataArrayInt::setSelectedComponents(), MEDCoupling::MEDFileUMesh::simpleRepr(), MEDCoupling::DataArrayInt::sortEachPairToMakeALinkedList(), MEDCoupling::DataArrayDouble::sortPerTuple(), MEDCoupling::DataArrayInt::splitByValueRange(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::splitComponents(), MEDCoupling::DataArrayInt::splitInBalancedSlices(), MEDCoupling::MEDCoupling1GTUMesh::splitProfilePerType(), MEDCoupling::MEDCouplingStructuredMesh::splitProfilePerType(), MEDCoupling::MEDCouplingUMesh::splitProfilePerType(), MEDCoupling::MEDCouplingIMesh::SpreadCoarseToFine(), MEDCoupling::MEDCouplingIMesh::SpreadCoarseToFineGhost(), MEDCoupling::MEDCouplingIMesh::SpreadCoarseToFineGhostZone(), MEDCoupling::DataArrayDouble::Substract(), MEDCoupling::DataArrayInt::Substract(), MEDCoupling::DataArrayDouble::substractEqual(), MEDCoupling::DataArrayInt::substractEqual(), MEDCoupling::DataArrayDouble::sumPerTuple(), MEDCoupling::DataArrayInt::sumPerTuple(), MEDCoupling::DataArrayInt::switchOnTupleEqualTo(), MEDCoupling::DataArrayInt::switchOnTupleNotEqualTo(), MEDCoupling::DataArrayDouble::symmetry3DPlane(), MEDCoupling::DataArrayDouble::toNoInterlace(), MEDCoupling::DataArrayInt::toNoInterlace(), MEDCoupling::DataArrayDouble::toVectorOfBool(), MEDCoupling::DataArrayDouble::trace(), MEDCoupling::DataArrayInt::transformWithIndArr(), MEDCoupling::DataArrayInt::transformWithIndArrR(), MEDCoupling::DataArrayDouble::writeVTK(), and MEDCoupling::DataArrayInt::writeVTK().

void DataArray::setPartOfValuesBase3 ( const DataArray aBase,
const int *  bgTuples,
const int *  endTuples,
int  bgComp,
int  endComp,
int  stepComp,
bool  strictCompoCompare = true 
)

This method is only a dispatcher towards DataArrayDouble::setPartOfValues3, DataArrayInt::setPartOfValues3, DataArrayChar::setPartOfValues3 depending on the true type of this and aBase.

Exceptions
IfaBase and this do not have the same type.
See Also
DataArrayDouble::setPartOfValues3, DataArrayInt::setPartOfValues3, DataArrayChar::setPartOfValues3.

References MEDCoupling::DataArrayTemplate< T >::setPartOfValues3().

virtual void* MEDCoupling::DataArray::getVoidStarPointer ( )
pure virtual
virtual DataArray* MEDCoupling::DataArray::deepCopy ( ) const
pure virtual
virtual DataArray* MEDCoupling::DataArray::buildNewEmptyInstance ( ) const
pure virtual
virtual void MEDCoupling::DataArray::checkAllocated ( ) const
pure virtual
virtual std::size_t MEDCoupling::DataArray::getNbOfElems ( ) const
pure virtual
virtual std::size_t MEDCoupling::DataArray::getNbOfElemAllocated ( ) const
pure virtual
virtual void MEDCoupling::DataArray::renumberInPlace ( const int *  old2New)
pure virtual
virtual void MEDCoupling::DataArray::renumberInPlaceR ( const int *  new2Old)
pure virtual
virtual void MEDCoupling::DataArray::setContigPartOfSelectedValues ( int  tupleIdStart,
const DataArray aBase,
const DataArrayInt tuplesSelec 
)
pure virtual
virtual void MEDCoupling::DataArray::setContigPartOfSelectedValuesSlice ( int  tupleIdStart,
const DataArray aBase,
int  bg,
int  end2,
int  step 
)
pure virtual
virtual DataArray* MEDCoupling::DataArray::selectByTupleRanges ( const std::vector< std::pair< int, int > > &  ranges) const
pure virtual
virtual DataArray* MEDCoupling::DataArray::keepSelectedComponents ( const std::vector< int > &  compoIds) const
pure virtual
virtual DataArray* MEDCoupling::DataArray::selectByTupleId ( const int *  new2OldBg,
const int *  new2OldEnd 
) const
pure virtual
virtual DataArray* MEDCoupling::DataArray::selectByTupleIdSafe ( const int *  new2OldBg,
const int *  new2OldEnd 
) const
pure virtual
virtual DataArray* MEDCoupling::DataArray::selectByTupleIdSafeSlice ( int  bg,
int  end2,
int  step 
) const
pure virtual
virtual void MEDCoupling::DataArray::rearrange ( int  newNbOfCompo)
pure virtual
virtual void MEDCoupling::DataArray::circularPermutation ( int  nbOfShift = 1)
pure virtual
virtual void MEDCoupling::DataArray::circularPermutationPerTuple ( int  nbOfShift = 1)
pure virtual
void DataArray::checkNbOfTuplesAndComp ( int  nbOfTuples,
int  nbOfCompo,
const std::string &  msg 
) const
void DataArray::checkNbOfElems ( std::size_t  nbOfElems,
const std::string &  msg 
) const

References getNbOfElems().

void DataArray::GetSlice ( int  start,
int  stop,
int  step,
int  sliceId,
int  nbOfSlices,
int &  startSlice,
int &  stopSlice 
)
static

This method is useful to slice work among a pool of threads or processes. begin, end step is the input whole slice of work to perform, typically it is a whole slice of tuples of DataArray or cells, nodes of a mesh...

The input sliceId should be an id in [0, nbOfSlices) that specifies the slice of work.

Parameters
[in]start- the start of the input slice of the whole work to perform splitted into slices.
[in]stop- the stop of the input slice of the whole work to perform splitted into slices.
[in]step- the step (that can be <0) of the input slice of the whole work to perform splitted into slices.
[in]sliceId- the slice id considered
[in]nbOfSlices- the number of slices (typically the number of cores on which the work is expected to be sliced)
[out]startSlice- the start of the slice considered
[out]stopSlice- the stop of the slice consided
Exceptions
Ifstep == 0
IfnbOfSlices not > 0
IfsliceId not in [0,nbOfSlices)

References GetNumberOfItemGivenBESRelative().

int DataArray::GetPosOfItemGivenBESRelativeNoThrow ( int  value,
int  begin,
int  end,
int  step 
)
static
std::string DataArray::GetVarNameFromInfo ( const std::string &  info)
static

Returns the var part of the full component information. For example, if info == "SIGXY [N/m^2]", then this method returns "SIGXY". If a unit part of information is not detected by presence of two square brackets, then the whole info is returned. To read more about the component information format, see DataArrays infos.

Parameters
[in]info- the full component information.
Returns
std::string - a string containing only var information, or the info.

Referenced by getVarOnComponent().

std::string DataArray::GetUnitFromInfo ( const std::string &  info)
static

Returns the unit part of the full component information. For example, if info == "SIGXY [ N/m^2]", then this method returns " N/m^2". If a unit part of information is not detected by presence of two square brackets, then an empty string is returned. To read more about the component information format, see DataArrays infos.

Parameters
[in]info- the full component information.
Returns
std::string - a string containing only unit information, if any, or "".

Referenced by getUnitOnComponent().

std::string DataArray::BuildInfoFromVarAndUnit ( const std::string &  var,
const std::string &  unit 
)
static

This method put in info format the result of the merge of var and unit. The standard format for that is "var [unit]". Inversely you can retrieve the var part or the unit part of info string using resp. GetVarNameFromInfo and GetUnitFromInfo.

std::string DataArray::GetAxisTypeRepr ( MEDCouplingAxisType  at)
static
DataArray * DataArray::Aggregate ( const std::vector< const DataArray * > &  arrs)
static

Returns a new DataArray by concatenating all given arrays, so that (1) the number of tuples in the result array is a sum of the number of tuples of given arrays and (2) the number of component in the result array is same as that of each of given arrays. Info on components is copied from the first of the given arrays. Number of components in the given arrays must be the same.

Parameters
[in]arrs- a sequence of arrays to include in the result array. All arrays must have the same type.
Returns
DataArray * - the new instance of DataArray (that can be either DataArrayInt, DataArrayDouble, DataArrayChar). The caller is to delete this result array using decrRef() as it is no more needed.
Exceptions
Ifall arrays within arrs are NULL.
Ifall not null arrays in arrs have not the same type.
IfgetNumberOfComponents() of arrays within arrs.

References MEDCoupling::DataArrayDouble::Aggregate(), MEDCoupling::DataArrayInt::Aggregate(), and MEDCoupling::DataArrayChar::Aggregate().

virtual void MEDCoupling::DataArray::reprStream ( std::ostream &  stream) const
pure virtual
virtual void MEDCoupling::DataArray::reprZipStream ( std::ostream &  stream) const
pure virtual
virtual void MEDCoupling::DataArray::reprZipWithoutNameStream ( std::ostream &  stream) const
pure virtual
virtual void MEDCoupling::DataArray::reprCppStream ( const std::string &  varName,
std::ostream &  stream 
) const
pure virtual
virtual void MEDCoupling::DataArray::reprQuickOverview ( std::ostream &  stream) const
pure virtual
virtual void MEDCoupling::DataArray::reprQuickOverviewData ( std::ostream &  stream,
std::size_t  maxNbOfByteInRepr 
) const
pure virtual
void DataArray::CheckValueInRangeEx ( int  value,
int  start,
int  end,
const std::string &  msg 
)
staticprotected
void DataArray::CheckClosingParInRange ( int  ref,
int  value,
const std::string &  msg 
)
staticprotected
int DataArray::EffectiveCircPerm ( int  nbOfShift,
int  nbOfTuples 
)
staticprotected

Member Data Documentation