Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

dolfin::Edge Class Reference

#include <Edge.h>

Collaboration diagram for dolfin::Edge:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Edge ()
 Create empty edge.

 Edge (Node &n0, Node &n1)
 Create edge between two given nodes.

 ~Edge ()
 Destructor.

void clear ()
 Clear edge data.

int id () const
 Return id of edge.

unsigned int noCellNeighbors () const
 Return number of cell neighbors.

Nodenode (int i) const
 Get end node number i.

Cellcell (int i) const
 Return cell neighbor number i.

Pointcoord (int i) const
 Get coordinates of node number i.

real length () const
 Compute and return length of the edge.

Point midpoint () const
 Compute and return midpoint of the edge.

bool equals (const Node &n0, const Node &n1) const
 Check if edge consists of the two nodes.

bool contains (const Node &n) const
 Check if edge contains the node.


Friends

class Mesh
class Node
class GenericCell
class MeshData
class MeshInit
class MeshRefinement
class TriMeshRefinement
class TetMeshRefinement
class NodeIterator::CellNodeIterator
class CellIterator::CellCellIterator
class EdgeIterator::CellEdgeIterator
class FaceIterator::CellFaceIterator
class Triangle
class Tetrahedron
LogStreamoperator<< (LogStream &stream, const Edge &edge)
 Display condensed edge data.


Constructor & Destructor Documentation

Edge::Edge  ) 
 

Create empty edge.

Edge::Edge Node n0,
Node n1
 

Create edge between two given nodes.

Edge::~Edge  ) 
 

Destructor.


Member Function Documentation

Cell & Edge::cell int  i  )  const
 

Return cell neighbor number i.

void Edge::clear  ) 
 

Clear edge data.

bool Edge::contains const Node n  )  const
 

Check if edge contains the node.

Point & Edge::coord int  i  )  const
 

Get coordinates of node number i.

bool Edge::equals const Node n0,
const Node n1
const
 

Check if edge consists of the two nodes.

int Edge::id  )  const
 

Return id of edge.

real Edge::length  )  const
 

Compute and return length of the edge.

Point Edge::midpoint  )  const
 

Compute and return midpoint of the edge.

unsigned int Edge::noCellNeighbors  )  const
 

Return number of cell neighbors.

Node & Edge::node int  i  )  const
 

Get end node number i.


Friends And Related Function Documentation

friend class CellIterator::CellCellIterator [friend]
 

friend class EdgeIterator::CellEdgeIterator [friend]
 

friend class FaceIterator::CellFaceIterator [friend]
 

friend class GenericCell [friend]
 

friend class Mesh [friend]
 

friend class MeshData [friend]
 

friend class MeshInit [friend]
 

friend class MeshRefinement [friend]
 

friend class Node [friend]
 

friend class NodeIterator::CellNodeIterator [friend]
 

LogStream& operator<< LogStream stream,
const Edge edge
[friend]
 

Display condensed edge data.

friend class TetMeshRefinement [friend]
 

friend class Tetrahedron [friend]
 

friend class Triangle [friend]
 

friend class TriMeshRefinement [friend]
 


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


Documentation automatically generated with Doxygen on 10 Sep 2004.