UPstream_dataType< T > Struct Template Reference

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

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

Public Types

using base = std::conditional_t< UPstream_any_dataType< T >::value, typename UPstream_any_dataType< T >::base, typename UPstream_any_dataType< typename pTraits_cmptType< T >::type >::base >
 The underlying data type (if supported) or byte. More...
 

Static Public Member Functions

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

Static Public Attributes

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

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 418 of file UPstreamTraits.H.

Member Typedef Documentation

◆ base

using base = std::conditional_t < UPstream_any_dataType<T>::value, typename UPstream_any_dataType<T>::base, typename UPstream_any_dataType <typename pTraits_cmptType<T>::type>::base >

The underlying data type (if supported) or byte.

Definition at line 435 of file UPstreamTraits.H.

Member Function Documentation

◆ size()

static std::streamsize size ( std::streamsize  n)
inlinestaticnoexcept

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

Definition at line 446 of file UPstreamTraits.H.

References n, and Foam::T().

Here is the call graph for this function:

Member Data Documentation

◆ datatype_id

constexpr auto datatype_id
static
Initial value:

The corresponding UPstream::dataTypes enumeration.

Definition at line 440 of file UPstreamTraits.H.


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