Version: 6.5.0
Public Member Functions | List of all members
ParaMEDMEM::DataArrayDoubleTuple Class Reference

Public Member Functions

 DataArrayDoubleTuple (double *pt, int nbOfComp)
std::string repr () const
int getNumberOfCompo () const
const double * getConstPointer () const
double * getPointer ()
double doubleValue () const throw (INTERP_KERNEL::Exception)
DataArrayDoublebuildDADouble (int nbOfTuples, int nbOfCompo) const throw (INTERP_KERNEL::Exception)

Constructor & Destructor Documentation

DataArrayDoubleTuple::DataArrayDoubleTuple ( double *  pt,
int  nbOfComp 
)

Member Function Documentation

std::string DataArrayDoubleTuple::repr ( ) const
int ParaMEDMEM::DataArrayDoubleTuple::getNumberOfCompo ( ) const
const double* ParaMEDMEM::DataArrayDoubleTuple::getConstPointer ( ) const
double* ParaMEDMEM::DataArrayDoubleTuple::getPointer ( )
double DataArrayDoubleTuple::doubleValue ( ) const throw (INTERP_KERNEL::Exception)
DataArrayDouble * DataArrayDoubleTuple::buildDADouble ( int  nbOfTuples,
int  nbOfCompo 
) const throw (INTERP_KERNEL::Exception)

This method returns a newly allocated instance the caller should dealed with by a ParaMEDMEM::DataArrayDouble::decrRef. This method performs no copy of data. The content is only referenced using ParaMEDMEM::DataArrayDouble::useArray with ownership set to false. This method throws an INTERP_KERNEL::Exception is it is impossible to match sizes of this that is too say nbOfCompo=this->_nb_of_elem and ==1 or nbOfCompo=1 and ==this->_nb_of_elem.

References ParaMEDMEM::CPP_DEALLOC, ParaMEDMEM::DataArrayDouble::New(), and ParaMEDMEM::DataArrayDouble::useArray().

Copyright © 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS