LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::detail Namespace Reference

Classes

struct  Any
 
struct  AwaitableWrapper
 
struct  DBusTooltip
 
struct  DeadObjectInfo
 
struct  DecomposeMemberPtr
 
struct  DecomposeMemberPtr< R(C::*)>
 
struct  DropImpl
 
struct  DropImpl< 0, List >
 
struct  EitherAwaiter
 
struct  EitherFailureAbort
 
struct  Extension
 
struct  FC
 
struct  Filter
 
struct  Filter< Pred, List< Head, Tail... >, std::enable_if_t< Pred< Head >::value > >
 
struct  Filter< Pred, List< Head, Tail... >, std::enable_if_t<!Pred< Head >::value > >
 
struct  Filter< Pred, List<> >
 
struct  FinalSuspender
 
struct  Find
 
struct  Find< Name, Def >
 
struct  Find< Name, Def, Name< T >, Rest... >
 
struct  Find< Name, Def, T, Rest... >
 
struct  FutureAwaiter
 
struct  GetPromise
 
struct  IconFrame
 
struct  Initializer
 
struct  Initializer< WorkerType >
 
struct  InitializerBase
 
struct  IsDetected
 
struct  IsDetected< Default, std::void_t< Op< Args... > >, Op, Args... >
 
class  LambdaEventFilter
 
struct  NRAwaiter
 
struct  Overloaded
 
struct  ParallelTraits
 
struct  ParameterizedExtension
 
struct  ProcessAwaiter
 
struct  PromiseRet
 
struct  PromiseRet< void >
 
struct  Replace
 
struct  Replace< Container< U >, T >
 
class  ScopeGuard
 
class  SNIAdaptor
 
struct  TaskAwaiter
 
struct  TimerAwaiter
 
struct  VisitorBase
 
struct  VisitorFinallyTag
 
struct  WrapVoidResult
 
struct  WrapVoidResult< void >
 

Typedefs

template<Qt::ItemDataRole Role>
using RoleTag = std::integral_constant<Qt::ItemDataRole, Role>
 
template<typename T>
using WrapVoidResult_t = typename WrapVoidResult<T>::Type
 
template<typename F>
using CallTypeGetter_t = std::decay_t<decltype (*detail::TypeGetter (*static_cast<F*> (nullptr)))>
 
using DefaultScopeGuardDeleter = std::function<void ()>
 

Functions

QList< IconFrameIconToFrames (const QIcon &icon)
 
QDBusArgument & operator<< (QDBusArgument &out, const IconFrame &frame)
 
const QDBusArgument & operator>> (const QDBusArgument &in, IconFrame &frame)
 
QDBusArgument & operator<< (QDBusArgument &out, const DBusTooltip &tooltip)
 
const QDBusArgument & operator>> (const QDBusArgument &in, DBusTooltip &tooltip)
 
template<typename T>
constexpr int GetFieldsCount ()
 
template<typename T>
QVariant GetFieldImpl (const T &item, int idx, FC< 1 >)
 
template<typename T>
QVariant GetFieldImpl (const T &item, int idx, FC< 2 >)
 
template<typename T>
QVariant GetFieldImpl (const T &item, int idx, FC< 3 >)
 
template<typename T>
QVariant GetFieldImpl (const T &item, int idx, FC< 4 >)
 
template<typename T>
QVariant GetFieldImpl (const T &item, int idx, FC< 5 >)
 
template<typename T>
QVariant GetFieldImpl (const T &item, int idx, FC< 6 >)
 
template<typename T>
QVariant GetField (const T &item, int idx)
 
template<typename T1, typename T2>
consteval bool JMEq (const T1 &v1, const T2 &v2)
 
template<typename T>
constexpr bool IsFunctorImpl (int, typename InstanceFunctor< T >::UndefinedTag *=nullptr)
 
template<typename T>
constexpr bool IsFunctorImpl (float)
 
template<typename Res, typename T>
void Append (Res &result, T &&val) noexcept
 
template<typename ResultContainer, typename Container, typename F>
auto MapImpl (Container &&c, F f)
 
template<typename R, typename... Args>
std::tuple< R, Args... > * TypeGetter (R(*)(Args...))
 
template<typename F>
auto TypeGetter (F &&f) -> decltype(TypeGetter(+f))
 
