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