Flow123d
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 "sides.h"
12 #include "side_impl.hh"
13 
14 inline unsigned int Element::dim() const {
15  return dim_;
16 }
17 
18 
19 inline unsigned int Element::index() const {
20  return mesh_->element.index( this );
21 }
22 
23 
24 inline unsigned int Element::n_nodes() const {
25  return dim()+1;
26 }
27 
28 
29 
30 inline unsigned int Element::n_sides() const {
31  return dim()+1;
32 }
33 
34 
35 
36 inline SideIter Element::side(const unsigned int loc_index) {
37  return SideIter( Side(this, loc_index) );
38 }
39 
40 inline const SideIter Element::side(const unsigned int loc_index) const {
41  return SideIter( Side(this, loc_index) );
42 }
43 #endif /* ELEMENT_IMPLS_HH_ */