19 #ifndef GEOSX_MESH_TOELEMENTRELATION_HPP_ 20 #define GEOSX_MESH_TOELEMENTRELATION_HPP_ 27 class ElementRegionManager;
34 template<
typename BASETYPE >
53 template<
typename ... DIMS >
54 void resize( DIMS... newdims );
105 template<
typename BASETYPE >
113 template<
typename BASETYPE >
117 template<
typename BASETYPE >
118 template<
typename ... DIMS >
121 m_toElementRegion.
resize( newdims ... );
122 m_toElementSubRegion.resize( newdims ... );
123 m_toElementIndex.resize( newdims ... );
142 void erase( OrderedVariableToManyElementRelation & relation,
157 void insert( OrderedVariableToManyElementRelation & relation,
void insert(OrderedVariableToManyElementRelation &relation, localIndex const firstIndex, localIndex const er, localIndex const esr, localIndex const ei)
Insert an element relation for an object in the relation.
ElementRegionManager const * m_elemRegionManager
The current ElementRegionManager.
void resize(DIMS... newdims)
Resize the underlying relationship storage.
A relationship to an element.
ToElementRelation< ArrayOfArrays< localIndex > > OrderedVariableToManyElementRelation
A ToElementRelation where each object is related to an arbitrary number of elements.
ToElementRelation()
The default constructor.
ElementRegionManager const * getElementRegionManager() const
Get the ElementRegionManager.
localIndex size() const
Get the current size of the relationship storage.
BASETYPE m_toElementSubRegion
The relationship between object indices and element subregions.
BASETYPE m_toElementIndex
The relationship between object indices and element indices.
BASETYPE m_toElementRegion
The relationship between object indices and element regions.
~ToElementRelation()
The default destructor.
std::ptrdiff_t localIndex
Local index type (for indexing objects within an MPI partition).
The ElementRegionManager class provides an interface to ObjectManagerBase in order to manage ElementR...
ToElementRelation< array2d< localIndex > > FixedToManyElementRelation
A ToElementRelation where each object is related to the same number of elements.
localIndex size(int const dim) const
Get the size of a specific dimension of the relationship storage.
void erase(OrderedVariableToManyElementRelation &relation, localIndex const firstIndex, localIndex const er, localIndex const esr, localIndex const ei)
Remove an element relation from an object in the relation.
void setElementRegionManager(ElementRegionManager const *const input)
Set the ElementRegionManager.