Back to index

salome-med  6.5.0
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
ParaMEDMEM::MemArray< T > Class Template Reference

#include <MEDCouplingMemArray.hxx>

Inheritance diagram for ParaMEDMEM::MemArray< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 MemArray ()
 MemArray (const MemArray< T > &other)
bool isNull () const
const T * getConstPointerLoc (int offset) const
const T * getConstPointer () const
T * getPointer ()
MemArray< T > & operator= (const MemArray< T > &other)
operator[] (int id) const
T & operator[] (int id)
bool isEqual (const MemArray< T > &other, T prec) const
void repr (int sl, std::ostream &stream) const
void reprZip (int sl, std::ostream &stream) const
void fillWithValue (const T &val)
T * fromNoInterlace (int nbOfComp) const
T * toNoInterlace (int nbOfComp) const
void sort ()
void reverse ()
void alloc (int nbOfElements) throw (INTERP_KERNEL::Exception)
void reAlloc (int newNbOfElements) throw (INTERP_KERNEL::Exception)
void useArray (const T *array, bool ownership, DeallocType type, int nbOfElem)
void writeOnPlace (int id, T element0, const T *others, int sizeOfOthers)
 ~MemArray ()

Private Member Functions

void destroy ()

Static Private Member Functions

static void destroyPointer (T *pt, DeallocType type)

Private Attributes

int _nb_of_elem
bool _ownership
MEDCouplingPointer< T > _pointer
DeallocType _dealloc

Detailed Description

template<class T>
class ParaMEDMEM::MemArray< T >

Definition at line 53 of file MEDCouplingMemArray.hxx.


Constructor & Destructor Documentation

template<class T>
ParaMEDMEM::MemArray< T >::MemArray ( ) [inline]

Definition at line 56 of file MEDCouplingMemArray.hxx.

template<class T>
ParaMEDMEM::MemArray< T >::MemArray ( const MemArray< T > &  other)
template<class T>
ParaMEDMEM::MemArray< T >::~MemArray ( ) [inline]

Definition at line 77 of file MEDCouplingMemArray.hxx.

{ destroy(); }

Member Function Documentation

template<class T>
void ParaMEDMEM::MemArray< T >::alloc ( int  nbOfElements) throw (INTERP_KERNEL::Exception)
template<class T>
void ParaMEDMEM::MemArray< T >::destroy ( ) [private]

Here is the caller graph for this function:

template<class T>
static void ParaMEDMEM::MemArray< T >::destroyPointer ( T *  pt,
DeallocType  type 
) [static, private]
template<class T>
void ParaMEDMEM::MemArray< T >::fillWithValue ( const T &  val)

Here is the caller graph for this function:

template<class T>
T* ParaMEDMEM::MemArray< T >::fromNoInterlace ( int  nbOfComp) const

Here is the caller graph for this function:

template<class T>
const T* ParaMEDMEM::MemArray< T >::getConstPointer ( ) const [inline]

Definition at line 60 of file MEDCouplingMemArray.hxx.

{ return _pointer.getConstPointer(); }

Here is the caller graph for this function:

template<class T>
const T* ParaMEDMEM::MemArray< T >::getConstPointerLoc ( int  offset) const [inline]

Definition at line 59 of file MEDCouplingMemArray.hxx.

{ return _pointer.getConstPointerLoc(offset); }

Here is the caller graph for this function:

template<class T>
T* ParaMEDMEM::MemArray< T >::getPointer ( ) [inline]

Definition at line 61 of file MEDCouplingMemArray.hxx.

{ return _pointer.getPointer(); }

Here is the caller graph for this function:

template<class T>
bool ParaMEDMEM::MemArray< T >::isEqual ( const MemArray< T > &  other,
prec 
) const

Here is the caller graph for this function:

template<class T>
bool ParaMEDMEM::MemArray< T >::isNull ( ) const [inline]

Definition at line 58 of file MEDCouplingMemArray.hxx.

{ return _pointer.isNull(); }

Here is the caller graph for this function:

template<class T>
MemArray<T>& ParaMEDMEM::MemArray< T >::operator= ( const MemArray< T > &  other)
template<class T>
T ParaMEDMEM::MemArray< T >::operator[] ( int  id) const [inline]

Definition at line 63 of file MEDCouplingMemArray.hxx.

{ return _pointer.getConstPointer()[id]; }
template<class T>
T& ParaMEDMEM::MemArray< T >::operator[] ( int  id) [inline]

Definition at line 64 of file MEDCouplingMemArray.hxx.

{ return _pointer.getPointer()[id]; }
template<class T>
void ParaMEDMEM::MemArray< T >::reAlloc ( int  newNbOfElements) throw (INTERP_KERNEL::Exception)
template<class T>
void ParaMEDMEM::MemArray< T >::repr ( int  sl,
std::ostream &  stream 
) const

Here is the caller graph for this function:

template<class T>
void ParaMEDMEM::MemArray< T >::reprZip ( int  sl,
std::ostream &  stream 
) const

Here is the caller graph for this function:

template<class T>
void ParaMEDMEM::MemArray< T >::reverse ( )

Here is the caller graph for this function:

template<class T>
void ParaMEDMEM::MemArray< T >::sort ( )

Here is the caller graph for this function:

template<class T>
T* ParaMEDMEM::MemArray< T >::toNoInterlace ( int  nbOfComp) const

Here is the caller graph for this function:

template<class T>
void ParaMEDMEM::MemArray< T >::useArray ( const T *  array,
bool  ownership,
DeallocType  type,
int  nbOfElem 
)

Here is the caller graph for this function:

template<class T>
void ParaMEDMEM::MemArray< T >::writeOnPlace ( int  id,
element0,
const T *  others,
int  sizeOfOthers 
)

Here is the caller graph for this function:


Member Data Documentation

template<class T>
DeallocType ParaMEDMEM::MemArray< T >::_dealloc [private]

Definition at line 85 of file MEDCouplingMemArray.hxx.

template<class T>
int ParaMEDMEM::MemArray< T >::_nb_of_elem [private]

Definition at line 82 of file MEDCouplingMemArray.hxx.

template<class T>
bool ParaMEDMEM::MemArray< T >::_ownership [private]

Definition at line 83 of file MEDCouplingMemArray.hxx.

template<class T>
MEDCouplingPointer<T> ParaMEDMEM::MemArray< T >::_pointer [private]

Definition at line 84 of file MEDCouplingMemArray.hxx.


The documentation for this class was generated from the following file: