GCC Code Coverage Report


Directory: ./
File: Geometry/neighFacesOfEdges.hpp
Date: 2024-04-14 07:32:34
Exec Total Coverage
Lines: 6 6 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 // ______ ______ _ _ _____ ______
2 // | ____| ____| | (_)/ ____| | ____|
3 // | |__ | |__ | | _| (___ ___| |__
4 // | __| | __| | | | |\___ \ / __| __|
5 // | | | |____| |____| |____) | (__| |____
6 // |_| |______|______|_|_____/ \___|______|
7 // Finite Elements for Life Sciences and Engineering
8 //
9 // License: LGL2.1 License
10 // FELiScE default license: LICENSE in root folder
11 //
12 // Main authors: J. Foulon & V. Martin
13 //
14
15 #ifndef GEOMETRICNEIGHFACESOFEDGES_HPP
16 #define GEOMETRICNEIGHFACESOFEDGES_HPP
17
18 // System includes
19 #include <ostream>
20
21 // External includes
22
23 // Project includes
24 #include "Core/shared_pointers.hpp"
25 #include "Geometry/geometricMeshRegion.hpp"
26
27 namespace felisce
28 {
29 ///////////////////////////////////////
30 // NEIGHBOURS FACES OF EDGES CLASS //
31 ///////////////////////////////////////
32
33 //class GeometricMeshRegion;
34 class NeighFacesOfEdges {
35 public:
36
37 /// Pointer definition of NeighFacesOfEdges
38 FELISCE_CLASS_POINTER_DEFINITION(NeighFacesOfEdges);
39
40 typedef GeometricMeshRegion::ElementType ElementType;
41
42 // Constructor / Destructor
43 // ========================
44 NeighFacesOfEdges() = default;
45 ~NeighFacesOfEdges() = default;
46
47 // getter
48 // ======
49 inline const felInt& idFace() const {
50 return m_idFace;
51 }
52 inline const ElementType& typeFace() const {
53 return m_typeFace;
54 }
55 inline const int& idLocalEdge() const {
56 return m_idLocalEdge;
57 }
58
59 // setter
60 // ======
61 2786576 inline felInt& idFace() {
62 2786576 return m_idFace;
63 }
64 2782268 inline ElementType& typeFace() {
65 2782268 return m_typeFace;
66 }
67 281960 inline int& idLocalEdge() {
68 281960 return m_idLocalEdge;
69 }
70
71 // print a face neighbour
72 // ======================
73 void print( std::ostream& outstr = std::cout, int verbose = 0 ) const;
74
75 private:
76 felInt m_idFace; //!face's number per eltType
77 ElementType m_typeFace; //!eltType of the face
78 int m_idLocalEdge; //!local number of the edge in the face
79 };
80 }
81
82 #endif
83