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

Public Member Functions

MemArray< char > & accessToMemArray ()
 
const MemArray< char > & accessToMemArray () const
 
virtual DataArrayCharbuildEmptySpecializedDAChar () const =0
 
DataArrayIntconvertToIntArr () const
 
void fillWithZero ()
 
int findIdFirstEqual (char value) const
 
int findIdFirstEqual (const std::vector< char > &vals) const
 
int findIdFirstEqualTuple (const std::vector< char > &tupl) const
 
DataArrayIntfindIdsEqual (char val) const
 
int findIdSequence (const std::vector< char > &vals) const
 
DataArrayIntfindIdsInRange (char vmin, char vmax) const
 
DataArrayIntfindIdsNotEqual (char val) const
 
int getHashCode () const
 
void getTuple (int tupleId, char *res) const
 
template<class InputIterator >
void insertAtTheEnd (InputIterator first, InputIterator last)
 
bool isEqual (const DataArrayChar &other) const
 
virtual bool isEqualIfNotWhy (const DataArrayChar &other, std::string &reason) const
 
bool isEqualWithoutConsideringStr (const DataArrayChar &other) const
 
bool isUniform (char val) const
 
DataArrayCharkeepSelectedComponents (const std::vector< int > &compoIds) const
 
void meldWith (const DataArrayChar *other)
 
bool presenceOfTuple (const std::vector< char > &tupl) const
 
bool presenceOfValue (char value) const
 
bool presenceOfValue (const std::vector< char > &vals) const
 
std::string repr () const
 
std::string reprZip () const
 
DataArrayCharselectByTupleId (const int *new2OldBg, const int *new2OldEnd) const
 
DataArrayCharselectByTupleId (const DataArrayInt &di) const
 
DataArrayCharselectByTupleIdSafe (const int *new2OldBg, const int *new2OldEnd) const
 
DataArrayCharselectByTupleIdSafeSlice (int bg, int end2, int step) const
 
DataArrayselectByTupleRanges (const std::vector< std::pair< int, int > > &ranges) const
 
void updateTime () const
 
- Public Member Functions inherited from MEDCoupling::DataArrayTemplate< char >
void alloc (std::size_t nbOfTuple, std::size_t nbOfCompo=1)
 
void allocIfNecessary (int nbOfTuple, int nbOfCompo)
 
char back () const
 
const char * begin () const
 
Traits< char >::ArrayType * changeNbOfComponents (int newNbOfComp, chardftValue) const
 
void checkAllocated () const
 
void circularPermutation (int nbOfShift=1)
 
void circularPermutationPerTuple (int nbOfShift=1)
 
void deepCopyFrom (const DataArrayTemplate< char > &other)
 
void desallocate ()
 
bool empty () const
 
const char * end () const
 
std::vector< MCAuto< typename
Traits< char >::ArrayTypeCh > > 
explodeComponents () const
 
void fillWithValue (charval)
 
char front () const
 
const char * getConstPointer () const
 
std::size_t getHeapMemorySizeWithoutChildren () const
 
char getIJ (int tupleId, int compoId) const
 
char getIJSafe (int tupleId, int compoId) const
 
char getMaxValue (int &tupleId) const
 
char getMaxValueInArray () const
 
char getMinValue (int &tupleId) const
 
char getMinValueInArray () const
 
std::size_t getNbOfElemAllocated () const
 
std::size_t getNbOfElems () const
 
int getNumberOfTuples () const
 
char * getPointer ()
 
void * getVoidStarPointer ()
 
bool isAllocated () const
 
void pack () const
 
char popBackSilent ()
 
void pushBackSilent (charval)
 
void pushBackValsSilent (const char *valsBg, const char *valsEnd)
 
void reAlloc (std::size_t newNbOfTuple)
 
void rearrange (int newNbOfCompo)
 
Traits< char >::ArrayType * renumber (const int *old2New) const
 
Traits< char >::ArrayType * renumberAndReduce (const int *old2New, int newNbOfTuple) const
 
void renumberInPlace (const int *old2New)
 
void renumberInPlaceR (const int *new2Old)
 
Traits< char >::ArrayType * renumberR (const int *new2Old) const
 
void reserve (std::size_t nbOfElems)
 
void reverse ()
 
void reversePerTuple ()
 
MCAuto< typename Traits< char >
::ArrayTypeCh > 
selectPartDef (const PartDefinition *pd) const
 
void setContigPartOfSelectedValues (int tupleIdStart, const DataArray *aBase, const DataArrayInt *tuplesSelec)
 
