$extrastylesheet
#include <side.h>
Public Member Functions | |
| SideEdge (const Elem *my_parent, const unsigned int my_edge) | |
| virtual Node *& | set_node (const unsigned int i) |
| virtual unsigned int | n_sides () const |
Private Attributes | |
| const unsigned int | _edge_number |
This defines the SideEdge class. Like Side, SideEdge is basically a proxy (or stand-in replacement) class, this time for an element's edge. It acts like a standard Elem, but allocates no additional memory for storing connectivity. Instead, its nodes are mapped directly from the parent element (the element for which the side is created). Similarly, you cannot access the neighbors of a side since it does not store any.
| libMesh::SideEdge< EdgeType, ParentType >::SideEdge | ( | const Elem * | my_parent, |
| const unsigned int | my_edge | ||
| ) | [inline] |
Constructor. Creates a side from an element.
Definition at line 124 of file side.h.
References libMesh::SideEdge< EdgeType, ParentType >::_edge_number, libMesh::libmesh_assert(), and n_nodes.
:
EdgeType(const_cast<Elem*>(my_parent)),
_edge_number(my_edge)
{
libmesh_assert(my_parent);
libmesh_assert_less (_edge_number, this->parent()->n_edges());
libmesh_assert_equal_to (this->dim(), 1);
for (unsigned int n=0; n != this->n_nodes(); ++n)
this->_nodes[n] = this->parent()->get_node
(ParentType::edge_nodes_map[_edge_number][n]);
}
| virtual unsigned int libMesh::SideEdge< EdgeType, ParentType >::n_sides | ( | ) | const [inline, virtual] |
| virtual Node* & libMesh::SideEdge< EdgeType, ParentType >::set_node | ( | const unsigned int | i | ) | [inline, virtual] |
Setting an edge node changes the node on the parent
Definition at line 141 of file side.h.
References libMesh::SideEdge< EdgeType, ParentType >::_edge_number, and n_nodes.
{
libmesh_assert_less (i, this->n_nodes());
return this->parent()->set_node (ParentType::edge_nodes_map[_edge_number][i]);
}
const unsigned int libMesh::SideEdge< EdgeType, ParentType >::_edge_number [private] |
The side on the parent element
Definition at line 160 of file side.h.
Referenced by libMesh::SideEdge< EdgeType, ParentType >::set_node(), and libMesh::SideEdge< EdgeType, ParentType >::SideEdge().