Query methods

Functions

int MEDMEM::SUPPORT::getNumberOfElements (MED_EN::medGeometryElement GeometricType) const throw (MEDEXCEPTION)
const int * MEDMEM::SUPPORT::getNumberOfElements () const throw (MEDEXCEPTION)
virtual MEDSKYLINEARRAY * MEDMEM::SUPPORT::getnumber () const throw (MEDEXCEPTION)
virtual MEDSKYLINEARRAY * MEDMEM::SUPPORT::getnumberFromFile () const throw (MEDEXCEPTION)
virtual const int * MEDMEM::SUPPORT::getNumber (MED_EN::medGeometryElement GeometricType) const throw (MEDEXCEPTION)
virtual const int * MEDMEM::SUPPORT::getNumberFromFile (MED_EN::medGeometryElement GeometricType) const throw (MEDEXCEPTION)
virtual const int * MEDMEM::SUPPORT::getNumberIndex () const throw (MEDEXCEPTION)

Function Documentation

int MEDMEM::SUPPORT::getNumberOfElements ( MED_EN::medGeometryElement  GeometricType  )  const throw (MEDEXCEPTION) [inherited]

This method returns the number of all elements of the type GeometricType.

If isOnAllElements is false, it returns the number of elements in the support otherwise it returns number of elements in the mesh.

Example : number of MED_TRIA3 or MED_ALL_ELEMENTS elements in support.

Note : If SUPPORT is defined on MED_NODE, use MED_ALL_ELEMENTS as medGeometryElement GeometricType and it will return the number of nodes in the support (or in the mesh).

Examples:
FIELDcreate.cxx.

Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::allocValue(), MEDMEM::FIELD< T, INTERLACING_TAG >::buildGradient(), MEDMEM::FIELD< T, INTERLACING_TAG >::buildNorm2Field(), MEDMEM::FIELD_::FIELD_(), and MEDMEM::FIELD< T, INTERLACING_TAG >::getNumberOfElements().

const int * MEDMEM::SUPPORT::getNumberOfElements (  )  const throw (MEDEXCEPTION) [inherited]

Returns the total number of elements in the support.

References MEDMEM::SUPPORT::_numberOfElements.

Referenced by MEDMEM::SUPPORT::getComplement(), and MEDMEM::SUPPORT::makeMesh().

MEDSKYLINEARRAY * MEDMEM::SUPPORT::getnumber (  )  const throw (MEDEXCEPTION) [virtual, inherited]
MEDSKYLINEARRAY * MEDMEM::SUPPORT::getnumberFromFile (  )  const throw (MEDEXCEPTION) [virtual, inherited]
const int * MEDMEM::SUPPORT::getNumber ( MED_EN::medGeometryElement  GeometricType  )  const throw (MEDEXCEPTION) [virtual, inherited]

If isOnAllElements is false, returns an array which contains all number of given medGeometryElement.

Numbering is global, ie numbers are bounded by 1 and MESH::getNumberOfElement(entity,MED_ALL_ELEMENTS) and not by 1 and MESH::getNumberOfElement(entity,geomElement).

Note : If SUPPORT is defined on MED_NODE, use MED_NONE medGeometryElement type.

Referenced by MEDMEM::SUPPORT::deepCompare(), and MEDMEM::SUPPORT::makeMesh().

const int * MEDMEM::SUPPORT::getNumberFromFile ( MED_EN::medGeometryElement  GeometricType  )  const throw (MEDEXCEPTION) [virtual, inherited]
const int * MEDMEM::SUPPORT::getNumberIndex (  )  const throw (MEDEXCEPTION) [virtual, inherited]

If isOnAllElements is false, returns index of element number. Use it with getNumber(MED_ALL_ELEMENTS).

Note : See getConnectivityIndex for details.

References MEDMEM::SUPPORT::_isOnAllElts, and MEDMEM::SUPPORT::_number.

Generated on Sat May 1 01:31:48 2010 for Med Memory Users' Guide by  doxygen 1.6.3