7#include "include/Sfx_UniversalConstants.h"
18 template <
typename... Ts>
19 std::ostream&
operator<< ( std::ostream& os,
const std::tuple<Ts...>& theTuple)
22 [&os](
const Ts &...tupleArgs)
26 ((os << tupleArgs << (++n !=
sizeof...(Ts) ?
", " :
"")), ...);
45 template <
typename... Params>
73 auto size()
const {
return std::tuple_size_v<
decltype(
m_tpl)>; }
81 return std::get<1>(
m_tpl);
93 return std::make_tuple(std::get<1>(
m_tpl), std::get<2>(
m_tpl), std::get<3>(
m_tpl));
108 return std::get<0>(
m_tpl);
121 assert(std::get<0>(
m_tpl) < Sfx::EMCNEILNbSections::value);
131 bool isGNode()
const {
return (std::tuple_size_v<
decltype(
m_tpl)>) == 2; }
138 assert(std::get<0>(
m_tpl) < Sfx::EMCNEILNbSections::value);
Definition DamBreakProb.h:15
std::ostream & operator<<(std::ostream &os, const std::tuple< Ts... > &theTuple)
print tuple element (apply on a tuple)
Definition dbpp_NodalTpl.hpp:19
bool isGNode() const
tuple implement '<=>' spaceship operator
Definition dbpp_NodalTpl.hpp:131
bool isTiedNode() const
Definition dbpp_NodalTpl.hpp:136
auto size() const
Number of element.
Definition dbpp_NodalTpl.hpp:73
bool m_tiedNode
Definition dbpp_NodalTpl.hpp:48
auto Values() const
Nodal values.
Definition dbpp_NodalTpl.hpp:92
void setAsGhostNode()
Node part of global domain (not computational domain)
Definition dbpp_NodalTpl.hpp:127
std::tuple_element_t< 0, decltype(m_tpl)> index_type
first tuple element type
Definition dbpp_NodalTpl.hpp:54
std::tuple< Params... > m_tpl
Definition dbpp_NodalTpl.hpp:50
std::tuple_element_t< 1, decltype(m_tpl)> value_type
Alias (second tuple element type)
Definition dbpp_NodalTpl.hpp:58
auto isGhostNode() const noexcept
Definition dbpp_NodalTpl.hpp:119
NodalTpl(Params... Prms, bool tied=false)
Ctor from values.
Definition dbpp_NodalTpl.hpp:68
bool m_ghostNode
Definition dbpp_NodalTpl.hpp:49
std::optional< index_type > tieNodeIdx() const
boundary condition
Definition dbpp_NodalTpl.hpp:104
auto nodeNo() const noexcept
Global node index.
Definition dbpp_NodalTpl.hpp:99
NodalTpl()=default
default ctor
auto operator<=>(const NodalTpl &aOther) const =default
logical operator ==,!=, <,<=,>,>= data member tuple implement '<=>' spaceship operator
auto nodeXcoord() const
coordinate
Definition dbpp_NodalTpl.hpp:78