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

Aux class used to store a node set created either from a GmCellBoundary or from a user given node list. More...

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

Public Member Functions

 BcNodeSet (GmCellBoundary *boundary)
 Basic constructor that loads the node list from the given boundary object.
 
 BcNodeSet (int numNodes, int *nodes)
 Basic constructor that loads the node list from the given vector, taking ownership of the supplied pointer.
 
 BcNodeSet (GmCellBoundary *boundary, int numNodes)
 A very specific constructor used by dump loading code. It allocates the node buffer with the given size but does not fills its contents. It also initializes the _boundary reference with the supplied boundary (can be NULL), without checking its consistency with the number of nodes.
 
virtual ~BcNodeSet ()
 Destructor.
 
bool reloadNodeList ()
 Refill the node set list of nodes from the boudary object. Does nothing if not tied to a boundary.
 
virtual QString id () const
 A fake id provided to fulfill the GmNodeSet interface. Should not be called. This is an internal class only!
 
virtual GmCellMeshmesh () const
 Returns the mesh that this set is tied to.
 
virtual int numNodes () const
 Returns the number of nodes stored in this set.
 
virtual int node (int i) const
 Returns the node id of the i'th entry stored in this set. More...
 
GmCellBoundaryboundary () const
 Returns the boundary that originated this node set.
 
virtual size_t usedMemory () const
 Returns an estimative of the memory used by the node set in bytes.
 
void setData (int pos, int node)
 Updates the node at list position pos.
 
- Public Member Functions inherited from GmNodeSet
virtual ~GmNodeSet ()
 Virtual destructor.
 
virtual bool setNodeData (int numNodes, int *nodeList)
 Updates the node list in the set object. More...
 

Private Attributes

GmCellBoundary_boundary
 The boundary that was used to create this node set.
 
int * _nodes
 The nodes vector.
 
int _numNodes
 The number of nodes stored in this set.
 

Friends

class GmBoundaryConditionStateDumpItem
 

Detailed Description

Aux class used to store a node set created either from a GmCellBoundary or from a user given node list.

Member Function Documentation

◆ node()

virtual int BcNodeSet::node ( int  i) const
inlinevirtual

Returns the node id of the i'th entry stored in this set.

If the node is a ghost node, it will have its 'ghost bit' set.

Implements GmNodeSet.


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