void setContigPartOfSelectedValuesSlice (int tupleIdStart, const DataArray *aBase, int bg, int end2, int step)
 
void setIJ (int tupleId, int compoId, charnewVal)
 
void setIJSilent (int tupleId, int compoId, charnewVal)
 
void setPartOfValues1 (const typename Traits< char >::ArrayType *a, int bgTuples, int endTuples, int stepTuples, int bgComp, int endComp, int stepComp, bool strictCompoCompare=true)
 
void setPartOfValues2 (const typename Traits< char >::ArrayType *a, const int *bgTuples, const int *endTuples, const int *bgComp, const int *endComp, bool strictCompoCompare=true)
 
void setPartOfValues3 (const typename Traits< char >::ArrayType *a, const int *bgTuples, const int *endTuples, int bgComp, int endComp, int stepComp, bool strictCompoCompare=true)
 
void setPartOfValues4 (const typename Traits< char >::ArrayType *a, int bgTuples, int endTuples, int stepTuples, const int *bgComp, const int *endComp, bool strictCompoCompare=true)
 
void setPartOfValuesAdv (const typename Traits< char >::ArrayType *a, const DataArrayInt *tuplesSelec)
 
void setPartOfValuesSimple1 (chara, int bgTuples, int endTuples, int stepTuples, int bgComp, int endComp, int stepComp)
 
void setPartOfValuesSimple2 (chara, const int *bgTuples, const int *endTuples, const int *bgComp, const int *endComp)
 
void setPartOfValuesSimple3 (chara, const int *bgTuples, const int *endTuples, int bgComp, int endComp, int stepComp)
 
void setPartOfValuesSimple4 (chara, int bgTuples, int endTuples, int stepTuples, const int *bgComp, const int *endComp)
 
void sort (bool asc=true)
 
Traits< char >::ArrayType * subArray (int tupleIdBg, int tupleIdEnd=-1) const
 
void transpose ()
 
void useArray (const char *array, bool ownership, DeallocType type, int nbOfTuple, int nbOfCompo)
 
void useExternalArrayWithRWAccess (const char *array, int nbOfTuple, int nbOfCompo)
 
- Public Member Functions inherited from MEDCoupling::DataArray
bool areInfoEquals (const DataArray &other) const
 
bool areInfoEqualsIfNotWhy (const DataArray &other, std::string &reason) const
 
virtual DataArraybuildNewEmptyInstance () 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
 
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
 
std::vector< const
BigMemoryObject * > 
getDirectChildrenWithNull () const
 
std::string getInfoOnComponent (int i) const
 
const std::vector< std::string > & getInfoOnComponents () const
 
std::vector< std::string > & getInfoOnComponents ()
 
std::string getName () const
 
std::size_t getNumberOfComponents () const
 
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 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
 
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)
 

Static Public Member Functions

static DataArrayCharAggregate (const DataArrayChar *a1, const DataArrayChar *a2)
 
static DataArrayCharAggregate (const std::vector< const DataArrayChar * > &arr)
 
static DataArrayCharMeld (const DataArrayChar *a1, const DataArrayChar *a2)
 
static DataArrayCharMeld (const std::vector< const DataArrayChar * > &arr)
 
- Static Public Member Functions inherited from MEDCoupling::DataArrayTemplate< char >
static MCAuto< typename Traits
< char >::ArrayTypeCh > 
NewFromStdVector (const typename std::vector< char > &v)
 
- Static Public Member Functions inherited from MEDCoupling::DataArray
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

 DataArrayChar ()
 
- Protected Member Functions inherited from MEDCoupling::DataArrayTemplate< char >
Traits< char >::ArrayType * myKeepSelectedComponents (const std::vector< int > &compoIds) const
 
Traits< char >::ArrayType * mySelectByTupleId (const int *new2OldBg, const int *new2OldEnd) const
 
Traits< char >::ArrayType * mySelectByTupleId (const DataArrayInt &di) const
 
Traits< char >::ArrayType * mySelectByTupleIdSafe (const int *new2OldBg, const int *new2OldEnd) const
 
Traits< char >::ArrayType * mySelectByTupleIdSafeSlice (int bg, int end2, int step) const
 
Traits< char >::ArrayType * mySelectByTupleRanges (const std::vector< std::pair< int, int > > &ranges) const
 
- Protected Member Functions inherited from MEDCoupling::DataArray
 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 ()
 

Additional Inherited Members