template<typename C, typename R, typename... Args>
std::tuple< R, Args... > * TypeGetter (R(C::*)(Args...) const)
 
template<typename C>
decltype(TypeGetter(&C::operator())) TypeGetter (const C &c)
 
template<template< typename... > class List, typename Tuple, size_t... Is>
constexpr auto InitImpl (std::integer_sequence< size_t, Is... >)
 
template<class... Ts>
 Overloaded (Ts...) -> Overloaded< Ts... >
 
void CheckDeadObjects (const QVector< DeadObjectInfo > &deadObjects)
 
template<typename T>
decltype(auto) Awaiter (T &&obj)
 
template<typename Promise>
void TerminateLeftyCoroutine (std::coroutine_handle< Promise > handle, const auto &error)
 

Typedef Documentation

◆ CallTypeGetter_t

template<typename F>
using LC::Util::detail::CallTypeGetter_t = std::decay_t<decltype (*detail::TypeGetter (*static_cast<F*> (nullptr)))>

Definition at line 33 of file typegetter.h.

◆ DefaultScopeGuardDeleter

using LC::Util::detail::DefaultScopeGuardDeleter = std::function<void ()>

Definition at line 40 of file util.h.

◆ RoleTag

template<Qt::ItemDataRole Role>
using LC::Util::detail::RoleTag = std::integral_constant<Qt::ItemDataRole, Role>

Definition at line 75 of file itemsmodel.h.

◆ WrapVoidResult_t

template<typename T>
using LC::Util::detail::WrapVoidResult_t = typename WrapVoidResult<T>::Type

Definition at line 200 of file functor.h.

Function Documentation

◆ Append()

template<typename Res, typename T>
void LC::Util::detail::Append ( Res & result,
T && val )
noexcept

Definition at line 64 of file prelude.h.

Referenced by LC::Util::Concat(), LC::Util::Filter(), and MapImpl().

+ Here is the caller graph for this function:

◆ Awaiter()

template<typename T>
decltype(auto) LC::Util::detail::Awaiter ( T && obj)

Definition at line 38 of file context.h.

References Awaiter().

Referenced by LC::Util::ContextExtensions< typename >::await_transform(), and Awaiter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CheckDeadObjects()

UTIL_THREADS_API void LC::Util::detail::CheckDeadObjects ( const QVector< DeadObjectInfo > & deadObjects)

Definition at line 32 of file context.cpp.

Referenced by LC::Util::detail::AwaitableWrapper< Promise, OrigAwaiter >::await_resume().

+ Here is the caller graph for this function:

◆ GetField()

template<typename T>
QVariant LC::Util::detail::GetField ( const T & item,
int idx )

Definition at line 157 of file flatitemsmodel.h.

References GetFieldImpl(), and GetFieldsCount().

Referenced by LC::Util::FlatItemsModel< T >::GetData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetFieldImpl() [1/6]

template<typename T>
QVariant LC::Util::detail::GetFieldImpl ( const T & item,
int idx,
FC< 1 >  )

Definition at line 49 of file flatitemsmodel.h.

Referenced by GetField().

+ Here is the caller graph for this function:

◆ GetFieldImpl() [2/6]

template<typename T>
QVariant LC::Util::detail::GetFieldImpl ( const T & item,
int idx,
FC< 2 >  )

Definition at line 62 of file flatitemsmodel.h.

◆ GetFieldImpl() [3/6]

template<typename T>
QVariant LC::Util::detail::GetFieldImpl ( const T & item,
int idx,
FC< 3 >  )

Definition at line 77 of file flatitemsmodel.h.

◆ GetFieldImpl() [4/6]

template<typename T>
QVariant LC::Util::detail::GetFieldImpl ( const T & item,
int idx,
FC< 4 >  )

Definition at line 94 of file flatitemsmodel.h.

◆ GetFieldImpl() [5/6]

template<typename T>
QVariant LC::Util::detail::GetFieldImpl ( const T & item,
int idx,
FC< 5 >  )

Definition at line 113 of file flatitemsmodel.h.

◆ GetFieldImpl() [6/6]

template<typename T>
QVariant LC::Util::detail::GetFieldImpl ( const T & item,
int idx,
FC< 6 >  )

