GCC Code Coverage Report


Directory: ./
File: Geometry/neighVolumesOfFaces.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 NEIGHVOLUMESOFFACES_HPP
16 #define NEIGHVOLUMESOFFACES_HPP
17
18 // System includes
19 #include <ostream>
20
21 // External includes
22
23 // Project includes
24 #include "Geometry/geometricMeshRegion.hpp"
25
26 namespace felisce
27 {
28 ///////////////////////////////////////
29 // NEIGHBOURS VOLUMES OF FACES CLASS //
30 ///////////////////////////////////////
31 /*!
32 \class NeighVolumesOfFaces
33 \authors J.Castelneau & J.Foulon
34
35 \brief Class implementing the volumes neighbours
36
37 A neighbour is defined by
38 - his global number
39 - his felisce name
40 - the local number of the face
41
42 */
43
44 class NeighVolumesOfFaces {
45 public:
46
47 typedef GeometricMeshRegion::ElementType ElementType;
48
49 // Constructor
50 // ===========
51 // NeighVolumesOfFaces() {}
52 // ~NeighVolumesOfFaces() {}
53
54 // getter
55 // ======
56 inline const felInt & idVolume() const {
57 return m_idVolume;
58 }
59 inline const ElementType & typeVolume() const {
60 return m_typeVolume;
61 }
62 inline const int & idLocalFace() const {
63 return m_idLocalFace;
64 }
65
66
67 // setter
68 // ======
69 3052443 inline felInt & idVolume() {
70 3052443 return m_idVolume;
71 }
72 3052443 inline ElementType & typeVolume() {
73 3052443 return m_typeVolume;
74 }
75 3052381 inline int & idLocalFace() {
76 3052381 return m_idLocalFace;
77 }
78
79 // print a volume neighbour
80 // ========================
81 void print( std::ostream& outstr = std::cout, int verbose = 0 ) const;
82
83 private:
84 felInt m_idVolume; //!volume's ID per eltType
85 ElementType m_typeVolume; //!eltType of the volume
86 int m_idLocalFace; //!local number of the face in the volume
87
88 };
89
90 }
91
92 #endif
93