GemaCoreLib
The GeMA Core library
Public Member Functions | List of all members
GmNodeSet Class Referenceabstract

This class stores a set of nodes belonging to a mesh. The nodes can belong to the mesh boundary but that is not necessary. More...

#include <gmNodeSet.h>

Inheritance diagram for GmNodeSet:
Inheritance graph
[legend]

Public Member Functions

virtual ~GmNodeSet ()
 Virtual destructor.
 
virtual QString id () const =0
 Returns the set name.
 
virtual GmMeshmesh () const =0
 Returns the mesh that this set is tied to.
 
virtual int numNodes () const =0
 Returns the number of nodes stored in this set.
 
virtual int node (int i) const =0
 Returns the node id of the i'th entry stored in this set. More...
 
virtual bool setNodeData (int numNodes, int *nodeList)
 Updates the node list in the set object. More...
 
virtual size_t usedMemory () const =0
 Returns an estimative of the memory used by the node set in bytes.
 

Detailed Description

This class stores a set of nodes belonging to a mesh. The nodes can belong to the mesh boundary but that is not necessary.

Member Function Documentation

◆ node()

virtual int GmNodeSet::node ( int  i) const
pure virtual

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.

Implemented in BcNodeSet, and GmMeshNodeSet.

◆ setNodeData()

virtual bool GmNodeSet::setNodeData ( int  numNodes,
int *  nodeList 
)
inlinevirtual

Updates the node list in the set object.

If this operation is not supported by a mesh implementation, this function should return false. The object takes ownership of the supplied vector (unless the function returns false). If the concrete representation will not use the supplied vector internally, it should delete the given data.


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