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