Definition at line 134 of file flatitemsmodel.h.

◆ GetFieldsCount()

template<typename T>
int LC::Util::detail::GetFieldsCount ( )
constexpr

Definition at line 28 of file flatitemsmodel.h.

Referenced by GetField().

+ Here is the caller graph for this function:

◆ IconToFrames()

QList< IconFrame > LC::Util::detail::IconToFrames ( const QIcon & icon)

Definition at line 37 of file fancytrayiconfreedesktop.cpp.

References LC::Util::detail::IconFrame::FromPixmap(), and LC::Util::Map().

Referenced by operator<<().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitImpl()

template<template< typename... > class List, typename Tuple, size_t... Is>
auto LC::Util::detail::InitImpl ( std::integer_sequence< size_t, Is... > )
constexpr

Definition at line 82 of file typelist.h.

Referenced by LC::Util::Init().

+ Here is the caller graph for this function:

◆ IsFunctorImpl() [1/2]

template<typename T>
bool LC::Util::detail::IsFunctorImpl ( float )
constexpr

Definition at line 79 of file functor.h.

◆ IsFunctorImpl() [2/2]

template<typename T>
bool LC::Util::detail::IsFunctorImpl ( int ,
typename InstanceFunctor< T >::UndefinedTag * = nullptr )
constexpr

Definition at line 73 of file functor.h.

Referenced by LC::Util::IsFunctor().

+ Here is the caller graph for this function:

◆ JMEq()

template<typename T1, typename T2>
bool LC::Util::detail::JMEq ( const T1 & v1,
const T2 & v2 )
consteval

Definition at line 51 of file ctstringutils.h.

Referenced by LC::Util::Nub().

+ Here is the caller graph for this function:

◆ MapImpl()

template<typename ResultContainer, typename Container, typename F>
auto LC::Util::detail::MapImpl ( Container && c,
F f )

Definition at line 85 of file prelude.h.

References Append().

Referenced by LC::Util::Map(), and LC::Util::MapAs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator<<() [1/2]

QDBusArgument & LC::Util::detail::operator<< ( QDBusArgument & out,
const DBusTooltip & tooltip )

Definition at line 66 of file fancytrayiconfreedesktop.cpp.

References IconToFrames(), LC::Util::detail::DBusTooltip::Subtitle_, and LC::Util::detail::DBusTooltip::Title_.

+ Here is the call graph for this function:

◆ operator<<() [2/2]

QDBusArgument & LC::Util::detail::operator<< ( QDBusArgument & out,
const IconFrame & frame )

◆ operator>>() [1/2]

const QDBusArgument & LC::Util::detail::operator>> ( const QDBusArgument & in,
DBusTooltip & tooltip )

◆ operator>>() [2/2]

const QDBusArgument & LC::Util::detail::operator>> ( const QDBusArgument & in,
IconFrame & frame )

◆ Overloaded()

template<class... Ts>
LC::Util::detail::Overloaded ( Ts... ) -> Overloaded< Ts... >

◆ TerminateLeftyCoroutine()

template<typename Promise>
void LC::Util::detail::TerminateLeftyCoroutine ( std::coroutine_handle< Promise > handle,
const auto & error )

Definition at line 22 of file either.h.

Referenced by LC::Util::AsDomDocument::await_suspend(), and LC::Util::detail::EitherAwaiter< L, R, ErrorHandler >::await_suspend().

+ Here is the caller graph for this function:

◆ TypeGetter() [1/4]

template<typename C>
decltype(TypeGetter(&C::operator())) LC::Util::detail::TypeGetter ( const C & c)

References TypeGetter().

+ Here is the call graph for this function:

◆ TypeGetter() [2/4]

template<typename F>
auto LC::Util::detail::TypeGetter ( F && f) -> decltype(TypeGetter(+f))

◆ TypeGetter() [3/4]

template<typename R, typename... Args>
std::tuple< R, Args... > * LC::Util::detail::TypeGetter ( R(*  )(Args...))

Referenced by TypeGetter().

+ Here is the caller graph for this function:

◆ TypeGetter() [4/4]

template<typename C, typename R, typename... Args>
std::tuple< R, Args... > * LC::Util::detail::TypeGetter ( R(C::*  )(Args...) const)