ug4
|
Base class for exported Classes. More...
#include <class.h>
Public Types | |
typedef void(* | DeleteFunction) (const void *) |
Public Member Functions | |
virtual bool | check_consistency () const |
returns false is consistency-check failed More... | |
virtual const ClassNameNode & | class_name_node () const =0 |
name node of class More... | |
virtual const std::vector< const char * > * | class_names () const =0 |
name-list of class hierarchy More... | |
virtual bool | construct_as_smart_pointer () const =0 |
true if the class shall be wrapped in a SmartPtr on construction More... | |
virtual void | destroy (void *obj) const =0 |
destructur for object More... | |
virtual const ExportedMethodGroup * | get_const_exported_method_group (const std::string &name) const =0 |
virtual const ExportedMethod & | get_const_method (size_t i) const =0 |
get exported const-method More... | |
virtual const ExportedMethodGroup & | get_const_method_group (size_t ind) const =0 |
returns the i-th method group (all overloads of the i-th function) More... | |
virtual const ExportedMethod & | get_const_overload (size_t funcInd, size_t oInd) const =0 |
returns the i-th overload of a const method More... | |
virtual const ExportedConstructor & | get_constructor (size_t i) const =0 |
get exported constructor More... | |
virtual DeleteFunction | get_delete_function () const =0 |
returns a function which will call delete on the object More... | |
virtual const ExportedMethodGroup * | get_exported_method_group (const std::string &name) const =0 |
virtual const boost::optional< ExportedConstructor & > | get_json_constructor () const =0 |
get constructor for construction from json More... | |
virtual const ExportedMethod & | get_method (size_t i) const =0 |
get exported method More... | |
virtual const ExportedMethodGroup & | get_method_group (size_t ind) const =0 |
returns the i-th method group (all overloads of the i-th function) More... | |
virtual const ExportedMethod & | get_overload (size_t funcInd, size_t oInd) const =0 |
returns the i-th overload of a method More... | |
virtual const std::string & | group () const =0 |
get groups More... | |
virtual bool | is_instantiable () const =0 |
virtual bool | is_json_constructible () const =0 |
get constructor for construction from json More... | |
virtual const std::string & | name () const =0 |
name of class More... | |
virtual size_t | num_const_methods () const =0 |
number of registered const-methods More... | |
virtual size_t | num_const_overloads (size_t funcInd) const =0 |
returns the number of overloads of a const method More... | |
virtual size_t | num_constructors () const =0 |
number of registered constructors More... | |
virtual size_t | num_methods () const =0 |
number of method of the class More... | |
virtual size_t | num_overloads (size_t funcInd) const =0 |
returns the number of overloads of a method More... | |
virtual const std::string & | tooltip () const =0 |
get tooltip More... | |
virtual | ~IExportedClass () |
virtual destructor More... | |
Base class for exported Classes.
typedef void(* ug::bridge::IExportedClass::DeleteFunction) (const void *) |
|
inlinevirtual |
virtual destructor
|
virtual |
returns false is consistency-check failed
References ug::baseName(), class_names(), name(), and UG_ERR_LOG.
Referenced by ug::bridge::Registry::check_consistency().
|
pure virtual |
name node of class
Implemented in ug::bridge::ExportedClass< TClass >.
Referenced by ug::bridge::lua::CreateBindings_LUA().
|
pure virtual |
name-list of class hierarchy
Implemented in ug::bridge::ExportedClass< TClass >.
Referenced by check_consistency(), ug::vrl::classes2NativeClasses(), ug::bridge::ClassHierarchyString(), ug::bridge::ClassUsage(), ug::bridge::lua::CreateBindings_LUA(), ug::bridge::lua::GetBestMatchingMember(), ug::vrl::getParentClasses(), ug::bridge::ClassHierarchy::insert_class(), and ug::bridge::UGTypeInfo().
|
pure virtual |
true if the class shall be wrapped in a SmartPtr on construction
Implemented in ug::bridge::ExportedClassBaseImpl.
Referenced by ug::bridge::Registry::check_consistency(), Java_edu_gcsc_vrl_ug_UG__1newInstance(), and ug::bridge::lua::LuaConstructor().
|
pure virtual |
destructur for object
Implemented in ug::bridge::ExportedClassBaseImpl.
Referenced by Java_edu_gcsc_vrl_ug_UG__1delete().
|
pure virtual |
Implemented in ug::bridge::ExportedClassBaseImpl.
Referenced by ug::vrl::invocation::getMethodBySignature().
|
pure virtual |
get exported const-method
Implemented in ug::bridge::ExportedClassBaseImpl.
Referenced by ug::bridge::Registry::check_consistency(), ug::bridge::ClassInfo(), ug::bridge::ClassUsageExact(), ug::bridge::lua::GetBestMatchingMember(), ug::bridge::GetMemberFunctionCompletitions(), and ug::bridge::GetMemberFunctionInfo().
|
pure virtual |
returns the i-th method group (all overloads of the i-th function)
Implemented in ug::bridge::ExportedClassBaseImpl.
Referenced by ug::bridge::lua::CreateBindings_LUA().
|
pure virtual |
returns the i-th overload of a const method
Implemented in ug::bridge::ExportedClassBaseImpl.
Referenced by ug::vrl::methods2NativeGroups().
|
pure virtual |
get exported constructor
Implemented in ug::bridge::ExportedClassBaseImpl.
Referenced by ug::bridge::Registry::check_consistency(), ug::vrl::constructors2NativeConstructors(), ug::vrl::invocation::getConstructorBySignature(), and ug::bridge::lua::LuaConstructor().
|
pure virtual |
returns a function which will call delete on the object
Implemented in ug::bridge::ExportedClass< TClass >.
Referenced by Java_edu_gcsc_vrl_ug_UG__1newInstance(), and ug::bridge::lua::LuaConstructor().
|
pure virtual |
Implemented in ug::bridge::ExportedClassBaseImpl.
Referenced by ug::vrl::invocation::getMethodBySignature().
|
pure virtual |
get constructor for construction from json
Implemented in ug::bridge::ExportedClassBaseImpl.
|
pure virtual |
get exported method
Implemented in ug::bridge::ExportedClassBaseImpl.
Referenced by ug::bridge::Registry::check_consistency(), ug::bridge::ClassInfo(), ug::bridge::ClassUsageExact(), ug::bridge::lua::GetBestMatchingMember(), ug::bridge::GetMemberFunctionCompletitions(), and ug::bridge::GetMemberFunctionInfo().
|
pure virtual |
returns the i-th method group (all overloads of the i-th function)
Implemented in ug::bridge::ExportedClassBaseImpl.
Referenced by ug::bridge::lua::CreateBindings_LUA().
|
pure virtual |
returns the i-th overload of a method
Implemented in ug::bridge::ExportedClassBaseImpl.
Referenced by ug::vrl::methods2NativeGroups().
|
pure virtual |
get groups
Implemented in ug::bridge::ExportedClass< TClass >.
Referenced by ug::vrl::classes2NativeClasses(), ug::bridge::ClassHierarchy::insert_class(), and ug::script::UGGetClassGroup().
|
pure virtual |
can we create instances of this class (i.e. the class does not contain pure virtual functions)
Implemented in ug::bridge::ExportedClassBaseImpl.
Referenced by ug::bridge::Registry::check_consistency(), ug::vrl::classes2NativeClasses(), ug::bridge::ClassInfo(), and ug::bridge::lua::CreateBindings_LUA().
|
pure virtual |
get constructor for construction from json
Implemented in ug::bridge::ExportedClass< TClass >.
Referenced by ug::bridge::ExportedClassBaseImpl::get_json_constructor().
|
pure virtual |
name of class
Implemented in ug::bridge::ExportedClass< TClass >.
Referenced by ug::bridge::Registry::check_consistency(), check_consistency(), ug::vrl::classes2NativeClasses(), ug::vrl::classGroups2NativeClassGroups(), ug::bridge::ClassInfo(), ug::bridge::ClassUsageExact(), ug::bridge::ExportedClassBaseImpl::constmethodname_registered(), ug::bridge::lua::CreateBindings_LUA(), ug::bridge::ExportedClassBaseImpl::get_const_exported_method_group(), ug::bridge::ExportedClassBaseImpl::get_exported_method_group(), ug::bridge::GetClassesCompletitions(), ug::vrl::invocation::initClasses(), Java_edu_gcsc_vrl_ug_UG__1getDefaultClassNameFromGroup(), Java_edu_gcsc_vrl_ug_UG__1invokeMethod(), Java_edu_gcsc_vrl_ug_UG__1newInstance(), ug::bridge::lua::LuaConstructor(), ug::bridge::LuaList_classes(), ug::bridge::lua::LuaToStringDefault(), ug::bridge::ExportedClassBaseImpl::methodname_registered(), and ug::bridge::UGTypeInfo().
|
pure virtual |
number of registered const-methods
Implemented in ug::bridge::ExportedClassBaseImpl.
Referenced by ug::bridge::Registry::check_consistency(), ug::bridge::ClassInfo(), ug::bridge::ClassUsageExact(), ug::bridge::lua::CreateBindings_LUA(), ug::bridge::lua::GetBestMatchingMember(), ug::bridge::GetMemberFunctionCompletitions(), ug::bridge::GetMemberFunctionInfo(), and ug::vrl::methods2NativeGroups().
|
pure virtual |
returns the number of overloads of a const method
Implemented in ug::bridge::ExportedClassBaseImpl.
Referenced by ug::vrl::methods2NativeGroups().
|
pure virtual |
number of registered constructors
Implemented in ug::bridge::ExportedClassBaseImpl.
Referenced by ug::bridge::Registry::check_consistency(), ug::vrl::constructors2NativeConstructors(), ug::vrl::invocation::getConstructorBySignature(), and ug::bridge::lua::LuaConstructor().
|
pure virtual |
number of method of the class
Implemented in ug::bridge::ExportedClassBaseImpl.
Referenced by ug::bridge::Registry::check_consistency(), ug::bridge::ClassInfo(), ug::bridge::ClassUsageExact(), ug::bridge::lua::CreateBindings_LUA(), ug::bridge::lua::GetBestMatchingMember(), ug::bridge::GetMemberFunctionCompletitions(), ug::bridge::GetMemberFunctionInfo(), and ug::vrl::methods2NativeGroups().
|
pure virtual |
returns the number of overloads of a method
Implemented in ug::bridge::ExportedClassBaseImpl.
Referenced by ug::vrl::methods2NativeGroups().
|
pure virtual |
get tooltip
Implemented in ug::bridge::ExportedClassBaseImpl.