![]() |
GemaCoreLib
The GeMA Core library
|
Aux class used to store a node set created either from a GmCellBoundary or from a user given node list. More...
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 GmCellMesh * | mesh () 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... | |
GmCellBoundary * | boundary () 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. | |
![]() | |
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 |
Aux class used to store a node set created either from a GmCellBoundary or from a user given node list.
|
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.