#include "MEDMEM_define.hxx"
#include "MEDMEM_SkyLineArray.hxx"
-using namespace MED_EN;
-using namespace MEDMEM;
-
-
/*!
This class describe a support of elements on an entity of the mesh.
(only one for each support).
\endif
*/
- medEntityMesh _entity ;
+ MED_EN::medEntityMesh _entity ;
/*!
\if developper
Array of all geometric type defined in the support.
\endif
*/
- medGeometryElement * _geometricType;
+ MED_EN::medGeometryElement * _geometricType;
/*!
\if developper
public:
SUPPORT();
- SUPPORT(MESH* Mesh, string Name="", medEntityMesh Entity=MED_CELL);
+ SUPPORT(MESH* Mesh, string Name="", MED_EN::medEntityMesh Entity=MED_EN::MED_CELL);
SUPPORT(const SUPPORT & m);
virtual ~SUPPORT();
friend ostream & operator<<(ostream &os,const SUPPORT &my);
inline void setDescription(string Description);
inline void setMesh(MESH *Mesh);
inline void setAll(bool All);
- inline void setEntity(medEntityMesh Entity);
+ inline void setEntity(MED_EN::medEntityMesh Entity);
inline void setNumberOfGeometricType(int NumberOfGeometricType);
- inline void setGeometricType(const medGeometryElement *GeometricType);
+ inline void setGeometricType(const MED_EN::medGeometryElement *GeometricType);
inline void setNumberOfGaussPoint(const int *NumberOfGaussPoint);
// inline void setGeometricTypeNumber(int *GeometricTypeNumber);
inline void setNumberOfElements(const int *NumberOfElements);
inline void setTotalNumberOfElements(int TotalNumberOfElements);
inline void setNumber(MEDSKYLINEARRAY * Number);
- inline void setNumber(const int * index, const int* value);
+ inline void setNumber(const int * index, const int* value, bool shallowCopy=false);
inline string getName() const;
inline string getDescription() const;
virtual inline MESH * getMesh() const;
- inline medEntityMesh getEntity() const;
+ inline MED_EN::medEntityMesh getEntity() const;
inline bool isOnAllElements() const;
inline int getNumberOfTypes() const;
- inline const medGeometryElement* getTypes() const ;
+ inline const MED_EN::medGeometryElement* getTypes() const ;
inline const int * getNumberOfGaussPoint() const throw (MEDEXCEPTION);
- inline int getNumberOfGaussPoint(medGeometryElement geomElement) const throw (MEDEXCEPTION);
+ inline int getNumberOfGaussPoint(MED_EN::medGeometryElement geomElement) const throw (MEDEXCEPTION);
//inline int * getGeometricTypeNumber() const;
//inline int getTotalNumberOfElement() const;
- inline int getNumberOfElements(medGeometryElement GeometricType) const throw (MEDEXCEPTION);
+ inline int getNumberOfElements(MED_EN::medGeometryElement GeometricType) const throw (MEDEXCEPTION);
virtual inline MEDSKYLINEARRAY * getnumber() const throw (MEDEXCEPTION);
- virtual inline const int * getNumber(medGeometryElement GeometricType) const throw (MEDEXCEPTION);
+ virtual inline const int * getNumber(MED_EN::medGeometryElement GeometricType) const throw (MEDEXCEPTION);
virtual inline const int * getNumberIndex() const throw (MEDEXCEPTION);
void blending(SUPPORT * mySupport) throw (MEDEXCEPTION) ;
void setpartial(string Description, int NumberOfGeometricType,
- int TotalNumberOfEntity, medGeometryElement *GeometricType,
+ int TotalNumberOfEntity, MED_EN::medGeometryElement *GeometricType,
int *NumberOfEntity, int *NumberValue);
void getBoundaryElements() throw (MEDEXCEPTION);
void intersecting(SUPPORT * mySupport) throw (MEDEXCEPTION) ;
};
-};
+
// _____________________
// Methodes Inline
// _____________________
-using namespace MEDMEM;
/*!
This method returns the number of all elements of the type GeometricType.
of nodes in the support (or in the whole mesh).
*/
//-----------------------------------------------------------------------------
-inline int SUPPORT::getNumberOfElements(medGeometryElement GeometricType) const
+inline int SUPPORT::getNumberOfElements(MED_EN::medGeometryElement GeometricType) const
throw (MEDEXCEPTION)
//-----------------------------------------------------------------------------
{
- if (GeometricType==MED_ALL_ELEMENTS)
+ if (GeometricType==MED_EN::MED_ALL_ELEMENTS)
return _totalNumberOfElements;
for (int i=0;i<_numberOfGeometricType;i++)
if (_geometricType[i]==GeometricType)
medGeometryElement type.
*/
//---------------------------------------------------------------------
-inline const int * SUPPORT::getNumber(medGeometryElement GeometricType) const
+inline const int * SUPPORT::getNumber(MED_EN::medGeometryElement GeometricType) const
throw (MEDEXCEPTION)
//---------------------------------------------------------------------
{
const char * LOC = "Support::getNumber : " ;
if (_isOnAllElts)
throw MEDEXCEPTION(LOCALIZED(STRING(LOC)<<"Not defined, support is on all entity !")) ;
- if (GeometricType==MED_ALL_ELEMENTS)
+ if (GeometricType==MED_EN::MED_ALL_ELEMENTS)
return _number->getValue() ;
for (int i=0;i<_numberOfGeometricType;i++)
if (_geometricType[i]==GeometricType)
- Not defined for MED_ALL_ELEMENTS medGeometryElement type.
*/
//-----------------------------------------------------------------------------
-inline int SUPPORT::getNumberOfGaussPoint(medGeometryElement geomElement) const
+inline int SUPPORT::getNumberOfGaussPoint(MED_EN::medGeometryElement geomElement) const
throw (MEDEXCEPTION)
//-----------------------------------------------------------------------------
{
/*! set the attribute _entity to Entity */
//------------------------------------------
-inline void SUPPORT::setEntity(medEntityMesh Entity)
+inline void SUPPORT::setEntity(MED_EN::medEntityMesh Entity)
{
_entity=Entity;
// if ( Entity == MED_NODE) {
/*! set the attribute _geometricType to geometricType */
//---------------------------------------------------------------------
-inline void SUPPORT::setGeometricType(const medGeometryElement *GeometricType)
+inline void SUPPORT::setGeometricType(const MED_EN::medGeometryElement *GeometricType)
//---------------------------------------------------------------------
{
if (NULL == _geometricType)
- _geometricType=new medGeometryElement[_numberOfGeometricType];
+ _geometricType=new MED_EN::medGeometryElement[_numberOfGeometricType];
for (int i=0;i<_numberOfGeometricType;i++)
_geometricType[i] = GeometricType[i];
// _geometricType=GeometricType;
/*! set the attribute _number with index and value arrays */
//---------------------------------------------------
-inline void SUPPORT::setNumber(const int * index, const int* value)
+inline void SUPPORT::setNumber(const int * index, const int* value, bool shallowCopy)
//---------------------------------------------------
{
if (_number != NULL) delete _number ;
- _number= new MEDSKYLINEARRAY(_numberOfGeometricType,_totalNumberOfElements,index,value);
+ _number= new MEDSKYLINEARRAY(_numberOfGeometricType,_totalNumberOfElements,index,value,shallowCopy);
}
/*! returns the name of the support. */
(for example : MED_FACE or MED_NODE)
*/
//---------------------------------------------
-inline medEntityMesh SUPPORT::getEntity() const
+inline MED_EN::medEntityMesh SUPPORT::getEntity() const
//---------------------------------------------
{
return _entity;
types used by the support.
*/
//---------------------------------------------------
-inline const medGeometryElement * SUPPORT::getTypes() const
+inline const MED_EN::medGeometryElement * SUPPORT::getTypes() const
//---------------------------------------------------
{
// if ((_isOnAllElts)&(_entity != MED_NODE))
// return _geometricTypeNumber;
// }
+}//End namespace MEDMEM
+
#endif /* SUPPORT_HXX */