Public Member Functions | Private Attributes
Sundance::Rivara::Edge Class Reference
Inheritance diagram for Sundance::Rivara::Edge:
Sundance::Rivara::TreeNode

List of all members.

Public Member Functions

 Edge (const RCP< Node > &a, const RCP< Node > &b)
void addConnectingElement (Element *elem)
double length () const
void getUnrefinedCofacets (Array< Element * > &elements) const
RCP< Nodebisect (RivaraMesh *mesh)
const RCP< Node > & node (int i) const
int ownerProc () const
int globalIndex () const
void setGlobalIndex (int globalIndex)
void setLabel (int label)
int label () const

Private Attributes

int label_
Array< RCP< Node > > nodes_
Array< Element * > elements_
RCP< Nodemidpoint_
int ownerProc_

Detailed Description

class Edge is a one-dimensional edge in a simplicial mesh.

Definition at line 66 of file SundanceRivaraEdge.hpp.


Constructor & Destructor Documentation

Edge::Edge ( const RCP< Node > &  a,
const RCP< Node > &  b 
)

Construct with two nodes

Definition at line 53 of file SundanceRivaraEdge.cpp.

References ownerProc_.


Member Function Documentation

Add an element to the list of elements containing this edge

Definition at line 68 of file SundanceRivaraEdge.cpp.

References elements_.

RCP< Node > Edge::bisect ( RivaraMesh mesh)
void Edge::getUnrefinedCofacets ( Array< Element * > &  elements) const

Return a list of the cofacets of this edge that still need refinement

Definition at line 81 of file SundanceRivaraEdge.cpp.

References elements_, and Sundance::Rivara::TreeNode::hasChildren().

Return the global index of this edge

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

Get the label

Definition at line 118 of file SundanceRivaraEdge.hpp.

References label_.

Referenced by setLabel().

double Edge::length ( ) const

Return the length of the edge.

Definition at line 73 of file SundanceRivaraEdge.cpp.

References nodes_.

const RCP<Node>& Sundance::Rivara::Edge::node ( int  i) const [inline]

Definition at line 96 of file SundanceRivaraEdge.hpp.

References nodes_.

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

Definition at line 98 of file SundanceRivaraEdge.hpp.

References ownerProc_.

void Sundance::Rivara::Edge::setGlobalIndex ( int  globalIndex)

Set the global index of this edge

void Sundance::Rivara::Edge::setLabel ( int  label) [inline]

Set the label of this edge

Definition at line 113 of file SundanceRivaraEdge.hpp.

References label(), and label_.


Member Data Documentation

Definition at line 123 of file SundanceRivaraEdge.hpp.

Referenced by addConnectingElement(), and getUnrefinedCofacets().

Definition at line 121 of file SundanceRivaraEdge.hpp.

Referenced by bisect(), label(), and setLabel().

Definition at line 125 of file SundanceRivaraEdge.hpp.

Referenced by bisect().

Array<RCP<Node> > Sundance::Rivara::Edge::nodes_ [private]

Definition at line 122 of file SundanceRivaraEdge.hpp.

Referenced by bisect(), length(), and node().

Definition at line 127 of file SundanceRivaraEdge.hpp.

Referenced by bisect(), Edge(), and ownerProc().

Site Contact