Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QtMocHelpers::StringRefStorage< Strings > Struct Template Reference

#include <qtmochelpers.h>

Collaboration diagram for QtMocHelpers::StringRefStorage< Strings >:

Public Member Functions

constexpr StringRefStorage (const Strings &... strings) noexcept
constexpr void writeTo (uint(&offsets)[2 *StringCount], char(&data)[StringSize]) const noexcept
constexpr auto create () const noexcept

Static Public Member Functions

static constexpr size_t stringSizeHelper () noexcept

Public Attributes

const char * inputs [StringCount]

Static Public Attributes

static constexpr int StringCount = sizeof...(Strings)
static constexpr size_t StringSize = stringSizeHelper()

Detailed Description

template<typename... Strings>
struct QtMocHelpers::StringRefStorage< Strings >

Definition at line 57 of file qtmochelpers.h.

Constructor & Destructor Documentation

◆ StringRefStorage()

template<typename... Strings>
QtMocHelpers::StringRefStorage< Strings >::StringRefStorage ( const Strings &... strings)
inlineconstexprnoexcept

Definition at line 76 of file qtmochelpers.h.

References inputs.

Member Function Documentation

◆ create()

template<typename... Strings>
auto QtMocHelpers::StringRefStorage< Strings >::create ( ) const
inlineconstexprnoexcept

Definition at line 98 of file qtmochelpers.h.

References StringCount.

◆ stringSizeHelper()

template<typename... Strings>
constexpr size_t QtMocHelpers::StringRefStorage< Strings >::stringSizeHelper ( )
inlinestaticconstexprnoexcept

Definition at line 59 of file qtmochelpers.h.

◆ writeTo()

template<typename... Strings>
void QtMocHelpers::StringRefStorage< Strings >::writeTo ( uint(&) offsets[2 *StringCount],
char(&) data[StringSize] ) const
inlineconstexprnoexcept

Definition at line 81 of file qtmochelpers.h.

References inputs.

Member Data Documentation

◆ inputs

template<typename... Strings>
const char* QtMocHelpers::StringRefStorage< Strings >::inputs[StringCount]

Definition at line 74 of file qtmochelpers.h.

Referenced by StringRefStorage(), and writeTo().

◆ StringCount

template<typename... Strings>
int QtMocHelpers::StringRefStorage< Strings >::StringCount = sizeof...(Strings)
staticconstexpr

Definition at line 71 of file qtmochelpers.h.

Referenced by create().

◆ StringSize

template<typename... Strings>
size_t QtMocHelpers::StringRefStorage< Strings >::StringSize = stringSizeHelper()
staticconstexpr

Definition at line 72 of file qtmochelpers.h.


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