Gyselalib++
 
Loading...
Searching...
No Matches
Interface< Edge1Type, Edge2Type, orientations_agree_bool > Struct Template Reference

Represent a simple sticking of two edges. More...

Public Types

using Edge1 = Edge1Type
 Edge type of the first patch.
 
using Edge2 = Edge2Type
 Edge type of the second patch.
 
template<class Edge , class = std::enable_if_t<std::is_same_v<Edge, Edge1> || std::is_same_v<Edge, Edge2>>>
using OtherEdge = std::conditional_t< std::is_same_v< Edge, Edge1 >, Edge2, Edge1 >
 A tool to get the other edge of an interface.
 

Static Public Member Functions

template<class Patch >
static constexpr bool connected_to_patch ()
 A compile-time function to check if an interface is on the edge of a given patch.
 

Static Public Attributes

static constexpr bool orientations_agree = orientations_agree_bool
 If True, the parametrisations of the physical edge have the same orientation.
 

Detailed Description

template<class Edge1Type, class Edge2Type, bool orientations_agree_bool>
struct Interface< Edge1Type, Edge2Type, orientations_agree_bool >

Represent a simple sticking of two edges.

Template Parameters
Edge1TypeEdge type defined on first patch.
Edge2TypeEdge type defined on second patch.
orientations_agree_boolBoolean, if true, the parametrisations of the physical edge have the same orientation; else, the parametrisations of the physical edge have the opposite orientation.
See also
EdgeTransformation

Member Typedef Documentation

◆ OtherEdge

template<class Edge1Type , class Edge2Type , bool orientations_agree_bool>
template<class Edge , class = std::enable_if_t<std::is_same_v<Edge, Edge1> || std::is_same_v<Edge, Edge2>>>
using Interface< Edge1Type, Edge2Type, orientations_agree_bool >::OtherEdge = std::conditional_t<std::is_same_v<Edge, Edge1>, Edge2, Edge1>

A tool to get the other edge of an interface.

I.e. to get Edge1 given Edge2 or Edge2 given Edge1

Member Function Documentation

◆ connected_to_patch()

template<class Edge1Type , class Edge2Type , bool orientations_agree_bool>
template<class Patch >
static constexpr bool Interface< Edge1Type, Edge2Type, orientations_agree_bool >::connected_to_patch ( )
inlinestaticconstexpr

A compile-time function to check if an interface is on the edge of a given patch.

Template Parameters
Thepatch which may be connected
Returns
True if the patch is connected, False otherwise.

Member Data Documentation

◆ orientations_agree

template<class Edge1Type , class Edge2Type , bool orientations_agree_bool>
constexpr bool Interface< Edge1Type, Edge2Type, orientations_agree_bool >::orientations_agree = orientations_agree_bool
staticconstexpr

If True, the parametrisations of the physical edge have the same orientation.

If False, the parametrisations of the physical edge have the opposite orientation. (See EdgeTransformation).


The documentation for this struct was generated from the following file: