18 #ifndef NODE_ACCESSOR_HH_ 19 #define NODE_ACCESSOR_HH_ 28 template <
int spacedim>
53 inline unsigned int idx()
const {
57 inline unsigned int index()
const {
62 ASSERT(
is_valid()).error(
"Do not call inc() for invalid accessor!");
const Node * node() const
NodeAccessor(const Mesh *mesh, unsigned int idx)
unsigned int node_idx_
Index into Mesh::node_vec_ array.
#define ASSERT(expr)
Allow use shorter versions of macro names if these names is not used with external library...
bool operator==(const NodeAccessor< spacedim > &other)
const Node * operator->() const
const Mesh * mesh_
Pointer to the mesh owning the node.
unsigned int index() const
int find_node_id(unsigned int pos) const
Return node id (in GMSH file) of node of given position in node vector.