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 22 of file SundanceRivaraNode.hpp.


Constructor & Destructor Documentation

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

Definition at line 10 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 20 of file SundanceRivaraNode.cpp.

References edges_.

void Node::addConnectingElement ( Element elem  ) 

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

Definition at line 15 of file SundanceRivaraNode.cpp.

References elements_.

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

Return the global index of this node

Definition at line 41 of file SundanceRivaraNode.hpp.

References globalIndex_.

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

Return the label of this node

Definition at line 67 of file SundanceRivaraNode.hpp.

References label_.

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

Return the local index of this node

Definition at line 35 of file SundanceRivaraNode.hpp.

References localIndex_.

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

Return the rank of the proc that owns this node

Definition at line 61 of file SundanceRivaraNode.hpp.

References ownerProc_.

const Point & Node::pt (  )  const

Return the spatial position of this node

Definition at line 25 of file SundanceRivaraNode.cpp.

References x_.

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

Set the local index of this node

Definition at line 46 of file SundanceRivaraNode.hpp.

References localIndex_.


Member Data Documentation

Definition at line 77 of file SundanceRivaraNode.hpp.

Referenced by addConnectingEdge().

Definition at line 76 of file SundanceRivaraNode.hpp.

Referenced by addConnectingElement().

Definition at line 73 of file SundanceRivaraNode.hpp.

Referenced by globalIndex().

Definition at line 71 of file SundanceRivaraNode.hpp.

Referenced by label().

Definition at line 72 of file SundanceRivaraNode.hpp.

Referenced by localIndex(), and setLocalIndex().

Definition at line 79 of file SundanceRivaraNode.hpp.

Referenced by ownerProc().

Definition at line 74 of file SundanceRivaraNode.hpp.

Referenced by pt().

Site Contact