GemaCoreLib
The GeMA Core library
Public Member Functions | Private Attributes | List of all members
GmFixedMeshSetGaussIndex Class Reference

A Gauss index interface always indexing ALL the elements in either the full mesh or in the given mesh cell list. Once built, the index is fixed. More...

#include <gmGaussIndex.h>

Inheritance diagram for GmFixedMeshSetGaussIndex:
Inheritance graph
[legend]
Collaboration diagram for GmFixedMeshSetGaussIndex:
Collaboration graph
[legend]

Public Member Functions

 GmFixedMeshSetGaussIndex (const GmElementMesh *mesh, const int *cellSet, int numCells, int ruleSet)
 Constructor. The index will include the given cell set if cellSet is not NULL. Otherwise it will span the entire set of mesh cells. The index will only be usable after a call to init()
 
bool init ()
 Initializes the index. Returns false on (memory) errors.
 
- Public Member Functions inherited from GmUnfilteredGaussIndexBase
int numPoints () const
 Returns the number of Gauss points in the index.
 
int numCells () const
 Returns the number of cells in the index.
 
int numPoints (int cellId) const
 Returns the number of Gauss points for the given Cell.
 
int pointIndex (int cellId, int ip) const
 Given a mesh cell index and an integration point index, returns the Gauss point "linear" index, a value between 0 and numPoints()-1.
 
int cellIp (int gpIndex, int *ip) const
 Given a Gauss point "linear" index (a value from 0 to numPoints()-1), returns the mesh cell index + its integration point index by filling ip.
 
void clear ()
 Clears the index.
 
size_t usedMemory () const
 Returns the size of the used memory.
 

Private Attributes

const GmElementMesh_mesh
 The mesh object to which this index is tied to.
 
const int * _cells
 The cell subset. If NULL the whole mesh will be used.
 
int _rule
 The indexed rule set.
 

Additional Inherited Members

- Protected Member Functions inherited from GmUnfilteredGaussIndexBase
 GmUnfilteredGaussIndexBase ()
 Default empty index constructor.
 
- Protected Attributes inherited from GmUnfilteredGaussIndexBase
int _numIp
 The fixed number of integartion points per cell or 0 if index based.
 
int _numCells
 The number of cells in the index set.
 
QVarLengthArray< int, 2 > _cellOffset
 

Detailed Description

A Gauss index interface always indexing ALL the elements in either the full mesh or in the given mesh cell list. Once built, the index is fixed.

IMPORTANT: This is NOT a filtered index since when accessing the index methods, the cellId indices, given AND returned, are not really cell indices but indices IN THE CELL SET DOMAIN (either the given cell list or the mesh, when that index becomes a cell index).


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