LeechCraft  0.6.70-10870-g558588d6ec
Modular cross-platform feature rich live environment.
LeechCraft::Util::Introspectable Class Reference

#include "introspectable.h"

Public Member Functions

 Introspectable (const Introspectable &)=delete
 
Introspectableoperator= (const Introspectable &)=delete
 
template<typename T , typename U >
void Register (const U &intro, decltype(std::invoke(intro, std::declval< QVariant >())) *=nullptr)
 
template<typename T , typename U >
void Register (const U &intro, decltype(std::invoke(intro, std::declval< T >())) *=nullptr)
 
template<typename T >
QVariantMap operator() (const T &t) const
 
QVariantMap operator() (const QVariant &) const
 

Static Public Member Functions

static IntrospectableInstance ()
 

Detailed Description

Definition at line 44 of file introspectable.h.

Constructor & Destructor Documentation

◆ Introspectable()

LeechCraft::Util::Introspectable::Introspectable ( const Introspectable )
delete

Member Function Documentation

◆ Instance()

Introspectable & LeechCraft::Util::Introspectable::Instance ( )
static

Definition at line 38 of file introspectable.cpp.

◆ operator()() [1/2]

template<typename T >
QVariantMap LeechCraft::Util::Introspectable::operator() ( const T &  t) const
inline

Definition at line 69 of file introspectable.h.

◆ operator()() [2/2]

QVariantMap LeechCraft::Util::Introspectable::operator() ( const QVariant &  variant) const

Definition at line 44 of file introspectable.cpp.

◆ operator=()

Introspectable& LeechCraft::Util::Introspectable::operator= ( const Introspectable )
delete

◆ Register() [1/2]

template<typename T , typename U >
void LeechCraft::Util::Introspectable::Register ( const U &  intro,
decltype(std::invoke(intro, std::declval< QVariant >())) *  = nullptr 
)
inline

Definition at line 56 of file introspectable.h.

◆ Register() [2/2]

template<typename T , typename U >
void LeechCraft::Util::Introspectable::Register ( const U &  intro,
decltype(std::invoke(intro, std::declval< T >())) *  = nullptr 
)
inline

Definition at line 63 of file introspectable.h.


The documentation for this class was generated from the following files: