Version: 9.12.0
MEDCoupling::DataArrayInt32Tuple Class Reference
Inheritance diagram for MEDCoupling::DataArrayInt32Tuple:
Collaboration diagram for MEDCoupling::DataArrayInt32Tuple:

Public Member Functions

DataArrayInt32buildDAInt (std::size_t nbOfTuples, std::size_t nbOfCompo) const
 
 DataArrayInt32Tuple (Int32 *pt, std::size_t nbOfComp)
 
Int32 intValue () const
 
std::string repr () const
 
- Public Member Functions inherited from MEDCoupling::DataArrayTuple< Int32 >
Traits< Int32 >::ArrayType * buildDA (std::size_t nbOfTuples, std::size_t nbOfCompo) const
 
 DataArrayTuple (Int32 *pt, std::size_t nbOfComp)
 
const Int32 * getConstPointer () const
 
std::size_t getNumberOfCompo () const
 
Int32 * getPointer ()
 
std::string repr () const
 

Additional Inherited Members

- Protected Member Functions inherited from MEDCoupling::DataArrayTuple< Int32 >
Int32 zeValue () const
 
- Protected Attributes inherited from MEDCoupling::DataArrayTuple< Int32 >
std::size_t _nb_of_compo
 
Int32 * _pt
 

Constructor & Destructor Documentation

◆ DataArrayInt32Tuple()

DataArrayInt32Tuple::DataArrayInt32Tuple ( Int32 *  pt,
std::size_t  nbOfComp 
)

Member Function Documentation

◆ repr()

std::string DataArrayInt32Tuple::repr ( ) const

◆ intValue()

Int32 DataArrayInt32Tuple::intValue ( ) const

◆ buildDAInt()

DataArrayInt32 * DataArrayInt32Tuple::buildDAInt ( std::size_t  nbOfTuples,
std::size_t  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 \bnbOfTuples==1 or nbOfCompo=1 and \bnbOfTuples==this->_nb_of_elem.

References MEDCoupling::DataArrayTuple< Int32 >::buildDA().