SpECTRE Documentation Coverage Report
Current view: top level - Domain/Structure - Side.hpp Hit Total Coverage
Commit: 1c32b58340e006addc79befb2cdaa7547247e09c Lines: 3 4 75.0 %
Date: 2024-04-19 07:30:15
Legend: Lines: hit not hit

          Line data    Source code
       1           1 : // Distributed under the MIT License.
       2             : // See LICENSE.txt for details.
       3             : 
       4             : /// \file
       5             : /// Defines enum class Side.
       6             : 
       7             : #pragma once
       8             : 
       9             : #include <iosfwd>
      10             : 
      11             : /// \ingroup ComputationalDomainGroup
      12             : /// A label for the side of a manifold.
      13             : ///
      14             : /// Lower and Upper are with respect to the logical coordinate whose axis is
      15             : /// normal to the side, i.e. beyond the Upper (Lower) side, the logical
      16             : /// coordinate is increasing (decreasing).
      17           0 : enum class Side { Lower, Upper };
      18             : 
      19             : /// The opposite side
      20           1 : constexpr inline Side opposite(const Side side) {
      21             :   return (Side::Lower == side ? Side::Upper : Side::Lower);
      22             : }
      23             : 
      24             : /// Output operator for a Side.
      25           1 : std::ostream& operator<<(std::ostream& os, const Side& side);

Generated by: LCOV version 1.14