Loading...
Searching...
No Matches
UPstream_dataType< T > Struct Template Reference

UPstream fundamental/aliased/user-defined data type or a component aggregate of the same. More...

#include <UPstreamTraits.H>

Inheritance diagram for UPstream_dataType< T >:
Collaboration diagram for UPstream_dataType< T >:

Public Types

using base
 The underlying data type (if supported) or byte.

Static Public Member Functions

static constexpr std::streamsize size (std::streamsize n) noexcept
 The size in terms of the number of base data elements.

Static Public Attributes

static constexpr auto datatype_id
 The corresponding UPstream::dataTypes enumeration.

Detailed Description

template<class T>
struct Foam::UPstream_dataType< T >

UPstream fundamental/aliased/user-defined data type or a component aggregate of the same.

True for the following conditions:

  • The Type is directly supported
  • The cmptType (eg, from VectorSpace) exists and is directly supported
  • Fallback to byte-wise representation (ie, for contiguous)

Definition at line 421 of file UPstreamTraits.H.

Member Typedef Documentation

◆ base

template<class T>
using base
Initial value:
std::conditional_t
<
>
UPstream data type (fundamental or user-defined), after resolving any aliases.
std::conditional_t< UPstream_user_dataType< std::remove_cv_t< T > >::value, std::remove_cv_t< T >, typename UPstream_alias_dataType< T >::base > base
std::conditional_t< UPstream_alias_dataType< T >::value, typename UPstream_alias_dataType< T >::base, typename UPstream_alias_dataType< typename pTraits_cmptType< T >::type >::base > base
The underlying data type (if supported) or byte.

The underlying data type (if supported) or byte.

Definition at line 432 of file UPstreamTraits.H.

Member Function Documentation

◆ size()

template<class T>
constexpr std::streamsize size ( std::streamsize n)
inlinestaticconstexprnoexcept

The size in terms of the number of base data elements.

Definition at line 449 of file UPstreamTraits.H.

References n, and Foam::T().

Here is the call graph for this function:

Member Data Documentation

◆ datatype_id

template<class T>
auto datatype_id
staticconstexpr
Initial value:
=
static constexpr auto datatype_id
The corresponding UPstream::dataTypes enumeration.

The corresponding UPstream::dataTypes enumeration.

Definition at line 443 of file UPstreamTraits.H.


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