Public Member Functions | |
DataArrayDouble * | buildDADouble (int nbOfTuples, int nbOfCompo) const |
DataArrayDoubleTuple (double *pt, int nbOfComp) | |
double | doubleValue () const |
const double * | getConstPointer () const |
int | getNumberOfCompo () const |
double * | getPointer () |
std::string | repr () const |
DataArrayDoubleTuple::DataArrayDoubleTuple | ( | double * | pt, |
int | nbOfComp | ||
) |
std::string DataArrayDoubleTuple::repr | ( | ) | const |
int MEDCoupling::DataArrayDoubleTuple::getNumberOfCompo | ( | ) | const |
const double* MEDCoupling::DataArrayDoubleTuple::getConstPointer | ( | ) | const |
double* MEDCoupling::DataArrayDoubleTuple::getPointer | ( | ) |
double DataArrayDoubleTuple::doubleValue | ( | ) | const |
DataArrayDouble * DataArrayDoubleTuple::buildDADouble | ( | int | nbOfTuples, |
int | nbOfCompo | ||
) | const |
This method returns a newly allocated instance the caller should dealed with by a MEDCoupling::DataArrayDouble::decrRef. This method performs no copy of data. The content is only referenced using MEDCoupling::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 MEDCoupling::DataArrayDouble::New(), and MEDCoupling::DataArrayTemplate< T >::useExternalArrayWithRWAccess().