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

dolfin::Node Class Reference

#include <Node.h>

Collaboration diagram for dolfin::Node:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Node ()
 Create an unconnected node at (0,0,0).

 Node (real x)
 Create an unconnected node at (x,0,0).

 Node (real x, real y)
 Create an unconnected node at (x,y,0).

 Node (real x, real y, real z)
 Create an unconnected node at (x,y,z).

 ~Node ()
 Destructor.

void clear ()
 Clear node data.

int id () const
 --- Node data --- Return id of node

int noNodeNeighbors () const
 Return number of node neighbors.

int noCellNeighbors () const
 Return number of cell neighbors.

int noEdgeNeighbors () const
 Return number of edge neighbors.

Nodenode (int i) const
 Return node neighbor number i.

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

Edgeedge (int i) const
 Return edge neighbor number i.

Nodeparent () const
 Return parent node (null if no parent).

Nodechild () const
 Return child node (null if no child).

Pointcoord ()
 Return node coordinate.

Point coord () const
 Return node coordinate.

Point midpoint (const Node &n) const
 Return coordinate for midpoint on line to given node.

real dist (const Node &n) const
 Return distance to given node.

real dist (const Point &p) const
 Return distance to given point.

real dist (real x, real y=0.0, real z=0.0) const
 Return distance to point with given coordinates.

bool neighbor (const Node &n) const
 Check if given node is a neighbor.

bool operator== (const Node &node) const
 Comparison with another node.

bool operator!= (const Node &node) const
 Comparison with another node.

bool operator== (int id) const
 Comparison based on the node id.

bool operator< (int id) const
bool operator<= (int id) const
bool operator> (int id) const
bool operator>= (int id) const

Friends

class Mesh
 Friends.

class MeshRefinement
class TriMeshRefinement
class TetMeshRefinement
class Triangle
class Tetrahedron
class MeshData
class MeshInit
class NodeIterator::NodeNodeIterator
class CellIterator::NodeCellIterator
class EdgeIterator::NodeEdgeIterator
bool operator== (int id, const Node &node)
bool operator< (int id, const Node &node)
bool operator<= (int id, const Node &node)
bool operator> (int id, const Node &node)
bool operator>= (int id, const Node &node)
LogStreamoperator<< (LogStream &stream, const Node &node)
 Display condensed node data.


Constructor & Destructor Documentation

Node::Node  ) 
 

Create an unconnected node at (0,0,0).

Node::Node real  x  ) 
 

Create an unconnected node at (x,0,0).

Node::Node real  x,
real  y
 

Create an unconnected node at (x,y,0).

Node::Node real  x,
real  y,
real  z
 

Create an unconnected node at (x,y,z).

Node::~Node  ) 
 

Destructor.


Member Function Documentation

Cell & Node::cell int  i  )  const
 

Return cell neighbor number i.

Node * Node::child  )  const
 

Return child node (null if no child).

void Node::clear  ) 
 

Clear node data.

Point Node::coord  )  const
 

Return node coordinate.

Point & Node::coord  ) 
 

Return node coordinate.

real Node::dist real  x,
real  y = 0.0,
real  z = 0.0
const
 

Return distance to point with given coordinates.

real Node::dist const Point p  )  const
 

Return distance to given point.

real Node::dist const Node n  )  const
 

Return distance to given node.

Edge & Node::edge int  i  )  const
 

Return edge neighbor number i.

int Node::id  )  const
 

--- Node data --- Return id of node

Point Node::midpoint const Node n  )  const
 

Return coordinate for midpoint on line to given node.

bool Node::neighbor const Node n  )  const
 

Check if given node is a neighbor.

int Node::noCellNeighbors  )  const
 

Return number of cell neighbors.

Node & Node::node int  i  )  const
 

Return node neighbor number i.

int Node::noEdgeNeighbors  )  const
 

Return number of edge neighbors.

int Node::noNodeNeighbors  )  const
 

Return number of node neighbors.

bool Node::operator!= const Node node  )  const
 

Comparison with another node.

bool Node::operator< int  id  )  const
 

bool Node::operator<= int  id  )  const
 

bool Node::operator== int  id  )  const
 

Comparison based on the node id.

bool Node::operator== const Node node  )  const
 

Comparison with another node.

bool Node::operator> int  id  )  const
 

bool Node::operator>= int  id  )  const
 

Node * Node::parent  )  const
 

Return parent node (null if no parent).


Friends And Related Function Documentation

friend class CellIterator::NodeCellIterator [friend]
 

friend class EdgeIterator::NodeEdgeIterator [friend]
 

friend class Mesh [friend]
 

Friends.

friend class MeshData [friend]
 

friend class MeshInit [friend]
 

friend class MeshRefinement [friend]
 

friend class NodeIterator::NodeNodeIterator [friend]
 

bool operator< int  id,
const Node node
[friend]
 

LogStream& operator<< LogStream stream,
const Node node
[friend]
 

Display condensed node data.

bool operator<= int  id,
const Node node
[friend]
 

bool operator== int  id,
const Node node
[friend]
 

bool operator> int  id,
const Node node
[friend]
 

bool operator>= int  id,
const Node node
[friend]
 

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.