Back to index

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

#include <MEDCouplingMemArray.hxx>

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

List of all members.

Public Member Functions

 MEDCouplingPointer ()
void null ()
bool isNull () const
void setInternal (T *pointer)
void setExternal (const T *pointer)
const T * getConstPointer () const
const T * getConstPointerLoc (int offset) const
T * getPointer ()

Private Attributes

T * _internal
const T * _external

Detailed Description

template<class T>
class ParaMEDMEM::MEDCouplingPointer< T >

Definition at line 36 of file MEDCouplingMemArray.hxx.


Constructor & Destructor Documentation

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

Definition at line 39 of file MEDCouplingMemArray.hxx.

:_internal(0),_external(0) { }

Member Function Documentation

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

Definition at line 44 of file MEDCouplingMemArray.hxx.

{ if(_internal) return _internal; else return _external; }
template<class T>
const T* ParaMEDMEM::MEDCouplingPointer< T >::getConstPointerLoc ( int  offset) const [inline]

Definition at line 45 of file MEDCouplingMemArray.hxx.

{ if(_internal) return _internal+offset; else return _external+offset; }
template<class T>
T* ParaMEDMEM::MEDCouplingPointer< T >::getPointer ( ) [inline]

Definition at line 46 of file MEDCouplingMemArray.hxx.

{ if(_internal) return _internal; if(_external) throw INTERP_KERNEL::Exception("Trying to write on an external pointer."); else return 0; }
template<class T>
bool ParaMEDMEM::MEDCouplingPointer< T >::isNull ( ) const [inline]

Definition at line 41 of file MEDCouplingMemArray.hxx.

{ return _internal==0 && _external==0; }
template<class T>
void ParaMEDMEM::MEDCouplingPointer< T >::null ( ) [inline]

Definition at line 40 of file MEDCouplingMemArray.hxx.

{ _internal=0; _external=0; }
template<class T>
void ParaMEDMEM::MEDCouplingPointer< T >::setExternal ( const T *  pointer)
template<class T>
void ParaMEDMEM::MEDCouplingPointer< T >::setInternal ( T *  pointer)

Member Data Documentation

template<class T>
const T* ParaMEDMEM::MEDCouplingPointer< T >::_external [private]

Definition at line 49 of file MEDCouplingMemArray.hxx.

template<class T>
T* ParaMEDMEM::MEDCouplingPointer< T >::_internal [private]

Definition at line 48 of file MEDCouplingMemArray.hxx.


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