Back to index

salome-med  6.5.0
Public Member Functions | Static Public Member Functions | Private Member Functions
ParaMEDMEM::MEDCouplingMultiFieldsClient Class Reference

#include <MEDCouplingMultiFieldsClient.hxx>

Inheritance diagram for ParaMEDMEM::MEDCouplingMultiFieldsClient:
Inheritance graph
[legend]
Collaboration diagram for ParaMEDMEM::MEDCouplingMultiFieldsClient:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def getNumberOfFields
def deepCpy
def simpleRepr
def advancedRepr
def isEqual
def isEqualWithoutConsideringStr
def checkCoherency
def __str__
def New
def getFields
def getFieldAtPos
def getMeshes
def getDifferentMeshes
def getArrays
def getDifferentArrays
def incrRef
def getHiddenCppPointer
def assign
def declareAsNew
def updateTime
def getTimeOfThis

Static Public Member Functions

static
MEDCOUPLINGCLIENT_EXPORT
MEDCouplingMultiFields
New (SALOME_MED::MEDCouplingMultiFieldsCorbaInterface_ptr field)
static void BuildFullMultiFieldsCorbaFetch (MEDCouplingMultiFields *ret, SALOME_MED::MEDCouplingMultiFieldsCorbaInterface_ptr fieldPtr)

Private Member Functions

 MEDCouplingMultiFieldsClient ()

Detailed Description

Definition at line 33 of file MEDCouplingMultiFieldsClient.hxx.


Constructor & Destructor Documentation


Member Function Documentation

def ParaMEDMEM.MEDCouplingMultiFields.__str__ (   self) [inherited]
__str__(self) -> string

1

Reimplemented in ParaMEDMEM.MEDCouplingFieldOverTime.

Definition at line 11047 of file ParaMEDMEM.py.

11047 
11048     def __str__(self):
11049         """
11050         __str__(self) -> string
11051 
11052         1
11053         """
11054         return _ParaMEDMEM.MEDCouplingMultiFields___str__(self)

advancedRepr(self) -> string

1

Definition at line 11015 of file ParaMEDMEM.py.

11015 
11016     def advancedRepr(self):
11017         """
11018         advancedRepr(self) -> string
11019 
11020         1
11021         """
11022         return _ParaMEDMEM.MEDCouplingMultiFields_advancedRepr(self)

def ParaMEDMEM.TimeLabel.assign (   self,
  args 
) [inherited]
assign(self, TimeLabel other) -> TimeLabel

1

Reimplemented in ParaMEDMEM.MEDCouplingFieldDouble.

Definition at line 284 of file ParaMEDMEM.py.

00284 
00285     def assign(self, *args):
00286         """
00287         assign(self, TimeLabel other) -> TimeLabel
00288 
00289         1
00290         """
00291         return _ParaMEDMEM.TimeLabel_assign(self, *args)

void MEDCouplingMultiFieldsClient::BuildFullMultiFieldsCorbaFetch ( MEDCouplingMultiFields ret,
SALOME_MED::MEDCouplingMultiFieldsCorbaInterface_ptr  fieldPtr 
) [static]

Definition at line 41 of file MEDCouplingMultiFieldsClient.cxx.

{
  //
  SALOME_TYPES::ListOfLong *tinyL=0;
  SALOME_TYPES::ListOfDouble *tinyD=0;
  SALOME_TYPES::ListOfString *tinyS=0;
  //
  CORBA::Long nbOfArrays;
  CORBA::Long nbOfFields;
  CORBA::Long nbOfMeshes=fieldPtr->getMainTinyInfo(tinyL,tinyD,nbOfArrays,nbOfFields);
  int tinyLgth=tinyL->length();
  std::vector<int> mainI(tinyLgth);
  for(int i=0;i<tinyLgth;i++)
    mainI[i]=(*tinyL)[i];
  delete tinyL; tinyL=0;
  tinyLgth=tinyD->length();
  std::vector<double> mainD(tinyLgth);
  for(int i=0;i<tinyLgth;i++)
    mainD[i]=(*tinyD)[i];
  delete tinyD; tinyD=0;
  //
  std::vector<MEDCouplingMesh *> cppms(nbOfMeshes);
  SALOME_MED::MEDCouplingMeshesCorbaInterface *meshes=fieldPtr->getMeshes();
  for(CORBA::Long i=0;i<nbOfMeshes;i++)
    {
      cppms[i]=MEDCouplingMeshClient::New((*meshes)[i]);
      (*meshes)[i]->UnRegister();
    }
  delete meshes;
  //
  std::vector<DataArrayDouble *> cppdas(nbOfArrays);
  for(CORBA::Long i=0;i<nbOfArrays;i++)
    {
      SALOME_MED::DataArrayDoubleCorbaInterface_ptr daPtr=fieldPtr->getArray(i);
      cppdas[i]=DataArrayDoubleClient::New(daPtr);
      daPtr->UnRegister();
      CORBA::release(daPtr);
    }
  //
  std::vector<MEDCouplingFieldTemplate *> fts(nbOfFields);
  for(CORBA::Long i=0;i<nbOfFields;i++)
    {
      fieldPtr->getTinyInfo(i,tinyL,tinyD,tinyS);
      int tinyLgth=tinyL->length();
      std::vector<int> tinyLV(tinyLgth);
      for(int j=0;j<tinyLgth;j++)
        tinyLV[j]=(*tinyL)[j];
      delete tinyL; tinyL=0;
      //
      tinyLgth=tinyD->length();
      std::vector<double> tinyLD(tinyLgth);
      for(int j=0;j<tinyLgth;j++)
        tinyLD[j]=(*tinyD)[j];
      delete tinyD; tinyD=0;
      //
      tinyLgth=tinyS->length();
      std::vector<std::string> tinyLS(tinyLgth);
      for(int j=0;j<tinyLgth;j++)
        tinyLS[j]=(*tinyS)[j];
      delete tinyS; tinyS=0;
      TypeOfField type=(TypeOfField) tinyLV[0];
      MEDCouplingFieldTemplate *f1=MEDCouplingFieldTemplate::New(type);
      //
      DataArrayInt *array0;
      f1->resizeForUnserialization(tinyLV,array0);
      if(array0)
        {
          fieldPtr->getSerialisationData(i,tinyL);
          tinyLgth=tinyL->length();
          int *ptr=array0->getPointer();
          for(int j=0;j<tinyLgth;j++)
            ptr[j]=(*tinyL)[j];
          delete tinyL; tinyL=0;
        }
      f1->finishUnserialization(tinyLV,tinyLD,tinyLS);
      fts[i]=f1;
    }
  //last step
  ret->finishUnserialization(mainI,mainD,fts,cppms,cppdas);
  // clean-up
  for(std::vector<MEDCouplingFieldTemplate *>::iterator it=fts.begin();it!=fts.end();it++)
    (*it)->decrRef();
  for(std::vector<MEDCouplingMesh *>::iterator it=cppms.begin();it!=cppms.end();it++)
    (*it)->decrRef();
  for(std::vector<DataArrayDouble *>::iterator it=cppdas.begin();it!=cppdas.end();it++)
    (*it)->decrRef();
}

Here is the call graph for this function:

Here is the caller graph for this function:

checkCoherency(self)

1

Definition at line 11039 of file ParaMEDMEM.py.

11039 
11040     def checkCoherency(self):
11041         """
11042         checkCoherency(self)
11043 
11044         1
11045         """
11046         return _ParaMEDMEM.MEDCouplingMultiFields_checkCoherency(self)

Here is the caller graph for this function:

def ParaMEDMEM.TimeLabel.declareAsNew (   self) [inherited]
declareAsNew(self)

1

Definition at line 292 of file ParaMEDMEM.py.

00292 
00293     def declareAsNew(self):
00294         """
00295         declareAsNew(self)
00296 
00297         1
00298         """
00299         return _ParaMEDMEM.TimeLabel_declareAsNew(self)

Here is the caller graph for this function:

