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

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)
DataArrayIntbuildDAInt (int nbOfTuples, int nbOfCompo) const throw (INTERP_KERNEL::Exception)

Constructor & Destructor Documentation

DataArrayIntTuple::DataArrayIntTuple ( int *  pt,
int  nbOfComp 
)

Member Function Documentation

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().

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