Flow123d  release_3.0.0-872-gff21c48
Public Member Functions | Private Attributes | List of all members
NodeAccessor< spacedim > Class Template Reference

#include <mesh.h>

Collaboration diagram for NodeAccessor< spacedim >:
Collaboration graph
[legend]

Public Member Functions

 NodeAccessor ()
 
 NodeAccessor (const Mesh *mesh, unsigned int idx)
 
bool is_valid () const
 
const Nodenode () const
 
unsigned int idx () const
 
unsigned int index () const
 
void inc ()
 
bool operator== (const NodeAccessor< spacedim > &other)
 
const Nodeoperator-> () const
 

Private Attributes

const Meshmesh_
 Pointer to the mesh owning the node. More...
 
unsigned int node_idx_
 Index into Mesh::node_vec_ array. More...
 

Detailed Description

template<int spacedim>
class NodeAccessor< spacedim >

Node accessor templated just by dimension of the embedding space, used for access to nodes out of Mesh. This should allow algorithms over nodes.

Definition at line 54 of file mesh.h.

Constructor & Destructor Documentation

template<int spacedim>
NodeAccessor< spacedim >::NodeAccessor ( )
inline

Default invalid accessor.

Definition at line 34 of file node_accessor.hh.

template<int spacedim>
NodeAccessor< spacedim >::NodeAccessor ( const Mesh mesh,
unsigned int  idx 
)
inline

Node accessor.

Definition at line 41 of file node_accessor.hh.

Member Function Documentation

template<int spacedim>
unsigned int NodeAccessor< spacedim >::idx ( ) const
inline

Definition at line 53 of file node_accessor.hh.

Here is the caller graph for this function:

template<int spacedim>
void NodeAccessor< spacedim >::inc ( )
inline

Definition at line 61 of file node_accessor.hh.

template<int spacedim>
unsigned int NodeAccessor< spacedim >::index ( ) const
inline

Definition at line 57 of file node_accessor.hh.

template<int spacedim>
bool NodeAccessor< spacedim >::is_valid ( ) const
inline

Definition at line 45 of file node_accessor.hh.

Here is the caller graph for this function:

template<int spacedim>
const Node* NodeAccessor< spacedim >::node ( ) const
inline

Definition at line 49 of file node_accessor.hh.

template<int spacedim>
const Node* NodeAccessor< spacedim >::operator-> ( ) const
inline

-> dereference operator

Allow simplify calling of node() method. Example:

NodeAccessor<3> node_ac(mesh, index);
arma::vec centre;
centre = node_ac.node()->point(); // full format of access to node
centre = node_ac->point(); // short format with dereference operator

Definition at line 81 of file node_accessor.hh.

template<int spacedim>
bool NodeAccessor< spacedim >::operator== ( const NodeAccessor< spacedim > &  other)
inline

Definition at line 66 of file node_accessor.hh.

Member Data Documentation

template<int spacedim>
const Mesh* NodeAccessor< spacedim >::mesh_
private

Pointer to the mesh owning the node.

Definition at line 87 of file node_accessor.hh.

template<int spacedim>
unsigned int NodeAccessor< spacedim >::node_idx_
private

Index into Mesh::node_vec_ array.

Definition at line 90 of file node_accessor.hh.


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