def ParaMEDMEM.MEDCouplingMultiFields.deepCpy (   self) [inherited]
deepCpy(self) -> MEDCouplingMultiFields

1

Definition at line 10999 of file ParaMEDMEM.py.

10999 
11000     def deepCpy(self):
11001         """
11002         deepCpy(self) -> MEDCouplingMultiFields
11003 
11004         1
11005         """
11006         return _ParaMEDMEM.MEDCouplingMultiFields_deepCpy(self)

Here is the caller graph for this function:

def ParaMEDMEM.MEDCouplingMultiFields.getArrays (   self) [inherited]
getArrays(self) -> PyObject

1

Definition at line 11097 of file ParaMEDMEM.py.

11097 
11098     def getArrays(self):
11099         """
11100         getArrays(self) -> PyObject
11101 
11102         1
11103         """
11104         return _ParaMEDMEM.MEDCouplingMultiFields_getArrays(self)

Here is the caller graph for this function:

getDifferentArrays(self) -> PyObject

1

Definition at line 11105 of file ParaMEDMEM.py.

11105 
11106     def getDifferentArrays(self):
11107         """
11108         getDifferentArrays(self) -> PyObject
11109 
11110         1
11111         """
11112         return _ParaMEDMEM.MEDCouplingMultiFields_getDifferentArrays(self)

Here is the caller graph for this function:

getDifferentMeshes(self) -> PyObject

1

Definition at line 11089 of file ParaMEDMEM.py.

11089 
11090     def getDifferentMeshes(self):
11091         """
11092         getDifferentMeshes(self) -> PyObject
11093 
11094         1
11095         """
11096         return _ParaMEDMEM.MEDCouplingMultiFields_getDifferentMeshes(self)

Here is the caller graph for this function:

def ParaMEDMEM.MEDCouplingMultiFields.getFieldAtPos (   self,
  args 
) [inherited]
getFieldAtPos(self, int id) -> PyObject

1

Definition at line 11073 of file ParaMEDMEM.py.

11073 
11074     def getFieldAtPos(self, *args):
11075         """
11076         getFieldAtPos(self, int id) -> PyObject
11077 
11078         1
11079         """
11080         return _ParaMEDMEM.MEDCouplingMultiFields_getFieldAtPos(self, *args)

def ParaMEDMEM.MEDCouplingMultiFields.getFields (   self) [inherited]
getFields(self) -> PyObject

1

Definition at line 11065 of file ParaMEDMEM.py.

11065 
11066     def getFields(self):
11067         """
11068         getFields(self) -> PyObject
11069 
11070         1
11071         """
11072         return _ParaMEDMEM.MEDCouplingMultiFields_getFields(self)

getHiddenCppPointer(self) -> string

1

Definition at line 345 of file ParaMEDMEM.py.

00345 
00346     def getHiddenCppPointer(self):
00347         """
00348         getHiddenCppPointer(self) -> string
00349 
00350         1
00351         """
00352         return _ParaMEDMEM.RefCountObject_getHiddenCppPointer(self)

def ParaMEDMEM.MEDCouplingMultiFields.getMeshes (   self) [inherited]
getMeshes(self) -> PyObject

1

Definition at line 11081 of file ParaMEDMEM.py.

11081 
11082     def getMeshes(self):
11083         """
11084         getMeshes(self) -> PyObject
11085 
11086         1
11087         """
11088         return _ParaMEDMEM.MEDCouplingMultiFields_getMeshes(self)

Here is the caller graph for this function:

getNumberOfFields(self) -> int

1

Definition at line 10991 of file ParaMEDMEM.py.

10991 
10992     def getNumberOfFields(self):
10993         """
10994         getNumberOfFields(self) -> int
10995 
10996         1
10997         """
10998         return _ParaMEDMEM.MEDCouplingMultiFields_getNumberOfFields(self)

def ParaMEDMEM.TimeLabel.getTimeOfThis (   self) [inherited]
getTimeOfThis(self) -> unsigned int

1

Definition at line 308 of file ParaMEDMEM.py.

