Public Member Functions | Private Attributes
Sundance::Rivara::Node Class Reference

List of all members.

Public Member Functions

 Node (int gid, const Point &x, int ownerProc, int label=-1)
const Pointpt () const
int localIndex () const
int globalIndex () const
void setLocalIndex (int localIndex)
void addConnectingElement (Element *elem)
void addConnectingEdge (Edge *edge)
int ownerProc () const
int label () const

Private Attributes

int label_
int localIndex_
int globalIndex_
Point x_
Array< Element * > elements_
Array< Edge * > edges_
int ownerProc_

Detailed Description

Class Node is a vertex in a simplicial mesh.

Definition at line 64 of file SundanceRivaraNode.hpp.


Constructor & Destructor Documentation

Node::Node ( int  gid,
const Point x,
int  ownerProc,
int  label = -1 
)

Definition at line 52 of file SundanceRivaraNode.cpp.


Member Function Documentation

void Node::addConnectingEdge ( Edge edge)

Add an edge to the list of edges containing this node

Definition at line 62 of file SundanceRivaraNode.cpp.

References edges_.

Add an element to the list of elements containing this node.

Definition at line 57 of file SundanceRivaraNode.cpp.

References elements_.

int Sundance::Rivara::Node::globalIndex ( ) const [inline]

Return the global index of this node

Definition at line 83 of file SundanceRivaraNode.hpp.

References globalIndex_.

int Sundance::Rivara::Node::label ( ) const [inline]

Return the label of this node

Definition at line 109 of file SundanceRivaraNode.hpp.

References label_.

int Sundance::Rivara::Node::localIndex ( ) const [inline]

Return the local index of this node

Definition at line 77 of file SundanceRivaraNode.hpp.

References localIndex_.

Referenced by setLocalIndex().

int Sundance::Rivara::Node::ownerProc ( ) const [inline]

Return the rank of the proc that owns this node

Definition at line 103 of file SundanceRivaraNode.hpp.

References ownerProc_.

const Point & Node::pt ( ) const

Return the spatial position of this node

Definition at line 67 of file SundanceRivaraNode.cpp.

References x_.

void Sundance::Rivara::Node::setLocalIndex ( int  localIndex) [inline]

Set the local index of this node

Definition at line 88 of file SundanceRivaraNode.hpp.

References localIndex(), and localIndex_.


Member Data Documentation

Definition at line 119 of file SundanceRivaraNode.hpp.

Referenced by addConnectingEdge().

Definition at line 118 of file SundanceRivaraNode.hpp.

Referenced by addConnectingElement().

Definition at line 115 of file SundanceRivaraNode.hpp.

Referenced by globalIndex().

Definition at line 113 of file SundanceRivaraNode.hpp.

Referenced by label().

Definition at line 114 of file SundanceRivaraNode.hpp.

Referenced by localIndex(), and setLocalIndex().

Definition at line 121 of file SundanceRivaraNode.hpp.

Referenced by ownerProc().

Definition at line 116 of file SundanceRivaraNode.hpp.

Referenced by pt().

Site Contact