MetaCache class reference
[QObject wrapping module]
Declaration
This class is for internal use only.
#include <internal/MetaCache>
namespace QtLua {
class MetaCache;
};
This class is a member of the QtLua namespace.
This class is declared in internal/qtluametacache.hh source file, line 51.
Description
Qt meta properties, enums and methods are constant as described by QMetaObject objects. These meta members are exposed to lua through wrapper objects. This class manages a cache of already created Member based wrappers.
Members
Functions
- MetaCache(const MetaCache &mc)
- int get_enum_value(const String &name) const
- Ref<Member> get_member(const String &name) const
- const member_cache_t & get_member_table() const
- Ref<Member> get_member_throw(const String &name) const
- template X::ptr get_member_throw(const String &name) const
- const QMetaObject * get_meta_object() const
Private function
- MetaCache(const QMetaObject *mo)
Static functions
Private fields
- member_cache_t _member_cache
- static meta_cache_t _meta_cache
- const QMetaObject *_mo
Members detail
MetaCache(const QMetaObject *mo)
This constructor is declared in internal/qtluametacache.hh source file, line 54.
This member access is private.
MetaCache(const MetaCache &mc)
This constructor is declared in internal/qtluametacache.hh source file, line 58.
Copy constructor
member_cache_t _member_cache
This variable is declared in internal/qtluametacache.hh source file, line 84.
This member access is private.
static meta_cache_t _meta_cache
This variable is declared in internal/qtluametacache.hh source file, line 86.
This member access is private.
const QMetaObject *_mo
This variable is declared in internal/qtluametacache.hh source file, line 85.
This member access is private.
int get_enum_value(const String &name) const
This function is declared in internal/qtluametacache.hh source file, line 75.
Recursively search for enum value in class and parent classes, return -1 if not found
This function is declared in internal/qtluametacache.hh source file, line 66.
Recursively search for memeber in class and parent classes
const member_cache_t & get_member_table() const
This function is declared in internal/qtluametacache.hh source file, line 78.
Get member table
This function is declared in internal/qtluametacache.hh source file, line 68.
Recursively search for memeber in class and parent classes, throw if not found
template <typename X> X::ptr get_member_throw(const String &name) const
This template function is declared in internal/qtluametacache.hh source file, line 72.
Recursively search for memeber in class and parent classes and try to cast to given type, throw if fail.
This function is declared in internal/qtluametacache.hh source file, line 61.
Get cache meta information for a QObject
static MetaCache & get_meta(const QMetaObject *mo)
This function is declared in internal/qtluametacache.hh source file, line 63.
Get cache meta information for a QMetaObject
const QMetaObject * get_meta_object() const
This function is declared in internal/qtluametacache.hh source file, line 81.
Get associated QMetaObject pointer