- Static Protected Member Functions inherited from MEDCoupling::DataArray
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 inherited from MEDCoupling::DataArrayTemplate< char >
MemArray< char > _mem
 

Constructor & Destructor Documentation

MEDCoupling::DataArrayChar::DataArrayChar ( )
protected

Member Function Documentation

virtual DataArrayChar* MEDCoupling::DataArrayChar::buildEmptySpecializedDAChar ( ) const
pure virtual
int MEDCoupling::DataArrayChar::getHashCode ( ) const
bool MEDCoupling::DataArrayChar::isEqual ( const DataArrayChar other) const
virtual bool MEDCoupling::DataArrayChar::isEqualIfNotWhy ( const DataArrayChar other,
std::string &  reason 
) const
virtual
bool MEDCoupling::DataArrayChar::isEqualWithoutConsideringStr ( const DataArrayChar other) const
void MEDCoupling::DataArrayChar::fillWithZero ( )
std::string MEDCoupling::DataArrayChar::repr ( ) const
std::string MEDCoupling::DataArrayChar::reprZip ( ) const
DataArrayInt* MEDCoupling::DataArrayChar::convertToIntArr ( ) const
DataArrayChar* MEDCoupling::DataArrayChar::selectByTupleId ( const int *  new2OldBg,
const int *  new2OldEnd 
) const
virtual
DataArrayChar* MEDCoupling::DataArrayChar::selectByTupleId ( const DataArrayInt di) const
DataArrayChar* MEDCoupling::DataArrayChar::selectByTupleIdSafe ( const int *  new2OldBg,
const int *  new2OldEnd 
) const
virtual
DataArrayChar* MEDCoupling::DataArrayChar::keepSelectedComponents ( const std::vector< int > &  compoIds) const
virtual
DataArrayChar* MEDCoupling::DataArrayChar::selectByTupleIdSafeSlice ( int  bg,
int  end2,
int  step 
) const
virtual
bool MEDCoupling::DataArrayChar::isUniform ( char  val) const
void MEDCoupling::DataArrayChar::meldWith ( const DataArrayChar other)
DataArray* MEDCoupling::DataArrayChar::selectByTupleRanges ( const std::vector< std::pair< int, int > > &  ranges) const
virtual
void MEDCoupling::DataArrayChar::getTuple ( int  tupleId,
char *  res 
) const
DataArrayInt* MEDCoupling::DataArrayChar::findIdsEqual ( char  val) const
DataArrayInt* MEDCoupling::DataArrayChar::findIdsNotEqual ( char  val) const
int MEDCoupling::DataArrayChar::findIdSequence ( const std::vector< char > &  vals) const
int MEDCoupling::DataArrayChar::findIdFirstEqualTuple ( const std::vector< char > &  tupl) const
int MEDCoupling::DataArrayChar::findIdFirstEqual ( char  value) const
int MEDCoupling::DataArrayChar::findIdFirstEqual ( const std::vector< char > &  vals) const
bool MEDCoupling::DataArrayChar::presenceOfTuple ( const std::vector< char > &  tupl) const
bool MEDCoupling::DataArrayChar::presenceOfValue ( char  value) const
bool MEDCoupling::DataArrayChar::presenceOfValue ( const std::vector< char > &  vals) const
DataArrayInt* MEDCoupling::DataArrayChar::findIdsInRange ( char  vmin,
char  vmax 
) const
static DataArrayChar* MEDCoupling::DataArrayChar::Aggregate ( const DataArrayChar a1,
const DataArrayChar a2 
)
static
static DataArrayChar* MEDCoupling::DataArrayChar::Aggregate ( const std::vector< const DataArrayChar * > &  arr)
static
static DataArrayChar* MEDCoupling::DataArrayChar::Meld ( const DataArrayChar a1,
const DataArrayChar a2 
)
static
static DataArrayChar* MEDCoupling::DataArrayChar::Meld ( const std::vector< const DataArrayChar * > &  arr)
static
template<class InputIterator >
void MEDCoupling::DataArrayChar::insertAtTheEnd ( InputIterator  first,
InputIterator  last 
)
void MEDCoupling::DataArrayChar::updateTime ( ) const
virtual

This method should be called on high level classes as Field or Mesh to take into acount modifications done in aggregates objects.

Implements MEDCoupling::TimeLabel.

MemArray<char>& MEDCoupling::DataArrayChar::accessToMemArray ( )
const MemArray<char>& MEDCoupling::DataArrayChar::accessToMemArray ( ) const