Back to index

salome-med  6.5.0
Classes | Namespaces | Functions
MEDPARTITIONER_Utils.hxx File Reference
#include "MEDPARTITIONER.hxx"
#include "MEDCouplingUMesh.hxx"
#include <string>
#include <vector>
#include <map>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

protocol  MEDPARTITIONER::MEDPARTITIONER_EXPORT
 Communication helper in parallel mode. More...

Namespaces

namespace  MEDPARTITIONER

Functions

MEDPARTITIONER_EXPORT std::string MEDPARTITIONER::Trim (const std::string &s, const std::string &drop)
MEDPARTITIONER_EXPORT std::string MEDPARTITIONER::IntToStr (const int i)
MEDPARTITIONER_EXPORT std::string MEDPARTITIONER::DoubleToStr (const double i)
MEDPARTITIONER_EXPORT int MEDPARTITIONER::StrToInt (const std::string &s)
MEDPARTITIONER_EXPORT double MEDPARTITIONER::StrToDouble (const std::string &s)
MEDPARTITIONER_EXPORT bool MEDPARTITIONER::TestArg (const char *arg, const char *argExpected, std::string &argValue)
MEDPARTITIONER_EXPORT
std::vector< int > 
MEDPARTITIONER::CreateRandomSize (const int size)
MEDPARTITIONER_EXPORT void MEDPARTITIONER::RandomizeAdj (int *xadj, int *adjncy, std::vector< int > &ran, std::vector< int > &vx, std::vector< int > &va)
 randomize a xadj and adjncy, renumbering vertices belong rand.
MEDPARTITIONER_EXPORT void MEDPARTITIONER::TestRandomize ()
MEDPARTITIONER_EXPORT std::string MEDPARTITIONER::ReprVectorOfString (const std::vector< std::string > &vec)
MEDPARTITIONER_EXPORT std::string MEDPARTITIONER::ReprVectorOfString (const std::vector< std::string > &vec, const std::string separator)
MEDPARTITIONER_EXPORT std::string MEDPARTITIONER::ReprMapOfStringInt (const std::map< std::string, int > &mymap)
MEDPARTITIONER_EXPORT std::string MEDPARTITIONER::ReprMapOfStringVectorOfString (const std::map< std::string, std::vector< std::string > > &mymap)
MEDPARTITIONER_EXPORT std::string MEDPARTITIONER::ReprFieldDescriptions (const std::vector< std::string > &vec, const std::string separator)
MEDPARTITIONER_EXPORT std::string MEDPARTITIONER::SerializeFromString (const std::string &s)
 a string "hello" gives a string " 5/hello/" serialized_FromVectorOfString_string+SerializeFromString("toto") is equivalent to vector<string>.push_back("toto") on serialized_FromVectorOfString_string
MEDPARTITIONER_EXPORT std::string MEDPARTITIONER::SerializeFromVectorOfString (const std::vector< std::string > &vec)
 a vector of string gives a string
MEDPARTITIONER_EXPORT
std::vector< std::string > 
MEDPARTITIONER::DeserializeToVectorOfString (const std::string &str)
 a string gives a vector of string
MEDPARTITIONER_EXPORT std::string MEDPARTITIONER::EraseTagSerialized (const std::string &fromStr, const std::string &tag)
MEDPARTITIONER_EXPORT
std::vector< std::string > 
MEDPARTITIONER::VectorizeFromMapOfStringInt (const std::map< std::string, int > &mymap)
 elements first and second of map give one elements in result vector of string converting formatted the int second as firsts characters ending at first slash
MEDPARTITIONER_EXPORT std::map
< std::string, int > 
MEDPARTITIONER::DevectorizeToMapOfStringInt (const std::vector< std::string > &vec)
MEDPARTITIONER_EXPORT
std::vector< std::string > 
MEDPARTITIONER::VectorizeFromMapOfStringVectorOfString (const std::map< std::string, std::vector< std::string > > &mymap)
 elements first and second of map give one elements in result vector of string adding key map and length of second vector as first string in each serialized vector one serialized vector per key map
MEDPARTITIONER_EXPORT std::map
< std::string, std::vector
< std::string > > 
MEDPARTITIONER::DevectorizeToMapOfStringVectorOfString (const std::vector< std::string > &vec)
 if existing identicals keymap in vector no problem duplicates in second vector
MEDPARTITIONER_EXPORT
std::vector< std::string > 
MEDPARTITIONER::SelectTagsInVectorOfString (const std::vector< std::string > &vec, const std::string tag)
 shit for unique and unique_copy for the duplicate CONSECUTIVE elements I do not want to sort
MEDPARTITIONER_EXPORT
std::vector< std::string > 
MEDPARTITIONER::DeleteDuplicatesInVectorOfString (const std::vector< std::string > &vec)
MEDPARTITIONER_EXPORT std::map
< std::string, std::vector
< std::string > > 
MEDPARTITIONER::DeleteDuplicatesInMapOfStringVectorOfString (const std::map< std::string, std::vector< std::string > > &mymap)
MEDPARTITIONER_EXPORT std::string MEDPARTITIONER::Cle1ToStr (const std::string &s, const int inew)
MEDPARTITIONER_EXPORT void MEDPARTITIONER::Cle1ToData (const std::string &cle, std::string &s, int &inew)
MEDPARTITIONER_EXPORT std::string MEDPARTITIONER::Cle2ToStr (const std::string &s, const int inew, const int iold)
MEDPARTITIONER_EXPORT void MEDPARTITIONER::Cle2ToData (const std::string &cle, std::string &s, int &inew, int &iold)
MEDPARTITIONER_EXPORT std::string MEDPARTITIONER::ExtractFromDescription (const std::string &description, const std::string &tag)
MEDPARTITIONER_EXPORT void MEDPARTITIONER::FieldDescriptionToData (const std::string &description, int &idomain, std::string &fileName, std::string &meshName, std::string &fieldName, int &typeField, int &DT, int &IT)
MEDPARTITIONER_EXPORT void MEDPARTITIONER::FieldShortDescriptionToData (const std::string &description, std::string &fieldName, int &typeField, int &entity, int &DT, int &IT)
ParaMEDMEM::DataArrayIntMEDPARTITIONER::CreateDataArrayIntFromVector (const std::vector< int > &v)
ParaMEDMEM::DataArrayIntMEDPARTITIONER::CreateDataArrayIntFromVector (const std::vector< int > &v, const int nbComponents)
ParaMEDMEM::DataArrayDoubleMEDPARTITIONER::CreateDataArrayDoubleFromVector (const std::vector< double > &v)
ParaMEDMEM::MEDCouplingUMeshMEDPARTITIONER::CreateEmptyMEDCouplingUMesh ()
 create empty MEDCouplingUMesh* dim 3
std::vector< std::string > MEDPARTITIONER::BrowseFieldDouble (const ParaMEDMEM::MEDCouplingFieldDouble *fd)
std::vector< std::string > MEDPARTITIONER::BrowseAllFields (const std::string &myfile)
 quick almost human readable information on all fields in a .med file
std::vector< std::string > MEDPARTITIONER::BrowseAllFieldsOnMesh (const std::string &myfile, const std::string &mymesh, const int idomain)
 quick almost human readable information on all fields on a mesh in a .med file
std::vector< std::string > MEDPARTITIONER::GetInfosOfField (const char *fileName, const char *meshName, const int idomain)