Node_OneIncCell< Mesh > Class Template Reference

Vertex in a simplicial mesh that stores one cell incidence. More...

#include <Node_OneIncCell.h>

Inheritance diagram for Node_OneIncCell< Mesh >:
Node_VertSelfId< Mesh >

List of all members.

Public Types

enum  { N = base_type::N }
 

The space dimension.


typedef Mesh mesh_type
 The simplicial mesh.
typedef mesh_type::cell_iterator cell_iterator
 An iterator to a cell.
typedef
mesh_type::cell_const_iterator 
cell_const_iterator
 An iterator to a const cell.
typedef base_type::node_iterator node_iterator
 An iterator to a node.
typedef
base_type::node_const_iterator 
node_const_iterator
 An iterator to a const node.
typedef base_type::number_type number_type
 The number type.
typedef base_type::vertex_type vertex_type
 A vertex (a Cartesian point).

Public Member Functions

Constructors and Destructor.

 Node_OneIncCell ()
 Default constructor. Uninitialized point, and null identifier and iterators.
 Node_OneIncCell (const vertex_type &point, const int identifier=-1, const cell_iterator cell=0)
 Construct from a point, an identifier, and a cell iterator.
void build (const vertex_type &point, const int identifier=-1, const cell_iterator cell=0)
 Build from a point, an identifier, and a cell iterator.
 Node_OneIncCell (const Node_OneIncCell &x)
 Copy constructor.
 ~Node_OneIncCell ()
 Destructor.
Assignment operators.

Node_OneIncCelloperator= (const Node_OneIncCell &x)
 Assignment operator.
Accessors.

const vertex_typevertex () const
 Return the vertex.
int identifier () const
 Return the identifier of this node.
node_const_iterator self () const
 Return a const iterator to itself.
cell_const_iterator cell () const
 Return a const iterator to an incident cell.
Manipulators.

void set_vertex (const vertex_type &vertex)
 Set the vertex.
void set_identifier (const int identifier) const
 Set the identifier.
node_iterator self ()
 Return an iterator to itself.
void set_self (const node_iterator v)
 Set the iterator to the derived node.
cell_iterator cell ()
 Return an iterator to an incident cell.
void add_cell (const cell_iterator c)
 Add an adjacent cell.
void remove_cell (const cell_iterator c)
 Remove an adjacent cell.
Equality.

bool operator== (const Node_OneIncCell &x) const
 Return true if this is equal to x.
bool operator!= (const Node_OneIncCell &x) const
 Return true if this is not equal to x.
File I/O.

void put (std::ostream &out) const
 Write the vertex, identifier, and the incident cell identifier.

Detailed Description

template<class Mesh>
class Node_OneIncCell< Mesh >

Vertex in a simplicial mesh that stores one cell incidence.

Parameters:
Mesh is the simplicial mesh.

The base class has the Cartesian point and a vertex iterator. This class stores an iterator to one incident cell.


Member Function Documentation

template<class Mesh >
int Node_OneIncCell< Mesh >::identifier (  )  const [inline]

Return the identifier of this node.

Typically, the identifier is in the range [0...num_vertices). and a value of -1 indicates that the identifier has not been calculated.

Reimplemented from Node_VertSelfId< Mesh >.

References Node_VertSelfId< Mesh >::identifier().

Referenced by Node_OneIncCell< Mesh >::build().

template<class Mesh >
void Node_OneIncCell< Mesh >::set_identifier ( const int  identifier  )  const [inline]

Set the identifier.

Note:
This member function is const because the identifier is mutable. It is intended to be modified as the mesh changes.

Reimplemented from Node_VertSelfId< Mesh >.

References Node_VertSelfId< Mesh >::set_identifier().


The documentation for this class was generated from the following file:
Generated on Thu Jun 30 02:14:58 2016 for Computational Geometry Package by  doxygen 1.6.3