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 Namespace Reference

Namespaces

namespace  detail

Classes

struct  ClassInfos
struct  ConstructorData
struct  EnumData
struct  FunctionData
struct  FunctionData< Ret(Args...) const, ExtraFlags >
struct  FunctionData< Ret(Args...), ExtraFlags >
struct  MetaObjectContents
struct  MethodData
struct  NoType
struct  PropertyData
struct  RevisionedConstructorData
struct  RevisionedMethodData
struct  RevisionedSignalData
struct  RevisionedSlotData
struct  SignalData
struct  SlotData
struct  StringData
struct  StringRefStorage
struct  UintData

Functions

template<uint... Nx>
constexpr auto stringData (const char(&...strings)[Nx])
template<typename FuncType>
bool indexOfMethod (void **_a, FuncType f, int index) noexcept
template<typename Prop, typename Value>
bool setProperty (Prop &property, Value &&value)
template<typename ObjectType, typename Unique, typename Strings, typename Methods, typename Properties, typename Enums, typename Constructors = UintData<>, typename ClassInfo = detail::UintDataBlock<0, 0>>
constexpr auto metaObjectData (uint flags, const Strings &strings, const Methods &methods, const Properties &properties, const Enums &enums, const Constructors &constructors={}, const ClassInfo &classInfo={})
template<typename T>
std::enable_if_t< std::is_enum_v< T > > assignFlags (void *v, T t) noexcept
template<typename T>
std::enable_if_t< QtPrivate::IsQFlags< T >::valueassignFlags (void *v, T t) noexcept

Variables

static constexpr size_t MaxStringSize

Function Documentation

◆ assignFlags() [1/2]

template<typename T>
std::enable_if_t< std::is_enum_v< T > > QtMocHelpers::assignFlags ( void * v,
T t )
inlinenoexcept

Definition at line 588 of file qtmochelpers.h.

◆ assignFlags() [2/2]

template<typename T>
std::enable_if_t< QtPrivate::IsQFlags< T >::value > QtMocHelpers::assignFlags ( void * v,
T t )
inlinenoexcept

Definition at line 593 of file qtmochelpers.h.

◆ indexOfMethod()

template<typename FuncType>
bool QtMocHelpers::indexOfMethod ( void ** _a,
FuncType f,
int index )
inlinenoexcept

Definition at line 111 of file qtmochelpers.h.

◆ metaObjectData()

template<typename ObjectType, typename Unique, typename Strings, typename Methods, typename Properties, typename Enums, typename Constructors = UintData<>, typename ClassInfo = detail::UintDataBlock<0, 0>>
auto QtMocHelpers::metaObjectData ( uint flags,
const Strings & strings,
const Methods & methods,
const Properties & properties,
const Enums & enums,
const Constructors & constructors = {},
const ClassInfo & classInfo = {} )
constexpr

Definition at line 512 of file qtmochelpers.h.

◆ setProperty()

template<typename Prop, typename Value>
bool QtMocHelpers::setProperty ( Prop & property,
Value && value )
inline

Definition at line 121 of file qtmochelpers.h.

◆ stringData()

template<uint... Nx>
auto QtMocHelpers::stringData ( const char(&...strings)[Nx])
constexpr

Definition at line 106 of file qtmochelpers.h.

Variable Documentation

◆ MaxStringSize

size_t QtMocHelpers::MaxStringSize
staticconstexpr
Initial value:
=
(std::min)(size_t((std::numeric_limits<uint>::max)()),
size_t((std::numeric_limits<qsizetype>::max)()))

Definition at line 33 of file qtmochelpers.h.