Back to index

salome-med  6.5.0
Public Member Functions | Private Member Functions | Private Attributes
INTERP_KERNEL::MeshRegion< ConnType > Class Template Reference

Class representing a set of elements in a mesh together with their bounding box. More...

#include <MeshRegion.hxx>

Collaboration diagram for INTERP_KERNEL::MeshRegion< ConnType >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MeshRegion ()
 ~MeshRegion ()
template<class MyMeshType >
void addElement (MeshElement< ConnType > *const element, const MyMeshType &mesh)
template<class MyMeshType >
void split (MeshRegion< ConnType > &region1, MeshRegion< ConnType > &region2, BoundingBox::BoxCoord coord, const MyMeshType &mesh)
bool isDisjointWithElementBoundingBox (const MeshElement< ConnType > &elem) const
std::vector< MeshElement
< ConnType >
* >::const_iterator 
getBeginElements () const
 Accessor to beginning of elements vector.
std::vector< MeshElement
< ConnType >
* >::const_iterator 
getEndElements () const
 Accessor to end of elements vector.
unsigned getNumberOfElements () const
 Gives information on how many elements are contained in the region.

Private Member Functions

 MeshRegion (const MeshRegion &m)
 disallow copying
MeshRegion< ConnType > & operator= (const MeshRegion< ConnType > &m)
 disallow assignment

Private Attributes

std::vector< MeshElement
< ConnType > * > 
_elements
 Vector of pointers to contained MeshElements. NB : these pointers are not owned by the region object, and are thus neither allocated or liberated in this class. The elements must therefore be allocated and liberated outside the class.
BoundingBox * _box
 BoundingBox containing all the nodes of all the elements in the region.

Detailed Description

template<class ConnType>
class INTERP_KERNEL::MeshRegion< ConnType >

Class representing a set of elements in a mesh together with their bounding box.

It permits to split itself in two, which is used in the depth-first search filtering process.

Definition at line 37 of file MeshRegion.hxx.


Constructor & Destructor Documentation

template<class ConnType>
INTERP_KERNEL::MeshRegion< ConnType >::MeshRegion ( )
template<class ConnType>
INTERP_KERNEL::MeshRegion< ConnType >::~MeshRegion ( )
template<class ConnType>
INTERP_KERNEL::MeshRegion< ConnType >::MeshRegion ( const MeshRegion< ConnType > &  m) [private]

disallow copying


Member Function Documentation

template<class ConnType>
template<class MyMeshType >
void INTERP_KERNEL::MeshRegion< ConnType >::addElement ( MeshElement< ConnType > *const  element,
const MyMeshType &  mesh 
)
template<class ConnType>
std::vector< MeshElement<ConnType>* >::const_iterator INTERP_KERNEL::MeshRegion< ConnType >::getBeginElements ( ) const [inline]

Accessor to beginning of elements vector.

Returns:
constant iterator pointing at the beginning of the vector or elements

Definition at line 57 of file MeshRegion.hxx.

{ return _elements.begin(); }
template<class ConnType>
std::vector< MeshElement<ConnType>* >::const_iterator INTERP_KERNEL::MeshRegion< ConnType >::getEndElements ( ) const [inline]

Accessor to end of elements vector.

Returns:
constant iterator pointing at the end of the vector or elements

Definition at line 64 of file MeshRegion.hxx.

{ return _elements.end(); }
template<class ConnType>
unsigned INTERP_KERNEL::MeshRegion< ConnType >::getNumberOfElements ( ) const [inline]

Gives information on how many elements are contained in the region.

Returns:
the number of elements contained in the region

Definition at line 71 of file MeshRegion.hxx.

{ return _elements.size(); }
template<class ConnType>
bool INTERP_KERNEL::MeshRegion< ConnType >::isDisjointWithElementBoundingBox ( const MeshElement< ConnType > &  elem) const
template<class ConnType>
MeshRegion<ConnType>& INTERP_KERNEL::MeshRegion< ConnType >::operator= ( const MeshRegion< ConnType > &  m) [private]

disallow assignment

template<class ConnType>
template<class MyMeshType >
void INTERP_KERNEL::MeshRegion< ConnType >::split ( MeshRegion< ConnType > &  region1,
MeshRegion< ConnType > &  region2,
BoundingBox::BoxCoord  coord,
const MyMeshType &  mesh 
)

Member Data Documentation

template<class ConnType>
BoundingBox* INTERP_KERNEL::MeshRegion< ConnType >::_box [private]

BoundingBox containing all the nodes of all the elements in the region.

Definition at line 87 of file MeshRegion.hxx.

template<class ConnType>
std::vector< MeshElement<ConnType>* > INTERP_KERNEL::MeshRegion< ConnType >::_elements [private]

Vector of pointers to contained MeshElements. NB : these pointers are not owned by the region object, and are thus neither allocated or liberated in this class. The elements must therefore be allocated and liberated outside the class.

Definition at line 84 of file MeshRegion.hxx.


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