00308 
00309     def getTimeOfThis(self):
00310         """
00311         getTimeOfThis(self) -> unsigned int
00312 
00313         1
00314         """
00315         return _ParaMEDMEM.TimeLabel_getTimeOfThis(self)

Here is the caller graph for this function:

def ParaMEDMEM.RefCountObject.incrRef (   self) [inherited]
incrRef(self)

1

Definition at line 337 of file ParaMEDMEM.py.

00337 
00338     def incrRef(self):
00339         """
00340         incrRef(self)
00341 
00342         1
00343         """
00344         return _ParaMEDMEM.RefCountObject_incrRef(self)

def ParaMEDMEM.MEDCouplingMultiFields.isEqual (   self,
  args 
) [inherited]
isEqual(self, MEDCouplingMultiFields other, double meshPrec, double valsPrec) -> bool

1

Definition at line 11023 of file ParaMEDMEM.py.

11023 
11024     def isEqual(self, *args):
11025         """
11026         isEqual(self, MEDCouplingMultiFields other, double meshPrec, double valsPrec) -> bool
11027 
11028         1
11029         """
11030         return _ParaMEDMEM.MEDCouplingMultiFields_isEqual(self, *args)

Here is the caller graph for this function:

isEqualWithoutConsideringStr(self, MEDCouplingMultiFields other, double meshPrec, double valsPrec) -> bool

1

Definition at line 11031 of file ParaMEDMEM.py.

11031 
11032     def isEqualWithoutConsideringStr(self, *args):
11033         """
11034         isEqualWithoutConsideringStr(self, MEDCouplingMultiFields other, double meshPrec, double valsPrec) -> bool
11035 
11036         1
11037         """
11038         return _ParaMEDMEM.MEDCouplingMultiFields_isEqualWithoutConsideringStr(self, *args)

MEDCouplingMultiFields * MEDCouplingMultiFieldsClient::New ( SALOME_MED::MEDCouplingMultiFieldsCorbaInterface_ptr  field) [static]

Definition at line 31 of file MEDCouplingMultiFieldsClient.cxx.

{
  MEDCouplingMultiFields *ret=MEDCouplingMultiFields::New();
  fieldPtr->Register();
  BuildFullMultiFieldsCorbaFetch(ret,fieldPtr);
  //notify server that the servant is no more used.
  fieldPtr->UnRegister();
  return ret;
}

Here is the call graph for this function:

Here is the caller graph for this function:

def ParaMEDMEM.MEDCouplingMultiFields.New (   args) [inherited]
New(PyObject li) -> MEDCouplingMultiFields

1

Reimplemented in ParaMEDMEM.MEDCouplingFieldOverTime.

Definition at line 11055 of file ParaMEDMEM.py.

11055 
11056     def New(*args):
11057         """
11058         New(PyObject li) -> MEDCouplingMultiFields
11059 
11060         1
11061         """
11062         return _ParaMEDMEM.MEDCouplingMultiFields_New(*args)

Here is the caller graph for this function:

simpleRepr(self) -> string

1

Definition at line 11007 of file ParaMEDMEM.py.

11007 
11008     def simpleRepr(self):
11009         """
11010         simpleRepr(self) -> string
11011 
11012         1
11013         """
11014         return _ParaMEDMEM.MEDCouplingMultiFields_simpleRepr(self)

def ParaMEDMEM.TimeLabel.updateTime (   self) [inherited]
updateTime(self)

1

Reimplemented in ParaMEDMEM.MEDCouplingFieldDouble, ParaMEDMEM::MEDCouplingUMesh, ParaMEDMEM.MEDCouplingPointSet, ParaMEDMEM.MEDCouplingFieldDiscretization, ParaMEDMEM.MEDCouplingTwoTimeSteps, ParaMEDMEM.MEDCouplingTimeDiscretization, ParaMEDMEM::DataArrayInt, and ParaMEDMEM::DataArrayDouble.

Definition at line 300 of file ParaMEDMEM.py.

00300 
00301     def updateTime(self):
00302         """
00303         updateTime(self)
00304 
00305         1
00306         """
00307         return _ParaMEDMEM.TimeLabel_updateTime(self)


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