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  

Private function  

Static functions  

  • static MetaCache & get_meta(const QObject &obj)
  • static MetaCache & get_meta(const QMetaObject *mo)

Private fields  

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

Ref<Member> get_member(const String &name) const  

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

Ref<Member> get_member_throw(const String &name) const  

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.

static MetaCache & get_meta(const QObject &obj)  

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

Valid XHTML 1.0 StrictGenerated by diaxen on Sat Mar 30 16:23:03 2013 using MkDoc