Flow123d  jenkins-Flow123d-linux-release-multijob-282
element_impls.hh
Go to the documentation of this file.
1 /*
2  * element_impls.hh
3  *
4  * Created on: Jun 27, 2012
5  * Author: jb
6  */
7 
8 #ifndef ELEMENT_IMPLS_HH_
9 #define ELEMENT_IMPLS_HH_
10 
11 #include "elements.h"
12 #include "sides.h"
13 #include "side_impl.hh"
14 
15 inline unsigned int Element::dim() const {
16  return dim_;
17 }
18 
19 
20 inline unsigned int Element::index() const {
21  return mesh_->element.index( this );
22 }
23 
24 
25 inline unsigned int Element::n_nodes() const {
26  return dim()+1;
27 }
28 
29 
30 
31 inline unsigned int Element::n_sides() const {
32  return dim()+1;
33 }
34 
35 
36 
37 inline SideIter Element::side(const unsigned int loc_index) {
38  return SideIter( Side(this, loc_index) );
39 }
40 
41 inline const SideIter Element::side(const unsigned int loc_index) const {
42  return SideIter( Side(this, loc_index) );
43 }
44 #endif /* ELEMENT_IMPLS_HH_ */
Definition: sides.h:43
unsigned int n_nodes() const
unsigned int index() const
unsigned int dim() const
unsigned int n_sides() const
unsigned int index(const T *pointer) const
Definition: sys_vector.hh:383
SideIter side(const unsigned int loc_index)
unsigned int dim_
Definition: elements.h:138
Mesh * mesh_
Definition: elements.h:132
ElementVector element
Vector of elements of the mesh.
Definition: mesh.h:205