Public Member Functions | |
DataArrayDouble * | buildDADouble (std::size_t nbOfTuples, std::size_t nbOfCompo) const |
DataArrayDoubleTuple (double *pt, std::size_t nbOfComp) | |
double | doubleValue () const |
std::string | repr () const |
Public Member Functions inherited from MEDCoupling::DataArrayTuple< double > | |
Traits< double >::ArrayType * | buildDA (std::size_t nbOfTuples, std::size_t nbOfCompo) const |
DataArrayTuple (double *pt, std::size_t nbOfComp) | |
const double * | getConstPointer () const |
std::size_t | getNumberOfCompo () const |
double * | getPointer () |
std::string | repr () const |
Additional Inherited Members | |
Protected Member Functions inherited from MEDCoupling::DataArrayTuple< double > | |
double | zeValue () const |
Protected Attributes inherited from MEDCoupling::DataArrayTuple< double > | |
std::size_t | _nb_of_compo |
double * | _pt |
DataArrayDoubleTuple::DataArrayDoubleTuple | ( | double * | pt, |
std::size_t | nbOfComp | ||
) |
std::string DataArrayDoubleTuple::repr | ( | ) | const |
double DataArrayDoubleTuple::doubleValue | ( | ) | const |
References MEDCoupling::DataArrayTuple< double >::zeValue().
DataArrayDouble * DataArrayDoubleTuple::buildDADouble | ( | std::size_t | nbOfTuples, |
std::size_t | 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 \bnbOfTuples==1 or nbOfCompo=1 and \bnbOfTuples==this->_nb_of_elem.
References MEDCoupling::DataArrayTuple< double >::buildDA().